summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eo_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/eo_parser.c')
-rw-r--r--src/lib/eolian/eo_parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 71e1d7e..b8e721a 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -866,7 +866,7 @@ parse_typedef(Eo_Lexer *ls)
866 parse_name(ls, buf); 866 parse_name(ls, buf);
867 _fill_name(eina_stringshare_add(eina_strbuf_string_get(buf)), 867 _fill_name(eina_stringshare_add(eina_strbuf_string_get(buf)),
868 &def->full_name, &def->name, &def->namespaces); 868 &def->full_name, &def->name, &def->namespaces);
869 decl = (Eolian_Declaration *)eina_hash_find(_decls, def->full_name); 869 decl = (Eolian_Declaration *)eina_hash_find(ls->state->unit.decls, def->full_name);
870 if (decl) 870 if (decl)
871 { 871 {
872 eo_lexer_context_restore(ls); 872 eo_lexer_context_restore(ls);
@@ -902,7 +902,7 @@ parse_variable(Eo_Lexer *ls, Eina_Bool global)
902 parse_name(ls, buf); 902 parse_name(ls, buf);
903 _fill_name(eina_stringshare_add(eina_strbuf_string_get(buf)), 903 _fill_name(eina_stringshare_add(eina_strbuf_string_get(buf)),
904 &def->full_name, &def->name, &def->namespaces); 904 &def->full_name, &def->name, &def->namespaces);
905 decl = (Eolian_Declaration *)eina_hash_find(_decls, def->full_name); 905 decl = (Eolian_Declaration *)eina_hash_find(ls->state->unit.decls, def->full_name);
906 if (decl) 906 if (decl)
907 { 907 {
908 eo_lexer_context_restore(ls); 908 eo_lexer_context_restore(ls);
@@ -2117,7 +2117,7 @@ parse_class(Eo_Lexer *ls, Eolian_Class_Type type)
2117 _fill_name(eina_stringshare_add(eina_strbuf_string_get(buf)), 2117 _fill_name(eina_stringshare_add(eina_strbuf_string_get(buf)),
2118 &ls->tmp.kls->full_name, &ls->tmp.kls->name, 2118 &ls->tmp.kls->full_name, &ls->tmp.kls->name,
2119 &ls->tmp.kls->namespaces); 2119 &ls->tmp.kls->namespaces);
2120 decl = (Eolian_Declaration *)eina_hash_find(_decls, ls->tmp.kls->full_name); 2120 decl = (Eolian_Declaration *)eina_hash_find(ls->state->unit.decls, ls->tmp.kls->full_name);
2121 if (decl) 2121 if (decl)
2122 { 2122 {
2123 eo_lexer_context_restore(ls); 2123 eo_lexer_context_restore(ls);
@@ -2233,7 +2233,7 @@ parse_unit(Eo_Lexer *ls, Eina_Bool eot)
2233 col = ls->column; 2233 col = ls->column;
2234 parse_name(ls, buf); 2234 parse_name(ls, buf);
2235 name = eina_stringshare_add(eina_strbuf_string_get(buf)); 2235 name = eina_stringshare_add(eina_strbuf_string_get(buf));
2236 decl = (Eolian_Declaration *)eina_hash_find(_decls, name); 2236 decl = (Eolian_Declaration *)eina_hash_find(ls->state->unit.decls, name);
2237 if (decl) 2237 if (decl)
2238 { 2238 {
2239 eina_stringshare_del(name); 2239 eina_stringshare_del(name);
@@ -2271,7 +2271,7 @@ parse_unit(Eo_Lexer *ls, Eina_Bool eot)
2271 } 2271 }
2272 return EINA_FALSE; 2272 return EINA_FALSE;
2273found_class: 2273found_class:
2274 database_decl_add(ls->tmp.kls->full_name, EOLIAN_DECL_CLASS, 2274 database_decl_add(ls->state, ls->tmp.kls->full_name, EOLIAN_DECL_CLASS,
2275 ls->tmp.kls->base.file, ls->tmp.kls); 2275 ls->tmp.kls->base.file, ls->tmp.kls);
2276 return EINA_TRUE; 2276 return EINA_TRUE;
2277} 2277}