summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-12-02 12:06:11 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2019-12-02 12:09:50 +0100
commit9f50f08349adb801d5b1b8ad3c6201a15762cb34 (patch)
treefec4a23de903b07f6c2b38571c9d9b36c23f02ce /src/lib/eolian
parent40571bf0ee78e43419894d364f7c828711673043 (diff)
eolian: emit correct c_name for keyword builtins
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/eo_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 706d6c1c37..8316c4f3bc 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -762,7 +762,7 @@ parse_type_void(Eo_Lexer *ls, Eina_Bool allow_ptr, Eina_Bool allow_const)
762 { 762 {
763 def->btype = ls->t.kw - KW_byte + 1; 763 def->btype = ls->t.kw - KW_byte + 1;
764 def->base.name = eina_stringshare_ref(ls->t.value.s); 764 def->base.name = eina_stringshare_ref(ls->t.value.s);
765 def->base.c_name = eina_stringshare_ref(def->base.name); 765 def->base.c_name = eina_stringshare_add(eo_lexer_get_c_type(ls->t.kw));
766 eo_lexer_get(ls); 766 eo_lexer_get(ls);
767 if ((tpid >= KW_accessor && tpid <= KW_list) || 767 if ((tpid >= KW_accessor && tpid <= KW_list) ||
768 (tpid >= KW_slice && tpid <= KW_rw_slice) || (tpid == KW_hash)) 768 (tpid >= KW_slice && tpid <= KW_rw_slice) || (tpid == KW_hash))