diff options
author | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-03-16 16:00:29 +0200 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-03-16 16:00:29 +0200 |
commit | 5d1b948508851c406f72a74245064b51927a29f7 (patch) | |
tree | c917e77f0d15592a2a071e670c96b94cdb5a04ee /src/bin/eolian | |
parent | a94ea3a8b2afa936e0a87b3946bef9a703bea249 (diff) |
Eolian/Generator: Retrieve the Eo prefix from the database instead of
guessing it.
Diffstat (limited to '')
-rw-r--r-- | src/bin/eolian/eo1_generator.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index 675ab13444..b7d62b33fa 100644 --- a/src/bin/eolian/eo1_generator.c +++ b/src/bin/eolian/eo1_generator.c | |||
@@ -790,7 +790,9 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf) | |||
790 | eina_strbuf_reset(tmpbuf); | 790 | eina_strbuf_reset(tmpbuf); |
791 | EINA_LIST_FOREACH(eolian_class_inherits_list_get(classname), itr, inherit_name) | 791 | EINA_LIST_FOREACH(eolian_class_inherits_list_get(classname), itr, inherit_name) |
792 | { | 792 | { |
793 | _template_fill(tmpbuf, "@#EOPREFIX_CLASS, ", inherit_name, "", EINA_FALSE); | 793 | const char *eo_prefix = eolian_class_eo_prefix_get(inherit_name); |
794 | if (!eo_prefix) eo_prefix = inherit_name; | ||
795 | _template_fill(tmpbuf, "@#EOPREFIX_CLASS, ", eo_prefix, "", EINA_FALSE); | ||
794 | eina_strbuf_replace_all(tmpbuf, "@#EOPREFIX", current_eo_prefix_upper); | 796 | eina_strbuf_replace_all(tmpbuf, "@#EOPREFIX", current_eo_prefix_upper); |
795 | } | 797 | } |
796 | 798 | ||