summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-02-27 00:49:56 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-02-27 00:49:56 +0000
commit5c57631f690d07bd4aaf990c3bee54d4c479ea4d (patch)
treefd0ae27f0b18d76837da5b3029f4da1da008c549
parent6b42452b3b91e5e6538abb556840d9a7ebd77293 (diff)
Support parsing of intializers containing macros with arguments. (#129717)
Fri Feb 27 01:49:22 2004 Matthias Clasen <maclas@gmx.de> * glib-mkenums.in: Support parsing of intializers containing macros with arguments. (#129717)
-rwxr-xr-xgobject/glib-mkenums.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 1643fd625..969c84a21 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -83,7 +83,9 @@ sub parse_entries {
if (m@^\s*
(\w+)\s* # name
(?:=( # value
- (?:[^,/]|/(?!\*))*
+ \s*\w+\s*\(.*\)\s* # macro with multiple args
+ | # OR
+ (?:[^,/]|/(?!\*))* # anything but a comma or comment
))?,?\s*
(?:/\*< # options
(([^*]|\*(?!/))*)