glib-mkenums: fix parsing of flags annotation

https://bugzilla.gnome.org/show_bug.cgi?id=779332
This commit is contained in:
Alberts Muktupāvels 2017-08-01 12:18:42 +03:00 committed by Emmanuele Bassi
parent ca69df0f16
commit 8cc9950202

View File

@ -450,6 +450,11 @@ def process_file(curfilename):
continue
enum_prefix = options.get('prefix', None)
flags = options.get('flags', None)
if 'flags' in options:
if flags is None:
flags = 1
else:
flags = int(flags)
option_lowercase_name = options.get('lowercase_name', None)
option_underscore_name = options.get('underscore_name', None)
else: