GNOME Bugzilla – Bug 669595
glib-mkenums: fix handling of forward enum declarations
Last modified: 2017-10-24 12:18:44 UTC
noticed in NM, where one file was forward-declaring an enum from another file
Created attachment 207011 [details] [review] glib-mkenums: fix handling of forward enum declarations Given typedef enum MyFoo MyFoo; glib-mkenums would get confused, not notice the ";", and then keep skipping lines until it found one that started with a "{", possibly even going into the next file. Fix it to just ignore those lines instead (and also, to error out if it hits eof while parsing an enum).
Review of attachment 207011 [details] [review]: Do we have anyone else who still has Perl paged in? Looks correct from what I remember though.
Review of attachment 207011 [details] [review]: looks good to me.
Attachment 207011 [details] pushed as f049262 - glib-mkenums: fix handling of forward enum declarations
*** Bug 674119 has been marked as a duplicate of this bug. ***