From 5c57631f690d07bd4aaf990c3bee54d4c479ea4d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 27 Feb 2004 00:49:56 +0000 Subject: [PATCH] Support parsing of intializers containing macros with arguments. (#129717) Fri Feb 27 01:49:22 2004 Matthias Clasen * glib-mkenums.in: Support parsing of intializers containing macros with arguments. (#129717) --- gobject/glib-mkenums.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (([^*]|\*(?!/))*)