[gnumeric] Win32: fix problem with prototypes with no argument names.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Win32: fix problem with prototypes with no argument names.
- Date: Mon, 29 Jun 2009 19:20:40 +0000 (UTC)
commit 1d41a0c4829954576dc25f274571fcd85480b97a
Author: Morten Welinder <terra gnome org>
Date: Mon Jun 29 15:20:16 2009 -0400
Win32: fix problem with prototypes with no argument names.
tools/ChangeLog | 5 +++++
tools/dumpdef.pl | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tools/ChangeLog b/tools/ChangeLog
index 2632783..ca23816 100644
--- a/tools/ChangeLog
+++ b/tools/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-29 Morten Welinder <terra gnome org>
+
+ * dumpdef.pl (parse_header): Handle the argument-as-type-only
+ case.
+
2009-06-20 Morten Welinder <terra gnome org>
* Release 1.9.9
diff --git a/tools/dumpdef.pl b/tools/dumpdef.pl
index 8bb04a6..988012b 100644
--- a/tools/dumpdef.pl
+++ b/tools/dumpdef.pl
@@ -29,8 +29,8 @@ sub parse_header {
close HEADER;
while ($lines =~ /^\s*[A-Za-z_]\w*(?:\s+[A-Za-z_]\w*)*[\s\*]+ #function type
([A-Za-z_]\w*)\s*\( #function name
- (?:\s*[A-Za-z_]\w*(?:[\s\*]+[A-Za-z_]\w*)*[\s\*]+[A-Za-z_]\w*(?:\s*\[\s*\]\s*)? #[first arg
- (?:\s*,\s*[A-Za-z_]\w*(?:[\s\*]+[A-Za-z_]\w*)*[\s\*]+[A-Za-z_]\w*(?:\s*\[\s*\]\s*)?)* #[more args]]
+ (?:\s*[A-Za-z_]\w*(?:[\s\*]+[A-Za-z_]\w*)*[\s\*]*(?:[A-Za-z_]\w*)?(?:\s*\[\s*\]\s*)? #[first arg
+ (?:\s*,\s*[A-Za-z_]\w*(?:[\s\*]+[A-Za-z_]\w*)*[\s\*]+(?:[A-Za-z_]\w*)?(?:\s*\[\s*\]\s*)?)* #[more args]]
(?:\s*,\s*\.{3})?|void) #vargs or void
\s*\)\s* #close
(?:(?:G_GNUC_PRINTF|G_GNUC_SCANF)\s*\(\s*\d+\s*,\s*\d+\) # predefined macro modifiers]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]