Re: inline docs



>
> One further gtk-doc problem I noticed is:
>
> ###Can't parse args for function g_get_charset: G_CONST_RETURN char
> **charset
>

Here is a patch against gtk-doc-0.7 to fix this. I would have put this in
bugzilla,
but there is no gtk-doc category...

Matthias
--- gtk-doc-0.7/gtkdoc-mkdb.in	Sat Aug  4 22:40:14 2001
+++ gtk-doc-0.7.patched/gtkdoc-mkdb.in	Tue Sep 25 09:30:32 2001
@@ -840,7 +840,7 @@
 	    }

 	    # allow alphanumerics, '_', '[' & ']' in param names
-	} elsif ($declaration =~
s/^(const\s+|unsigned\s+)*(struct\s+)?((?:long\s+|short\s+)?\w+)\s*(\**)\s*(
const\s+)?(\**)?\s*(\w+)?\s*((?:\[\S*\])*)\s*[,\n]//) {
+	} elsif ($declaration =~
s/^(const\s+|G_CONST_RETURN\s+|unsigned\s+)*(struct\s+)?((?:long\s+|short\s+
)?\w+)\s*(\**)\s*(const\s+)?(\**)?\s*(\w+)?\s*((?:\[\S*\])*)\s*[,\n]//) {
 	    my $mod1 = defined($1) ? $1 : "";
 	    if (defined($2)) { $mod1 .= $2; }
 	    my $type = $3;
--- gtk-doc-0.7/gtkdoc-mktmpl.in	Sat Aug  4 22:41:23 2001
+++ gtk-doc-0.7.patched/gtkdoc-mktmpl.in	Tue Sep 25 09:32:21 2001
@@ -372,7 +372,7 @@
 					 $template_exists, 1, "");

 		# Try to match a standard parameter.
-	    } elsif ($declaration =~
s/^(const\s+|unsigned\s+)*(struct\s+)?((?:long\s+|short\s+)?\w+)\s*(\**)\s*(
const\s+)?(\**)?\s*(\w+)?\s*((?:\[\S*\])*)\s*[,\n]//) {
+	    } elsif ($declaration =~
s/^(const\s+|G_CONST_RETURN\s+|unsigned\s+)*(struct\s+)?((?:long\s+|short\s+
)?\w+)\s*(\**)\s*(const\s+)?(\**)?\s*(\w+)?\s*((?:\[\S*\])*)\s*[,\n]//) {
 		if (defined ($7)) {
 		    $name = $7;
 		} else {







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]