summaryrefslogtreecommitdiff
path: root/src/bin/eolian/legacy_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-29 16:44:10 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-29 16:44:36 +0100
commit8dc8d6873d6a5807239e5d9434635b0d216508de (patch)
tree105df4ac30efcd0fda64f2dc2f9de8f78b419bdf /src/bin/eolian/legacy_generator.c
parent79083ed3afd273ca1aaa65b5c237f380095e38c5 (diff)
eolian/generator: clean up comment gen
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/legacy_generator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/eolian/legacy_generator.c b/src/bin/eolian/legacy_generator.c
index c65103d816..ea6cfb409e 100644
--- a/src/bin/eolian/legacy_generator.c
+++ b/src/bin/eolian/legacy_generator.c
@@ -15,9 +15,7 @@ static _eolian_class_vars class_env;
15static const char 15static const char
16tmpl_eapi_funcdef[] = "\n\ 16tmpl_eapi_funcdef[] = "\n\
17/**\n\ 17/**\n\
18 *\n\
19@#desc\n\ 18@#desc\n\
20 *\n\
21@#list_desc_param\ 19@#list_desc_param\
22 */\n\ 20 */\n\
23EAPI @#type_return%s(@#params)@#flags;\n\ 21EAPI @#type_return%s(@#params)@#flags;\n\
@@ -124,6 +122,8 @@ _eapi_decl_func_generate(const Eolian_Class *class, const Eolian_Function *funci
124 if (eina_strbuf_length_get(fparam)) eina_strbuf_append(fparam, ", "); 122 if (eina_strbuf_length_get(fparam)) eina_strbuf_append(fparam, ", ");
125 eina_strbuf_append_printf(fparam, "%s %s", ptype, pname); 123 eina_strbuf_append_printf(fparam, "%s %s", ptype, pname);
126 eina_stringshare_del(ptype); 124 eina_stringshare_del(ptype);
125 if (!eina_strbuf_length_get(descparam))
126 eina_strbuf_append(descparam, " *\n");
127 eina_strbuf_append_printf(descparam, " * @param[in] %s %s\n", pname, pdesc?pdesc:"No description supplied."); 127 eina_strbuf_append_printf(descparam, " * @param[in] %s %s\n", pname, pdesc?pdesc:"No description supplied.");
128 if (eolian_parameter_is_nonull((Eolian_Function_Parameter*)data)) 128 if (eolian_parameter_is_nonull((Eolian_Function_Parameter*)data))
129 { 129 {
@@ -159,6 +159,8 @@ _eapi_decl_func_generate(const Eolian_Class *class, const Eolian_Function *funci
159 ptype, had_star?"":" ", add_star?"*":"", pname); 159 ptype, had_star?"":" ", add_star?"*":"", pname);
160 eina_stringshare_del(ptype); 160 eina_stringshare_del(ptype);
161 const char *dir_str = str_dir[(int)pdir]; 161 const char *dir_str = str_dir[(int)pdir];
162 if (!eina_strbuf_length_get(descparam))
163 eina_strbuf_append(descparam, " *\n");
162 eina_strbuf_append_printf(descparam, " * @param[%s] %s %s\n", dir_str, pname, pdesc?pdesc:"No description supplied."); 164 eina_strbuf_append_printf(descparam, " * @param[%s] %s %s\n", dir_str, pname, pdesc?pdesc:"No description supplied.");
163 if (eolian_parameter_is_nonull((Eolian_Function_Parameter*)data)) 165 if (eolian_parameter_is_nonull((Eolian_Function_Parameter*)data))
164 { 166 {