[glib] glib-mkenums: fix parsing of flags annotation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib-mkenums: fix parsing of flags annotation
- Date: Tue, 1 Aug 2017 09:38:58 +0000 (UTC)
commit 8cc99502022944917f5dd78ce1d1427582081396
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Aug 1 12:18:42 2017 +0300
glib-mkenums: fix parsing of flags annotation
https://bugzilla.gnome.org/show_bug.cgi?id=779332
gobject/glib-mkenums.in | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index a82a374..d4bfd11 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]