[Geany-devel] deprecating pluginmacros.h (Re: Generating an API functions wrapper)

Frank Lanitz frank at xxxxx
Wed Dec 3 18:22:07 UTC 2008


On Wed, 3 Dec 2008 16:31:55 +0100
Enrico Tröger <enrico.troeger at uvena.de> wrote:

> On Wed, 3 Dec 2008 12:56:04 +0000, Nick Treleaven
> <nick.treleaven at btinternet.com> wrote:
> 
> >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.
> 
> Cool, sounds like a plan.

Just a thought: Would it be logical to update all plugins inside
geany-plugins subversion in one rush after update is in place? 

Cheers, 
Frank
-- 
Frank Lanitz <frank at frank.uvena.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20081203/03e0119b/attachment.pgp>


More information about the Devel mailing list