From 94b58a7f4a4a53cc40e21668176ff27ab706384d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 14 Apr 2020 01:53:52 +0200 Subject: [PATCH] :art: Get rid of ae_flag_arg (use abstract) --- src/parse/check.c | 2 +- src/parse/scan1.c | 2 +- util | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.43.0