summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_database.h
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-24 17:06:24 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-24 18:27:37 +0200
commit92da64a532f8c1746d7bd06b66b7ff4409c2ff8c (patch)
tree02e05754553c64c119f2e78194f5527d5cf0ff1e /src/lib/eolian/eolian_database.h
parent553ce69bade88ac675aa56fcb184240403a12bfc (diff)
eolian: remove support for globals
This was meant to happen but did not previously happen. It is not ideal to do it now but better do it while we still can. In short, this removes one half of the variables API (keeps constants as they are) and repurposes the API to be only for constants. This is also better for consistency to match errors.
Diffstat (limited to 'src/lib/eolian/eolian_database.h')
-rw-r--r--src/lib/eolian/eolian_database.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index ab49424..3cbf4fb 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -39,7 +39,6 @@ struct _Eolian_Unit
39 Eolian_State *state; 39 Eolian_State *state;
40 Eina_Hash *children; 40 Eina_Hash *children;
41 Eina_Hash *classes; 41 Eina_Hash *classes;
42 Eina_Hash *globals;
43 Eina_Hash *constants; 42 Eina_Hash *constants;
44 Eina_Hash *errors; 43 Eina_Hash *errors;
45 Eina_Hash *aliases; 44 Eina_Hash *aliases;
@@ -59,7 +58,6 @@ typedef struct _Eolian_State_Area
59 Eina_Hash *aliases_f; 58 Eina_Hash *aliases_f;
60 Eina_Hash *structs_f; 59 Eina_Hash *structs_f;
61 Eina_Hash *enums_f; 60 Eina_Hash *enums_f;
62 Eina_Hash *globals_f;
63 Eina_Hash *constants_f; 61 Eina_Hash *constants_f;
64 Eina_Hash *errors_f; 62 Eina_Hash *errors_f;
65 Eina_Hash *objects_f; 63 Eina_Hash *objects_f;
@@ -394,10 +392,9 @@ struct _Eolian_Expression
394 Eina_Bool weak_rhs :1; 392 Eina_Bool weak_rhs :1;
395}; 393};
396 394
397struct _Eolian_Variable 395struct _Eolian_Constant
398{ 396{
399 Eolian_Object base; 397 Eolian_Object base;
400 Eolian_Variable_Type type;
401 Eolian_Type *base_type; 398 Eolian_Type *base_type;
402 Eolian_Expression *value; 399 Eolian_Expression *value;
403 Eolian_Documentation *doc; 400 Eolian_Documentation *doc;
@@ -449,8 +446,8 @@ void database_expr_print(Eolian_Expression *expr);
449 446
450/* variables */ 447/* variables */
451 448
452void database_var_del(Eolian_Variable *var); 449void database_constant_del(Eolian_Constant *var);
453void database_var_add(Eolian_Unit *unit, Eolian_Variable *var); 450void database_constant_add(Eolian_Unit *unit, Eolian_Constant *var);
454 451
455/* classes */ 452/* classes */
456void database_class_del(Eolian_Class *cl); 453void database_class_del(Eolian_Class *cl);