summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-01-10 20:07:42 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2020-01-10 20:19:47 +0100
commitd3159a31d761cb48f18e6c678256646452efa621 (patch)
tree50d51f2f87dd8fe3be5827f7816883ff7cc921b5
parent918987ef8aa3b5a5ae145530d23d6857b771f32f (diff)
eolian: use c_name to derive enum c field names
-rw-r--r--src/lib/eolian/database_type_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/database_type_api.c b/src/lib/eolian/database_type_api.c
index b5507fd504..ab2a591349 100644
--- a/src/lib/eolian/database_type_api.c
+++ b/src/lib/eolian/database_type_api.c
@@ -121,7 +121,7 @@ eolian_typedecl_enum_field_c_constant_get(const Eolian_Enum_Type_Field *fl)
121 if (fl->base_enum->legacy) 121 if (fl->base_enum->legacy)
122 eina_strbuf_append(buf, fl->base_enum->legacy); 122 eina_strbuf_append(buf, fl->base_enum->legacy);
123 else 123 else
124 eina_strbuf_append(buf, fl->base_enum->base.name); 124 eina_strbuf_append(buf, fl->base_enum->base.c_name);
125 eina_strbuf_append_char(buf, '_'); 125 eina_strbuf_append_char(buf, '_');
126 eina_strbuf_append(buf, fl->base.name); 126 eina_strbuf_append(buf, fl->base.name);
127 bufp = eina_strbuf_string_steal(buf); 127 bufp = eina_strbuf_string_steal(buf);