From: fennecdjay Date: Thu, 15 Dec 2022 13:42:07 +0000 (+0100) Subject: :art: variable is fglobal only if there is context X-Git-Tag: nightly~207^2~38 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6f50222049f898f731bb2a9dbf93aa3fa41133ad;p=gwion.git :art: variable is fglobal only if there is context --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index eda5c7ea..145bc616 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -134,7 +134,8 @@ ANN static m_bool scan1_decl(const Env env, Exp_Decl *const decl) { env->class_def->size += t->size; } } - } else set_vflag(v, vflag_fglobal); // file global + } else if(env->context) + set_vflag(v, vflag_fglobal); // file global } else if (GET_FLAG(decl->td, global)) SET_FLAG(v, global); nspc_add_value(env->curr, vd->xid, v);