summaryrefslogtreecommitdiff
path: root/src/lib/eolian/database_var.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/database_var.c')
-rw-r--r--src/lib/eolian/database_var.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/eolian/database_var.c b/src/lib/eolian/database_var.c
index 36d22b3394..796a5ece2b 100644
--- a/src/lib/eolian/database_var.c
+++ b/src/lib/eolian/database_var.c
@@ -28,16 +28,14 @@ database_var_global_add(Eolian_Unit *unit, Eolian_Variable *var)
28 EOLIAN_OBJECT_ADD(unit, var->base.name, var, globals); 28 EOLIAN_OBJECT_ADD(unit, var->base.name, var, globals);
29 eina_hash_set(unit->state->globals_f, var->base.file, eina_list_append 29 eina_hash_set(unit->state->globals_f, var->base.file, eina_list_append
30 ((Eina_List*)eina_hash_find(unit->state->globals_f, var->base.file), var)); 30 ((Eina_List*)eina_hash_find(unit->state->globals_f, var->base.file), var));
31 database_decl_add(unit, var->base.name, EOLIAN_DECL_VAR, var->base.file, var);
32} 31}
33 32
34static void 33static void
35database_var_constant_add(Eolian_Unit *unit, Eolian_Variable *var) 34database_var_constant_add(Eolian_Unit *unit, Eolian_Variable *var)
36{ 35{
37 EOLIAN_OBJECT_ADD(unit, var->base.name, var, constants); 36 EOLIAN_OBJECT_ADD(unit, var->base.name, var, constants);
38 eina_hash_set(unit->state->constants_f, var->base.file, eina_list_append 37 eina_hash_set(unit->state->constants_f, var->base.file, eina_list_append
39 ((Eina_List*)eina_hash_find(unit->state->constants_f, var->base.file), var)); 38 ((Eina_List*)eina_hash_find(unit->state->constants_f, var->base.file), var));
40 database_decl_add(unit, var->base.name, EOLIAN_DECL_VAR, var->base.file, var);
41} 39}
42 40
43void 41void
@@ -47,4 +45,5 @@ database_var_add(Eolian_Unit *unit, Eolian_Variable *var)
47 database_var_global_add(unit, var); 45 database_var_global_add(unit, var);
48 else 46 else
49 database_var_constant_add(unit, var); 47 database_var_constant_add(unit, var);
48 database_object_add(unit, &var->base);
50} 49}