summaryrefslogtreecommitdiff
path: root/src/bin/eolian
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/eolian
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/eolian')
-rw-r--r--src/bin/eolian/docs.c2
-rw-r--r--src/bin/eolian/types.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 7120612..e497581 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 85e443e..a932a7c 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