2001-11-16 Mark McLoughlin <mark@skynet.ie>
* glib-mkenums.in: allow the enums name to not be on the same
line as the trailing '}'. (#64714)
+2001-11-16 Mark McLoughlin <mark@skynet.ie>
+
+ * glib-mkenums.in: allow the enums name to not be on the same
+ line as the trailing '}'. (#64714)
+
2001-11-18 Hans Breuer <hans@breuer.org>
* makefile.msc.in : remove g_log_domain_gruntime usage
sub parse_entries {
my $file = shift;
my $file_name = shift;
+ my $looking_for_name = 0;
while (<$file>) {
next if m@^\s*$@;
# print STDERR "xxx $_\n";
+
+ if ($looking_for_name) {
+ if (/^\s*(\w+)/) {
+ $enumname = $1;
+ return 1;
+ }
+ }
# Handle include files
if (/^\#include\s*<([^>]*)>/ ) {
return 1;
}
+ if (/^\s*\}/) {
+ $enumindex++;
+ $looking_for_name = 1;
+ next;
+ }
+
if (m@^\s*
(\w+)\s* # name
(?:=( # value