<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 October 2013 20:48, Thomas Martitz <span dir="ltr"><<a href="mailto:thomas.martitz@student.htw-berlin.de" target="_blank">thomas.martitz@student.htw-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 24.10.2013 11:24, schrieb Lex Trotman:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I currently do not have access to a dev environment where I can grab the plugins and search for places the index is used.  But if its not used anywhere (or even if its not used much) then it should be deprecated immediately so nobody uses it in new code. Use G_DEPRECATED I guess, plus \deprecated in the doxygen comments, I don't know if we've deprecated anything before have we?<br>

<br>
@Colomban, do we have a process for plugin API deprecation and removal?<br>
</blockquote>
<br>
<br></div>
Deprecation is difficult with our plugin mechanism, because all API function calls are macros that, after expansion, call via pointer. I don't think G_DEPRECATED (gcc's __attribute__((deprecated))) works via such indirect calls.</blockquote>
<div><br></div><div>The member of the struct in plugindata.h (eg DocumentFuncs.document_index) is a declaration, so it can be marked deprecated.  And that should cause the warning when that member is used, even if its via a pointer inside a macro.  So both the struct member and the actual function would need deprecation.</div>
<div><br></div><div>And maybe we can stick #pragma message "Warning, Warning - deprecated stuff" inside the IS_VALID() macro :)</div><div><br></div><div>Cheers</div><div>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
Best regards.<br>
______________________________<u></u>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org" target="_blank">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div></div>