diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-02-27 00:49:56 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-02-27 00:49:56 +0000 |
commit | 5c57631f690d07bd4aaf990c3bee54d4c479ea4d (patch) | |
tree | fd0ae27f0b18d76837da5b3029f4da1da008c549 | |
parent | 6b42452b3b91e5e6538abb556840d9a7ebd77293 (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-x | gobject/glib-mkenums.in | 4 |
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 (([^*]|\*(?!/))*) |