[gtk-doc] tests: followup for last commit
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] tests: followup for last commit
- Date: Wed, 17 Feb 2010 13:53:09 +0000 (UTC)
commit a38d70b2c22ca1f48c25f288f472e90614ab93d1
Author: Stefan Kost <ensonic users sf net>
Date: Wed Feb 17 15:43:10 2010 +0200
tests: followup for last commit
The header file was missing and the parameter docs.
gtkdoc-common.pl.in | 4 ++--
tests/bugs/src/tester.c | 4 +++-
tests/bugs/src/tester.h | 2 ++
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in
index 138ac7c..ed4cde9 100644
--- a/gtkdoc-common.pl.in
+++ b/gtkdoc-common.pl.in
@@ -397,8 +397,8 @@ sub ParseFunctionDeclaration {
push @result, $label;
# Try to match parameters which are functions
- # $1 $2 $3 $4 $5 $7 $8
- } elsif ($declaration =~ s/^(const\s+|G_CONST_RETURN\s+|G_GNUC_[A-Z_]+\s+|unsigned\s+)*(struct\s+)?(\w+)\s*(\**)\s*(?:restrict\b)?\s*(const\s+)?\(\s*\*+\s*(\w+)\s*\)\s*\(([^)]*)\)\s*[,\n]//) {
+ # $1 $2 $3 $4 $5 $7 $8
+ } elsif ($declaration =~ s/^(const\s+|G_CONST_RETURN\s+|G_GNUC_[A-Z_]+\s+|signed\s+|unsigned\s+)*(struct\s+)?(\w+)\s*(\**)\s*(?:restrict\b)?\s*(const\s+)?\(\s*\*+\s*(\w+)\s*\)\s*\(([^)]*)\)\s*[,\n]//) {
my $mod1 = defined($1) ? $1 : "";
if (defined($2)) { $mod1 .= $2; }
my $type = $3;
diff --git a/tests/bugs/src/tester.c b/tests/bugs/src/tester.c
index 929e1c3..301e3fd 100644
--- a/tests/bugs/src/tester.c
+++ b/tests/bugs/src/tester.c
@@ -209,11 +209,13 @@ unsigned int bug_602518c(void) {
/**
* bug_610257:
+ * @der: parameter
+ * @len: parameter
*
* http://bugzilla.gnome.org/show_bug.cgi?id=610257
*/
signed long
-bug_610257 (const unsigned char *der, int der_len, int *len)
+bug_610257 (const unsigned char *der, int *len)
{
return 1L;
}
diff --git a/tests/bugs/src/tester.h b/tests/bugs/src/tester.h
index 8e7e4ae..992b859 100644
--- a/tests/bugs/src/tester.h
+++ b/tests/bugs/src/tester.h
@@ -280,6 +280,8 @@ struct _BugXXX1b {
};
*/
+signed long bug_610257(const unsigned char *der, int *len);
+
#endif // GTKDOC_TESTER_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]