summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-29 10:45:24 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-29 10:53:44 +0100
commitbdf696a6076973d7091ba878ea2546d899154ff1 (patch)
treeffa3884c52b2c1c8948fa7a2b162d0ab57495baf /src/lib/eolian
parent8f7b965f91a1e2905b9d87d1ea38260782f820b4 (diff)
Revert "eolian: enforce that list<> can only be used with @beta API."
This reverts commit 6b110e578d24b2a99c4c1b158433327a0a43ce1a. This breaks bindings compilation.
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/Eolian.h5
-rw-r--r--src/lib/eolian/database_validate.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 7f19ff93e7..db0421634a 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -336,12 +336,7 @@ typedef enum
336 EOLIAN_TYPE_BUILTIN_ARRAY, 336 EOLIAN_TYPE_BUILTIN_ARRAY,
337 EOLIAN_TYPE_BUILTIN_FUTURE, 337 EOLIAN_TYPE_BUILTIN_FUTURE,
338 EOLIAN_TYPE_BUILTIN_ITERATOR, 338 EOLIAN_TYPE_BUILTIN_ITERATOR,
339#ifdef EFL_BETA_API_SUPPORT
340 EOLIAN_TYPE_BUILTIN_LIST, 339 EOLIAN_TYPE_BUILTIN_LIST,
341#else
342 // Placeholder when using release API only. Done to prevent offseting the value below.
343 EOLIAN_TYPE_BUILTIN_BETA_PLACEHOLDER1,
344#endif
345 340
346 EOLIAN_TYPE_BUILTIN_ANY_VALUE, 341 EOLIAN_TYPE_BUILTIN_ANY_VALUE,
347 EOLIAN_TYPE_BUILTIN_ANY_VALUE_REF, 342 EOLIAN_TYPE_BUILTIN_ANY_VALUE_REF,
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 1e7b072c9d..b1af2185ef 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -400,9 +400,9 @@ _validate_type(Validate_State *vals, Eolian_Type *tp, Eina_Bool by_ref,
400 int kwid = eo_lexer_keyword_str_to_id(tp->base.name); 400 int kwid = eo_lexer_keyword_str_to_id(tp->base.name);
401 if (kwid > KW_void) 401 if (kwid > KW_void)
402 tp->ownable = EINA_TRUE; 402 tp->ownable = EINA_TRUE;
403 if ((kwid == KW_hash || kwid == KW_list) && vals->stable) 403 if (kwid == KW_hash && vals->stable)
404 { 404 {
405 _eo_parser_log(&tp->base, "hashes and lists not allowed in stable context"); 405 _eo_parser_log(&tp->base, "hashes not allowed in stable context");
406 return EINA_FALSE; 406 return EINA_FALSE;
407 } 407 }
408 Eolian_Type *itp = tp->base_type; 408 Eolian_Type *itp = tp->base_type;