From: Jérémie Astor Date: Mon, 13 Apr 2020 23:53:52 +0000 (+0200) Subject: :art: Get rid of ae_flag_arg (use abstract) X-Git-Tag: nightly~1687 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=94b58a7f4a4a53cc40e21668176ff27ab706384d;p=gwion.git :art: Get rid of ae_flag_arg (use abstract) --- diff --git a/src/parse/check.c b/src/parse/check.c index 815bc5bd..c4bf2db2 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -255,7 +255,7 @@ ANN static Value check_non_res_value(const Env env, const Symbol *data) { } return v; } else if(env->func && GET_FLAG(env->func->def, global)) { - if(!SAFE_FLAG(value, abstract) && !SAFE_FLAG(value, arg)) + if(!SAFE_FLAG(value, abstract)) ERR_O(prim_pos(data), _("non-global variable '%s' used from global function."), s_name(var)) } diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 41816b5c..265f339e 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -290,7 +290,7 @@ ANN static Value arg_value(const Env env, const Arg_List list) { if(var->array) v->type = list->type = array_type(env, list->type, var->array->depth); if(list->td) - v->flag = list->td->flag | ae_flag_arg; + v->flag = list->td->flag | ae_flag_abstract; return v; } diff --git a/util b/util index 42898c99..8054afd4 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit 42898c99db2b54ec0f3d225010d7e60ff6e210a7 +Subproject commit 8054afd48c0b7c13a6e0d53e044df5812dc99ca5