summaryrefslogtreecommitdiff
path: root/src/bin/eolian/headers.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-16 15:31:37 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-16 15:43:52 +0200
commit4ab1f2388eb303f8e5d9eae31cdcf39df683c736 (patch)
tree9dc1d113f199f97b1025e38a6c1479303b833a70 /src/bin/eolian/headers.c
parent7f45f94af0201d48f7fcae14c6320ce3b9bcab71 (diff)
eolian: add API to retrieve the C name of an object
This is to prepare for type/class renaming support. This adds the necessary API to retrieve C-specific names. Other refactoring is necessary elsewhere for now. This also renames the old API eolian_class_c_name_get to eolian_class_c_macro_get to avoid conflict as well as clarify the intention.
Diffstat (limited to 'src/bin/eolian/headers.c')
-rw-r--r--src/bin/eolian/headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index d35c604..645d694 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -205,7 +205,7 @@ eo_gen_header_gen(const Eolian_State *state, const Eolian_Class *cl,
205 } 205 }
206 } 206 }
207 207
208 Eina_Stringshare *mname = eolian_class_c_name_get(cl); 208 Eina_Stringshare *mname = eolian_class_c_macro_get(cl);
209 Eina_Stringshare *gname = eolian_class_c_get_function_name_get(cl); 209 Eina_Stringshare *gname = eolian_class_c_get_function_name_get(cl);
210 eina_strbuf_append_printf(buf, "#define %s %s()\n\n", mname, gname); 210 eina_strbuf_append_printf(buf, "#define %s %s()\n\n", mname, gname);
211 eina_stringshare_del(mname); 211 eina_stringshare_del(mname);