[gtkdoc-mktmpl] functions returning void*
- From: guillaume pernot <gpernot free fr>
- To: Damon Chaplin <damon ximian com>
- Subject: [gtkdoc-mktmpl] functions returning void*
- Date: 26 Feb 2002 08:29:01 +0100
hi,
gtkdoc-mktmpl mess up with functions returning void *.
I do not use gpointers, and still want my docs generated by gtkdoc.
the following patch does it, and is harmless for anything else, AFAICS.
it's the very first time i do perl, so maybe are there side effects that i'm not aware of...
otherwise, could you apply this for next release ?
cheers,
guillaume pernot
diff -u /usr/bin/gtkdoc-mktmpl gtkdoc-mktmpl
--- /usr/bin/gtkdoc-mktmpl Sat Jan 19 17:01:14 2002
+++ gtkdoc-mktmpl Tue Feb 26 08:17:04 2002
@@ -354,6 +354,7 @@
# Take out the return type
$declaration =~ s/<RETURNS>\s*(const\s+|G_CONST_RETURN\s+|unsigned\s+)*(\w+)\s*(\**)\s*<\/RETURNS>\n//;
my ($ret_type) = $2;
+ my ($ret_ispointer) = $3;
my ($param_num) = 0;
my ($name);
@@ -395,7 +396,7 @@
}
- if ($ret_type ne "void") {
+ if ($ret_type ne "void" or $ret_ispointer ne "") {
$output .= &OutputParam ($symbol, "Returns", $template_exists, 1,
"");
}
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]