GNOME Bugzilla – Bug 624200
'const' confuses the parser
Last modified: 2010-07-13 12:44:19 UTC
it won't pick up this declaration because of the 'const's const gchar * const * g_settings_list_schemas (void);
why do you put the 2nd const you put it? g_settings_list_schemas gives back an array of gchar pointers, where the array pointer is const, but not the gchar pointers?
commit 2085444674726557e45b251a4768d08e72623598 Author: Stefan Kost <ensonic@users.sf.net> Date: Tue Jul 13 11:13:51 2010 +0300 scan: improve reexps to handle more * const * variants. Fixes #624200 We were handling that correctly for the case of split line declarations. Take the same route if all is one one line. Add tests.
const gchar * const * means 'constant array of "const gchar *"' thanks for the fix