After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624200 - 'const' confuses the parser
'const' confuses the parser
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: 1.16
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-12 22:05 UTC by Allison Karlitskaya (desrt)
Modified: 2010-07-13 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2010-07-12 22:05:02 UTC
it won't pick up this declaration because of the 'const's

const gchar * const *   g_settings_list_schemas    (void);
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2010-07-13 07:32:06 UTC
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?
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2010-07-13 08:16:26 UTC
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.
Comment 3 Allison Karlitskaya (desrt) 2010-07-13 12:44:19 UTC
const gchar * const * means 'constant array of "const gchar *"'

thanks for the fix