]> Nishi Git Mirror - gwion.git/commitdiff
:art: Get rid of ae_flag_arg (use abstract)
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 23:53:52 +0000 (01:53 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 23:53:52 +0000 (01:53 +0200)
src/parse/check.c
src/parse/scan1.c
util

index 815bc5bd7ad164bbfb0c76f736fc81572e06ba2a..c4bf2db2d931fe9e5a76f7980b4a38894e8b0a59 100644 (file)
@@ -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))
   }
index 41816b5cec28418d3c5ee96cbf3694f1dd7ccabe..265f339e0c2909de1580d44db1f0ab0bb9e1795f 100644 (file)
@@ -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 42898c99db2b54ec0f3d225010d7e60ff6e210a7..8054afd48c0b7c13a6e0d53e044df5812dc99ca5 160000 (submodule)
--- a/util
+++ b/util
@@ -1 +1 @@
-Subproject commit 42898c99db2b54ec0f3d225010d7e60ff6e210a7
+Subproject commit 8054afd48c0b7c13a6e0d53e044df5812dc99ca5