diff options
author | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-06-02 15:40:52 +0300 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2014-06-03 11:26:58 +0100 |
commit | 03647b42795296dbc4612fbd85b2c31f5318b45f (patch) | |
tree | a3f1dcc81754e3347243b5296308f1dad1c6224b /src/bin/eolian | |
parent | 10626ff5388424c9be0aff04fbbc5a5b73cd210f (diff) | |
download | efl-03647b42795296dbc4612fbd85b2c31f5318b45f.tar.gz |
Eolian: Use class name and not prefix in the class macro.
So for example a class called Eo_Base with prefix: eo, used to be
generated to EO_CLASS instead of EO_BASE_CLASS.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r-- | src/bin/eolian/eo1_generator.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index 67d5f634c6..16b32de69b 100644 --- a/src/bin/eolian/eo1_generator.c +++ b/src/bin/eolian/eo1_generator.c @@ -48,7 +48,7 @@ static const Eo_Class_Description _@#class_class_desc = {\n\ @#dtor_name\n\ };\n\ \n\ -EO_DEFINE_CLASS(@#eoprefix_class_get, &_@#class_class_desc, @#list_inheritNULL);\ +EO_DEFINE_CLASS(@#class_class_get, &_@#class_class_desc, @#list_inheritNULL);\ "; static const char @@ -56,9 +56,9 @@ tmpl_eo_op_desc[] = "\n EO_OP_FUNC(@#eoprefix_@#func, _@#class_@#func, \"@#d static const char tmpl_eo_obj_header[] = "\ -#define @#EOPREFIX_CLASS @#eoprefix_class_get()\n\ +#define @#CLASS_CLASS @#class_class_get()\n\ \n\ -const Eo_Class *@#eoprefix_class_get(void) EINA_CONST;\n\ +const Eo_Class *@#class_class_get(void) EINA_CONST;\n\ \n\ "; @@ -782,7 +782,7 @@ eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf) Eolian_Class inherit_class = eolian_class_find_by_name(inherit_name); _eolian_class_vars inherit_env; _class_env_create(inherit_class, NULL, &inherit_env); - eina_strbuf_append_printf(tmpbuf, "%s_CLASS, ", inherit_env.upper_eo_prefix); + eina_strbuf_append_printf(tmpbuf, "%s_CLASS, ", inherit_env.upper_classname); } if (eina_strbuf_length_get(tmpbuf) == 0) eina_strbuf_append(tmpbuf, "NULL, "); |