summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-09 16:37:40 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-09 16:38:32 +0100
commite655d20d2426b88f72b93f157556fb2c7dae673e (patch)
tree7b5dc605e4d4a0c417be0b8425b1cf4d10e25b28
parent4758f06e637239f981eedbaaf8c0d613b78e4417 (diff)
eolian: drop env var checking that is unneccessary
Summary: This now does work, and we can enable the full checks Reviewers: segfaultxavi, cedric, q66, zmike Reviewed By: q66 Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8276
-rw-r--r--src/lib/eolian/database_validate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index e4ebce0b40..704299542b 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -14,7 +14,6 @@ typedef struct _Validate_State
14 Eina_Bool stable; 14 Eina_Bool stable;
15 Eina_Bool event_redef; 15 Eina_Bool event_redef;
16 Eina_Bool unimplemented; 16 Eina_Bool unimplemented;
17 Eina_Bool beta_types;
18} Validate_State; 17} Validate_State;
19 18
20static Eina_Bool 19static Eina_Bool
@@ -166,7 +165,7 @@ _validate_typedecl(Validate_State *vals, Eolian_Typedecl *tp)
166 return EINA_FALSE; 165 return EINA_FALSE;
167 166
168 /* for the time being assume all typedecls are beta unless overridden */ 167 /* for the time being assume all typedecls are beta unless overridden */
169 Eina_Bool was_stable = _set_stable(vals, !tp->base.is_beta && vals->beta_types); 168 Eina_Bool was_stable = _set_stable(vals, !tp->base.is_beta);
170 169
171 switch (tp->type) 170 switch (tp->type)
172 { 171 {
@@ -327,7 +326,7 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
327 _eo_parser_log(&tp->base, "undefined type %s", tp->base.name); 326 _eo_parser_log(&tp->base, "undefined type %s", tp->base.name);
328 return EINA_FALSE; 327 return EINA_FALSE;
329 } 328 }
330 else if (vals->stable && tp->tdecl->base.is_beta && vals->beta_types) 329 else if (vals->stable && tp->tdecl->base.is_beta)
331 { 330 {
332 /* we should enable this by default, but can't for now */ 331 /* we should enable this by default, but can't for now */
333 _eo_parser_log(&tp->base, "beta type declaration '%s' used in stable context", 332 _eo_parser_log(&tp->base, "beta type declaration '%s' used in stable context",
@@ -1363,7 +1362,6 @@ database_validate(const Eolian_Unit *src)
1363 EINA_TRUE, 1362 EINA_TRUE,
1364 !!getenv("EOLIAN_EVENT_REDEF_WARN"), 1363 !!getenv("EOLIAN_EVENT_REDEF_WARN"),
1365 !!getenv("EOLIAN_CLASS_UNIMPLEMENTED_WARN"), 1364 !!getenv("EOLIAN_CLASS_UNIMPLEMENTED_WARN"),
1366 !!getenv("EOLIAN_TYPEDECL_BETA_WARN")
1367 }; 1365 };
1368 1366
1369 /* do an initial pass to refill inherits */ 1367 /* do an initial pass to refill inherits */