summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo1_generator.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-05-14 14:26:50 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-05-14 14:52:58 +0300
commit0782e96c36d1886c62852399baa93f18769acdf3 (patch)
tree6ceef08d61ce0f0024d5c48a0afe1ae4b4056a52 /src/bin/eolian/eo1_generator.c
parentf731f8ffb4294924516d714f122a96da6fa4cb5a (diff)
Eolian/Generator: fix the class description generation.
The class description was not used during the generation of the legacy and Eo headers.
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo1_generator.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index 3ccc9b3476..7570842443 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -249,6 +249,20 @@ eo_header_generate(const char *classname, Eina_Strbuf *buf)
249 return EINA_FALSE; 249 return EINA_FALSE;
250 } 250 }
251 251
252 const char *desc = eolian_class_description_get(classname);
253 Eina_Strbuf *linedesc = eina_strbuf_new();
254 eina_strbuf_append(linedesc, "/**\n");
255 if (desc)
256 {
257 eina_strbuf_append(linedesc, desc);
258 eina_strbuf_replace_all(linedesc, "\n", "\n * ");
259 }
260
261 eina_strbuf_append(linedesc, "\n */\n");
262 eina_strbuf_replace_all(linedesc, " * \n", " *\n"); /* Remove trailing whitespaces */
263 eina_strbuf_append(buf, eina_strbuf_string_get(linedesc));
264 eina_strbuf_free(linedesc);
265
252 _template_fill(str_hdr, tmpl_eo_obj_header, classname, "", EINA_TRUE); 266 _template_fill(str_hdr, tmpl_eo_obj_header, classname, "", EINA_TRUE);
253 267
254 eina_strbuf_replace_all(str_hdr, "@#EOPREFIX", current_eo_prefix_upper); 268 eina_strbuf_replace_all(str_hdr, "@#EOPREFIX", current_eo_prefix_upper);