q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4bdf82908e27b0eccdce91fbb38ca2983fa9227e

commit 4bdf82908e27b0eccdce91fbb38ca2983fa9227e
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Thu Jun 11 16:13:22 2015 +0100

    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
---
 src/bin/eolian/types_generator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 5979aa9..d43f97b 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)
                           }
                         eina_stringshare_del(lit);
                      }
-                   next = eina_iterator_next(members, (void**)&member);
-                   if (next)
-                     eina_strbuf_append(buf, ",");
                    const char *fdesc = 
eolian_type_enum_field_description_get(member);
                    const Eolian_Documentation *fdoc
                        = eolian_type_enum_field_documentation_get(member);
+                   next = eina_iterator_next(members, (void**)&member);
+                   if (next)
+                     eina_strbuf_append(buf, ",");
                    if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", 
fdesc);
                    else if (fdoc)
                      {

-- 


Reply via email to