From 138f00a37d7c904c2d137dfab8b92b217bc63264 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 30 Jan 2023 04:10:58 +0100 Subject: [PATCH] :art: nspc_add --- include/env/value.h | 2 +- src/parse/scan2.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/env/value.h b/include/env/value.h index c36b3dee..67d24b39 100644 --- a/include/env/value.h +++ b/include/env/value.h @@ -54,6 +54,6 @@ ANN static inline void defined_here(const Value v) { ANN static inline void valid_value(const Env env, const Symbol xid, const Value v) { set_vflag(v, vflag_valid); - _nspc_add_value(env->curr, xid, v); + nspc_add_value(env->curr, xid, v); } #endif diff --git a/src/parse/scan2.c b/src/parse/scan2.c index 9b6786b2..b4f9f3a0 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -32,7 +32,7 @@ ANN static m_bool scan2_decl(const Env env, const Exp_Decl *decl) { const Type t = decl->type; CHECK_BB(ensure_scan2(env, t)); const Var_Decl vd = decl->vd; - _nspc_add_value(env->curr, vd.xid, vd.value); + nspc_add_value(env->curr, vd.xid, vd.value); return GW_OK; } @@ -379,7 +379,7 @@ static m_bool scan2_fdef_tmpl(const Env env, const Func_Def f, name) const Symbol sym = func_symbol(env, env->curr->name, name, "template", ff->def->vt_index); - _nspc_add_value(env->curr, sym, value); + nspc_add_value(env->curr, sym, value); if (!overload) nspc_add_value(env->curr, f->base->xid, value); nspc_add_func(env->curr, sym, func); func->def->vt_index = ff->def->vt_index; @@ -390,7 +390,7 @@ static m_bool scan2_fdef_tmpl(const Env env, const Func_Def f, } while (type && (type = type->info->parent) && (nspc = type->nspc)); --i; const Symbol sym = func_symbol(env, env->curr->name, name, "template", i); - _nspc_add_value(env->curr, sym, value); + nspc_add_value(env->curr, sym, value); nspc_add_func(env->curr, sym, func); if (!overload) nspc_add_value(env->curr, f->base->xid, value); else func->def->vt_index = ++overload->from->offset; @@ -486,7 +486,7 @@ static Value func_create(const Env env, const Func_Def f, const Value overload, nspc_add_func(env->curr, insert_symbol(func->name), func); const Value v = func_value(env, func, overload); scan2_func_def_flag(env, f); - _nspc_add_value(env->curr, insert_symbol(func->name), v); + nspc_add_value(env->curr, insert_symbol(func->name), v); return v; } -- 2.43.0