summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-16 15:52:46 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-16 15:52:46 +0200
commitb3a870c7bb29461c6478fae9f51c211229b62d9d (patch)
tree59e42cceb4526bcd8462d5a85a1f95f223957df5 /src/bin
parent4ab1f2388eb303f8e5d9eae31cdcf39df683c736 (diff)
eolian: rename eolian_typedecl_enum_field_c_name_get
This is to allow for better object oriented APIs, as the `c_name` field would be inherited from Object. This also makes it more clear in C.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/docs.c2
-rw-r--r--src/bin/eolian/types.c2
-rw-r--r--src/bin/eolian_js/main.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 7120612c9d..e497581e83 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -68,7 +68,7 @@ _generate_ref(const Eolian_State *state, const char *refn, Eina_Strbuf *wbuf)
68 eina_stringshare_del(bname); 68 eina_stringshare_del(bname);
69 goto noref; 69 goto noref;
70 } 70 }
71 Eina_Stringshare *str = eolian_typedecl_enum_field_c_name_get(efl); 71 Eina_Stringshare *str = eolian_typedecl_enum_field_c_constant_get(efl);
72 eina_strbuf_append(wbuf, str); 72 eina_strbuf_append(wbuf, str);
73 eina_stringshare_del(bname); 73 eina_stringshare_del(bname);
74 return; 74 return;
diff --git a/src/bin/eolian/types.c b/src/bin/eolian/types.c
index 85e443e6d8..a932a7c046 100644
--- a/src/bin/eolian/types.c
+++ b/src/bin/eolian/types.c
@@ -81,7 +81,7 @@ _type_generate(const Eolian_State *state, const Eolian_Typedecl *tp,
81 const Eolian_Expression *vale = 81 const Eolian_Expression *vale =
82 eolian_typedecl_enum_field_value_get(memb, EINA_FALSE); 82 eolian_typedecl_enum_field_value_get(memb, EINA_FALSE);
83 Eina_Stringshare *membn = 83 Eina_Stringshare *membn =
84 eolian_typedecl_enum_field_c_name_get(memb); 84 eolian_typedecl_enum_field_c_constant_get(memb);
85 if (!vale) 85 if (!vale)
86 eina_strbuf_append_printf(buf, " %s", membn); 86 eina_strbuf_append_printf(buf, " %s", membn);
87 else 87 else
diff --git a/src/bin/eolian_js/main.cc b/src/bin/eolian_js/main.cc
index 86940d1dba..71466a8f83 100644
--- a/src/bin/eolian_js/main.cc
+++ b/src/bin/eolian_js/main.cc
@@ -1174,7 +1174,7 @@ int main(int argc, char** argv)
1174 , ef_end; ef != ef_end; ++ef) 1174 , ef_end; ef != ef_end; ++ef)
1175 { 1175 {
1176 auto field_name = ::eolian_typedecl_enum_field_name_get(&*ef); 1176 auto field_name = ::eolian_typedecl_enum_field_name_get(&*ef);
1177 auto field_c_name = ::eolian_typedecl_enum_field_c_name_get(&*ef); 1177 auto field_c_name = ::eolian_typedecl_enum_field_c_constant_get(&*ef);
1178 if (!field_name || !field_c_name) 1178 if (!field_name || !field_c_name)
1179 { 1179 {
1180 EINA_CXX_DOM_LOG_ERR(eolian::js::domain) << "Could not get enum field name"; 1180 EINA_CXX_DOM_LOG_ERR(eolian::js::domain) << "Could not get enum field name";