mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
allow the enums name to not be on the same line as the trailing '}'.
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)
This commit is contained in:
parent
6425f5453d
commit
dbc004bc12
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2001-11-18 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* makefile.msc.in : remove g_log_domain_gruntime usage
|
* makefile.msc.in : remove g_log_domain_gruntime usage
|
||||||
|
@ -27,6 +27,7 @@ sub parse_trigraph {
|
|||||||
sub parse_entries {
|
sub parse_entries {
|
||||||
my $file = shift;
|
my $file = shift;
|
||||||
my $file_name = shift;
|
my $file_name = shift;
|
||||||
|
my $looking_for_name = 0;
|
||||||
|
|
||||||
while (<$file>) {
|
while (<$file>) {
|
||||||
|
|
||||||
@ -47,6 +48,13 @@ sub parse_entries {
|
|||||||
|
|
||||||
# print STDERR "xxx $_\n";
|
# print STDERR "xxx $_\n";
|
||||||
|
|
||||||
|
if ($looking_for_name) {
|
||||||
|
if (/^\s*(\w+)/) {
|
||||||
|
$enumname = $1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Handle include files
|
# Handle include files
|
||||||
if (/^\#include\s*<([^>]*)>/ ) {
|
if (/^\#include\s*<([^>]*)>/ ) {
|
||||||
my $file= "../$1";
|
my $file= "../$1";
|
||||||
@ -74,6 +82,12 @@ sub parse_entries {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (/^\s*\}/) {
|
||||||
|
$enumindex++;
|
||||||
|
$looking_for_name = 1;
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
if (m@^\s*
|
if (m@^\s*
|
||||||
(\w+)\s* # name
|
(\w+)\s* # name
|
||||||
(?:=( # value
|
(?:=( # value
|
||||||
|
Loading…
Reference in New Issue
Block a user