<div dir="ltr">[...]<div><br></div><div>But if I'm going to *improve* the docs, I *still* have an
    outstanding (in a manner of speaking) question:<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">

    <br>
    Why does the function plugin_init() accept the one parameter
    GeanyData*?<br>
    <br>
    The reason that is a question is that the three global variables <br><div class="im">
    <br>
    GeanyPlugin         *geany_plugin;<br>
    GeanyData           *geany_data;<br>
    GeanyFunctions      *geany_functions;<br>
    <br></div>
    are available to a plugin and you will notice that one of those
    global variables is geany_data which is suspiciously similar to the
    parameter to plugin_init().<br></div></blockquote><div><br></div><div style>Yes it is the same.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">

    <br>
    So either there is no reason to pass the parameter to plugin_init()
    or there is a good reason to pass the parameter to plugin_init(). <br></div></blockquote><div><br></div><div style>Since it is generally acknowledged that globals are bad, possibly someone started the process of removing the globals by switching to passing as parameters, but did not get time to finish the process or ran into other problems, but there is no indication I can find of why its that way.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">[...]</div></blockquote><div><br></div><div style>Cheers</div><div style>
Lex</div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
<br></blockquote></div><br></div></div></div>