Package: gtk-doc-tools
Version: 1.2-1.2
Severity: normal
Tags: patch

gtkdoc-scan fails to scan functions which return an "unsigned" type, e.g
"unsigned int".  The following patch corrects this.

I've also posted this to the upstream mailing list, but thought this
would be worth fixing before Sarge.

BTW, there's also a new upstream release available (1.3, which also
contains this bug).


--- /var/tmp/gtkdoc-scan        2005-01-27 19:48:29.000000000 +0000
+++ gtkdoc-scan 2005-01-27 21:07:43.000000000 +0000
@@ -419,7 +419,7 @@
                $decl = $';
                if ($previous_line !~ m/^\s*G_INLINE_FUNC/
                    && $previous_line !~ m/^\s*static\s+/) {
-                   if ($previous_line =~ 
m/^\s*(extern)?\s*((const\s*|G_CONST_RETURN\s*)?\w+)(\s*\*+)?\s*$/) {
+                   if ($previous_line =~ 
m/^\s*(extern)?\s*((const\s*|G_CONST_RETURN\s*|unsigned\s*)?\w+)(\s*\*+)?\s*$/) 
{
                        $ret_type = $2;
                        if (defined ($4)) { $ret_type .= " $4"; }
 #                      print "Function: $symbol, Returns: $ret_type\n";

Regards,
Roger

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=UTF-8) (ignored: LC_ALL set to 
en_GB)

Versions of packages gtk-doc-tools depends on:
ii  docbook-dsssl                 1.79-2     modular DocBook DSSSL stylesheets,
ii  docbook-to-man                1:2.0.0-17 converter from DocBook SGML into r
ii  docbook-xml                   4.3-1.1    standard XML documentation system,
ii  docbook-xsl                   1.66.1-1   stylesheets for processing DocBook
ii  gnome-common                  2.8.0-3    common scripts and macros to devel
ii  jade                          1.2.1-43   James Clark's DSSSL Engine
ii  perl                          5.8.4-5    Larry Wall's Practical Extraction 
ii  xsltproc                      1.1.8-5    XSLT command line processor

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to