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

Enrico Tröger enrico.troeger at xxxxx
Wed Dec 3 15:31:55 UTC 2008


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.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20081203/ebce2b1f/attachment.pgp>


More information about the Devel mailing list