projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: Ditch more markup
[platform/upstream/glib.git]
/
gobject
/
glib-mkenums.in
diff --git
a/gobject/glib-mkenums.in
b/gobject/glib-mkenums.in
index
34440aa
..
b776e1f
100755
(executable)
--- a/
gobject/glib-mkenums.in
+++ b/
gobject/glib-mkenums.in
@@
-290,6
+290,9
@@
while (<>) {
([^*]+|\*(?!/))*
\*/@@gx;
([^*]+|\*(?!/))*
\*/@@gx;
+ # ignore forward declarations
+ next if /^\s*typedef\s+enum.*;/;
+
if (m@^\s*typedef\s+enum\s*
({)?\s*
(?:/\*<
if (m@^\s*typedef\s+enum\s*
({)?\s*
(?:/\*<
@@
-321,6
+324,9
@@
while (<>) {
# Didn't have trailing '{' look on next lines
if (!defined $1 && !defined $4) {
while (<>) {
# Didn't have trailing '{' look on next lines
if (!defined $1 && !defined $4) {
while (<>) {
+ if (eof) {
+ die "Hit end of file while parsing enum in $ARGV";
+ }
if (s/^\s*\{//) {
last;
}
if (s/^\s*\{//) {
last;
}