From: fennecdjay Date: Sat, 21 Sep 2019 10:08:22 +0000 (+0200) Subject: :shirt: Clean scan2_func_def X-Git-Tag: nightly~2215^2~3 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=996215e79a7b0f47b14531af64f71f7bc08f2bbc;p=gwion.git :shirt: Clean scan2_func_def --- diff --git a/src/parse/scan2.c b/src/parse/scan2.c index 70666a18..2ccebe1b 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -520,10 +520,6 @@ ANN2(1,2) m_bool scan2_fdef(const Env env, const Func_Def f, const Value overloa ANN m_bool scan2_func_def(const Env env, const Func_Def f) { const m_uint scope = !GET_FLAG(f, global) ? env->scope->depth : env_push_global(env); const Value overload = nspc_lookup_value0(env->curr, f->base->xid); - const Value res = nspc_lookup_value0(env->curr, f->base->xid); -// if(res && res->owner == env->global_nspc) -// ERR_B(f->pos, _("'%s' already declared as value of type '%s'."), -// res->name, res->type->name) f->stack_depth = (env->class_def && !GET_FLAG(f, static) && !GET_FLAG(f, global)) ? SZ_INT : 0; if(GET_FLAG(f, variadic)) f->stack_depth += SZ_INT;