tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8d4de0d7870be482cf5bb981ffca63e47fe4e1a9

commit 8d4de0d7870be482cf5bb981ffca63e47fe4e1a9
Author: Daniel Kolesa <[email protected]>
Date:   Wed Dec 7 13:19:48 2016 +0100

    eolian: use the generic class name instead of C name in source
    
    This changes the string in Efl_Class_Description to use the real
    class name (with namespaces) instead of the C class name. The
    reason for this is that this string is generic, not C-related.
---
 src/bin/eolian/sources.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 54bcd1c..9114435 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -604,8 +604,8 @@ eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
 
    _funcs_params_init = eina_hash_pointer_new(NULL);
 
-   char *cname = NULL, *cnamel = NULL;
-   eo_gen_class_names_get(cl, &cname, NULL, &cnamel);
+   char *cnamel = NULL;
+   eo_gen_class_names_get(cl, NULL, NULL, &cnamel);
 
    /* event section, they come first */
    {
@@ -662,7 +662,7 @@ eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
    eina_strbuf_append(buf, cnamel);
    eina_strbuf_append(buf, "_class_desc = {\n"
                            "   EO_VERSION,\n");
-   eina_strbuf_append_printf(buf, "   \"%s\",\n", cname);
+   eina_strbuf_append_printf(buf, "   \"%s\",\n", 
eolian_class_full_name_get(cl));
 
    switch (eolian_class_type_get(cl))
      {
@@ -739,7 +739,6 @@ eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
    eina_strbuf_free(lbuf);
 
    /* and we're done */
-   free(cname);
    free(cnamel);
    eina_hash_free(_funcs_params_init);
 }

-- 


Reply via email to