Support parsing of intializers containing macros with arguments. (#129717)
authorMatthias Clasen <maclas@gmx.de>
Fri, 27 Feb 2004 00:49:56 +0000 (00:49 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 27 Feb 2004 00:49:56 +0000 (00:49 +0000)
Fri Feb 27 01:49:22 2004  Matthias Clasen  <maclas@gmx.de>

* glib-mkenums.in: Support parsing of intializers containing
macros with arguments.  (#129717)

gobject/glib-mkenums.in

index 1643fd6..969c84a 100755 (executable)
@@ -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
                 (([^*]|\*(?!/))*)