GNOME Bugzilla – Bug 445693
Does not understand "unsigned long" as a type
Last modified: 2007-09-22 19:52:06 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.
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).
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.
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.