summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-11 16:13:22 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-11 16:13:41 +0100
commit4bdf82908e27b0eccdce91fbb38ca2983fa9227e (patch)
tree4321b1b41e9f0dba801fbfc0dc2ce4b784e3e37b
parentec53cee9a6679084d3cce85a603262a51e0bdd65 (diff)
eolian/generator: fix enum field doc generator bug
This resulted in a field using the next field's docs rather than its own, because it incremented the member before even trying to retrieve the docs. @fix
-rw-r--r--src/bin/eolian/types_generator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 5979aa9da2..d43f97b330 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -160,12 +160,12 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
160 } 160 }
161 eina_stringshare_del(lit); 161 eina_stringshare_del(lit);
162 } 162 }
163 next = eina_iterator_next(members, (void**)&member);
164 if (next)
165 eina_strbuf_append(buf, ",");
166 const char *fdesc = eolian_type_enum_field_description_get(member); 163 const char *fdesc = eolian_type_enum_field_description_get(member);
167 const Eolian_Documentation *fdoc 164 const Eolian_Documentation *fdoc
168 = eolian_type_enum_field_documentation_get(member); 165 = eolian_type_enum_field_documentation_get(member);
166 next = eina_iterator_next(members, (void**)&member);
167 if (next)
168 eina_strbuf_append(buf, ",");
169 if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc); 169 if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc);
170 else if (fdoc) 170 else if (fdoc)
171 { 171 {