jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2160d0f27a2abcec068d9d99147ffee713a83998

commit 2160d0f27a2abcec068d9d99147ffee713a83998
Author: Daniel Zaoui <[email protected]>
Date:   Mon Jun 9 16:08:33 2014 +0300

    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.
---
 src/bin/eolian/eo_generator.c | 8 ++++----
 src/lib/eo/Eo.h               | 3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 9151db6..30e11bc 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
       eina_strbuf_append_printf(str_func, "#ifdef %s_PROTECTED\n", 
class_env.upper_classname);
 
    eina_strbuf_append(str_func, tmpl_eo_funcdef_doxygen);
-   eina_strbuf_append_printf(str_func, "EAPI @#rettype %s(@#full_params);\n", 
func_env.lower_eo_func);
+   eina_strbuf_append_printf(str_func, "EOAPI @#rettype %s(@#full_params);\n", 
func_env.lower_eo_func);
 
    if (scope == EOLIAN_SCOPE_PROTECTED)
       eina_strbuf_append_printf(str_func, "#endif\n");
@@ -272,7 +272,7 @@ eo_header_generate(const Eolian_Class class, Eina_Strbuf 
*buf)
         char* s = (char *)eina_strbuf_string_get(tmpbuf);
         eina_str_toupper(&s);
         eina_strbuf_append_printf(str_ev, "#define %s (&(_%s))\n", s, s);
-        eina_strbuf_append_printf(str_extrn_ev, "EAPI extern const 
Eo_Event_Description _%s;\n", s);
+        eina_strbuf_append_printf(str_extrn_ev, "EOAPI extern const 
Eo_Event_Description _%s;\n", s);
      }
 
    int i;
@@ -409,7 +409,7 @@ eo_bind_func_generate(const Eolian_Class class, 
Eolian_Function funcid, Eolian_F
         Eina_Bool ret_is_void = (!rettype || !strcmp(rettype, "void"));
         _class_func_env_create(class, eolian_function_name_get(funcid), ftype, 
&func_env);
         eina_strbuf_append_printf(eo_func_decl,
-              "EAPI EO_%sFUNC_BODY%s(%s",
+              "EOAPI EO_%sFUNC_BODY%s(%s",
               ret_is_void?"VOID_":"", has_params?"V":"",
               func_env.lower_eo_func);
         if (!ret_is_void)
@@ -505,7 +505,7 @@ eo_source_beginning_generate(const Eolian_Class class, 
Eina_Strbuf *buf)
         eina_strbuf_replace_all(str_ev, ",", "_");
 
         eina_strbuf_append_printf(tmpbuf,
-                                  "EAPI const Eo_Event_Description _%s =\n   
EO_EVENT_DESCRIPTION(\"%s\", \"%s\");\n",
+                                  "EOAPI const Eo_Event_Description _%s =\n   
EO_EVENT_DESCRIPTION(\"%s\", \"%s\");\n",
                                   eina_strbuf_string_get(str_ev), evname, 
evdesc_line1);
         free(evdesc_line1);
      }
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 95c974d..116370d 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -10,6 +10,9 @@
 
 #define EOLIAN
 
+/* When used, it indicates that the function is an Eo API. */
+#define EOAPI EAPI
+
 #ifdef _WIN32
 # ifdef EFL_EO_BUILD
 #  ifdef DLL_EXPORT

-- 


Reply via email to