summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-06-09 16:08:33 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-06-10 07:57:09 +0300
commit2160d0f27a2abcec068d9d99147ffee713a83998 (patch)
tree06dd009eb2649c15a126bcd5b20c4756495cbb00 /src/bin/eolian/eo_generator.c
parent18beac3732af2f26bf115238424ce41abf73c632 (diff)
Eolian/Generator: use a specific define for the Eo APIs.
The generation of EOAPI instead of EAPI for the Eo functions is only needed for code readibility.
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 9151db6705..30e11bc3c1 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -122,7 +122,7 @@ eo_fundef_generate(const Eolian_Class class, Eolian_Function func, Eolian_Functi
122 eina_strbuf_append_printf(str_func, "#ifdef %s_PROTECTED\n", class_env.upper_classname); 122 eina_strbuf_append_printf(str_func, "#ifdef %s_PROTECTED\n", class_env.upper_classname);
123 123
124 eina_strbuf_append(str_func, tmpl_eo_funcdef_doxygen); 124 eina_strbuf_append(str_func, tmpl_eo_funcdef_doxygen);
125 eina_strbuf_append_printf(str_func, "EAPI @#rettype %s(@#full_params);\n", func_env.lower_eo_func); 125 eina_strbuf_append_printf(str_func, "EOAPI @#rettype %s(@#full_params);\n", func_env.lower_eo_func);
126 126
127 if (scope == EOLIAN_SCOPE_PROTECTED) 127 if (scope == EOLIAN_SCOPE_PROTECTED)
128 eina_strbuf_append_printf(str_func, "#endif\n"); 128 eina_strbuf_append_printf(str_func, "#endif\n");
@@ -272,7 +272,7 @@ eo_header_generate(const Eolian_Class class, Eina_Strbuf *buf)
272 char* s = (char *)eina_strbuf_string_get(tmpbuf); 272 char* s = (char *)eina_strbuf_string_get(tmpbuf);
273 eina_str_toupper(&s); 273 eina_str_toupper(&s);
274 eina_strbuf_append_printf(str_ev, "#define %s (&(_%s))\n", s, s); 274 eina_strbuf_append_printf(str_ev, "#define %s (&(_%s))\n", s, s);
275 eina_strbuf_append_printf(str_extrn_ev, "EAPI extern const Eo_Event_Description _%s;\n", s); 275 eina_strbuf_append_printf(str_extrn_ev, "EOAPI extern const Eo_Event_Description _%s;\n", s);
276 } 276 }
277 277
278 int i; 278 int i;
@@ -409,7 +409,7 @@ eo_bind_func_generate(const Eolian_Class class, Eolian_Function funcid, Eolian_F
409 Eina_Bool ret_is_void = (!rettype || !strcmp(rettype, "void")); 409 Eina_Bool ret_is_void = (!rettype || !strcmp(rettype, "void"));
410 _class_func_env_create(class, eolian_function_name_get(funcid), ftype, &func_env); 410 _class_func_env_create(class, eolian_function_name_get(funcid), ftype, &func_env);
411 eina_strbuf_append_printf(eo_func_decl, 411 eina_strbuf_append_printf(eo_func_decl,
412 "EAPI EO_%sFUNC_BODY%s(%s", 412 "EOAPI EO_%sFUNC_BODY%s(%s",
413 ret_is_void?"VOID_":"", has_params?"V":"", 413 ret_is_void?"VOID_":"", has_params?"V":"",
414 func_env.lower_eo_func); 414 func_env.lower_eo_func);
415 if (!ret_is_void) 415 if (!ret_is_void)
@@ -505,7 +505,7 @@ eo_source_beginning_generate(const Eolian_Class class, Eina_Strbuf *buf)
505 eina_strbuf_replace_all(str_ev, ",", "_"); 505 eina_strbuf_replace_all(str_ev, ",", "_");
506 506
507 eina_strbuf_append_printf(tmpbuf, 507 eina_strbuf_append_printf(tmpbuf,
508 "EAPI const Eo_Event_Description _%s =\n EO_EVENT_DESCRIPTION(\"%s\", \"%s\");\n", 508 "EOAPI const Eo_Event_Description _%s =\n EO_EVENT_DESCRIPTION(\"%s\", \"%s\");\n",
509 eina_strbuf_string_get(str_ev), evname, evdesc_line1); 509 eina_strbuf_string_get(str_ev), evname, evdesc_line1);
510 free(evdesc_line1); 510 free(evdesc_line1);
511 } 511 }