q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5876b08fdb999610930e5ad4de971d0e540c3a9e

commit 5876b08fdb999610930e5ad4de971d0e540c3a9e
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri Jun 5 16:43:08 2015 +0100

    eolian/generator: use more correct indent offset in types doc gen
---
 src/bin/eolian/types_generator.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 35e741d..93740e2 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -101,9 +101,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
                    if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", 
fdesc);
                    else if (fdoc)
                      {
-                        const char *obuf = eina_strbuf_string_get(buf);
                         Eina_Strbuf *fbuf = docs_generate_full(fdoc,
-                            strrchr(obuf, '\n') - obuf + 1);
+                            strlen(strrchr(eina_strbuf_string_get(buf), 
'\n')));
                         if (fbuf) eina_strbuf_append_printf(buf, " %s",
                             eina_strbuf_string_get(fbuf));
                         eina_strbuf_free(fbuf);
@@ -166,9 +165,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
                    if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", 
fdesc);
                    else if (fdoc)
                      {
-                        const char *obuf = eina_strbuf_string_get(buf);
                         Eina_Strbuf *fbuf = docs_generate_full(fdoc,
-                            strrchr(obuf, '\n') - obuf + 1);
+                            strlen(strrchr(eina_strbuf_string_get(buf), 
'\n')));
                         if (fbuf) eina_strbuf_append_printf(buf, " %s",
                             eina_strbuf_string_get(fbuf));
                         eina_strbuf_free(fbuf);

-- 


Reply via email to