[Geany-devel] deprecating pluginmacros.h (Re: Generating an API functions wrapper)
Nick Treleaven
nick.treleaven at xxxxx
Wed Dec 3 12:56:04 UTC 2008
On Thu, 27 Nov 2008 18:35:39 +0000
Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> I'd like to add this to SVN, maybe somehow deprecating pluginmacros.h,
> but not removing it for a while. In future, genapi.py could add the
> geanyfunctions-> prefix and we could remove pluginmacros.h.
I've added geanyfunctions.h to SVN, but I think we could make
pluginmacros.h deprecated now, with a few small changes:
* Move the geany macro to plugindata.h.
* Add accessor functions for documents_array and filetypes_array.
Then geanyfunctions.h could use the full geany_functions->p_prefix->
syntax, which would require that pluginmacros.h is not included.
I think updating plugins to use geanyfunctions.h would be pretty
straightforward; for most plugins probably just changing the header
include and a regex replace of function pointer syntax. Anyway I'll add
an announcement when the new geanyfunctions.h code is completely ready
for use.
Regards,
Nick
More information about the Devel
mailing list