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 445693 - Does not understand "unsigned long" as a type
Does not understand "unsigned long" as a type
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.9
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-09 07:36 UTC by Vincent Untz
Modified: 2007-09-22 19:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2007-06-09 07:36:02 UTC
In libwnck, I had this:

void wnck_pid_read_resource_usage (GdkDisplay        *gdk_display,
                                   unsigned long      pid,
                                   WnckResourceUsage *usage);

For some reasons, gtk-doc failed to get the name of the second argument (pid). Changing unsigned long to gulong makes it work.
Comment 1 Damon Chaplin 2007-06-11 12:21:17 UTC
Yes, I can reproduce. Currently "gulong" and "unsigned long int" should work,
but "unsigned long" won't match. (See also bug 141869 for a similar issue.)

The regular expressions we use are too complicated, and when they're changed to
fix one issue they often break something else.

It would be good to split out the code that matches function arguments into
a separate function, and then try to simplify it (and write some test code
so we avoid regressions).
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-15 11:06:06 UTC
We have regular expressions that have "unsigned" in gtkdoc-mkdb, gtkdoc-mktmpl, gtkdoc-scan and gtkdoc-common.pl :/

I'll try to figure our which are the same one (or should be) and makrs them.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-12 13:06:31 UTC
2007-08-12  Stefan Kost  <ensonic@users.sf.net>

	* gtkdoc-mkdb.in:
	* gtkdoc-mktmpl.in:
	  Handle "unsigned long|unsigned short|signed long|signed short".
	  Fixes #445693.