summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-10 14:35:41 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-10 14:35:41 +0200
commitafc011d8931006bd020ba5130a581580f709edcf (patch)
treec9e26abd1f9ef5d7aca82f35de1ed6de4cf55620 /src/lib/eolian
parent31658e6e1486f1ee30c5e5dad6ffd0e3c72771a7 (diff)
eolian: hard ban usage of ptr() in stable API
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/database_validate.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 9890bc5c83..b4a9a41053 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 unimplemented; 15 Eina_Bool unimplemented;
16 Eina_Bool unimplemented_beta; 16 Eina_Bool unimplemented_beta;
17 Eina_Bool ptr_stable;
18} Validate_State; 17} Validate_State;
19 18
20static Eina_Bool 19static Eina_Bool
@@ -261,8 +260,11 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
261 260
262 if (tp->is_ptr) 261 if (tp->is_ptr)
263 { 262 {
264 if (vals->stable && vals->ptr_stable) 263 if (vals->stable)
265 _eo_parser_log(&tp->base, "ptr() used in stable API"); 264 {
265 _eo_parser_log(&tp->base, "ptr() used in stable API");
266 return EINA_FALSE;
267 }
266 tp->is_ptr = EINA_FALSE; 268 tp->is_ptr = EINA_FALSE;
267 Eina_Bool still_ownable = database_type_is_ownable(src, tp, EINA_FALSE); 269 Eina_Bool still_ownable = database_type_is_ownable(src, tp, EINA_FALSE);
268 tp->is_ptr = EINA_TRUE; 270 tp->is_ptr = EINA_TRUE;
@@ -1475,8 +1477,7 @@ database_validate(const Eolian_Unit *src)
1475 EINA_FALSE, 1477 EINA_FALSE,
1476 EINA_TRUE, 1478 EINA_TRUE,
1477 !!getenv("EOLIAN_CLASS_UNIMPLEMENTED_WARN"), 1479 !!getenv("EOLIAN_CLASS_UNIMPLEMENTED_WARN"),
1478 !!getenv("EOLIAN_CLASS_UNIMPLEMENTED_BETA_WARN"), 1480 !!getenv("EOLIAN_CLASS_UNIMPLEMENTED_BETA_WARN")
1479 !!getenv("EOLIAN_PTR_STABLE_WARN")
1480 }; 1481 };
1481 1482
1482 /* do an initial pass to refill inherits */ 1483 /* do an initial pass to refill inherits */