[Geany-devel] question about templates

Andreas Mokros am at xxxxx
Sun Jul 12 17:12:15 UTC 2009

On Thu, 9 Jul 2009 17:32:12 +0200
Enrico Tröger <enrico.troeger at uvena.de> wrote:
> >Well, a patch for changing a "2" into a "3" is not really
> >necessary.  
> Ok, committed.

Thanks. Works nicely :-)

> Well, gint, gchar and such are C typedefs, defined in the GLib header
> files. These are parsed by Geany when generating the tags file and
> then written into the tags file with the appropriate tag type.

By tags file you mean gtk216.c.tags?

> Geany
> then reads these tags (symbols_load_global_tags() in symbols.c) and
> notice that 'gint' is a type and adds it to the keyword list 1 of the
> Scintilla lexer (update_type_keywords in document.c).

OK. Found the declaration of gchar, gint, etc. now in the tags file.
Missed it somehow...

> I hope this makes it a bit clearer. It's not completely trivial how
> this is handled but I guess after reading a bit of the code you should
> get a rough picture of how it is done.

Yes. Thanks.


More information about the Devel mailing list