From: fennecdjay Date: Sat, 21 Sep 2019 10:08:07 +0000 (+0200) Subject: :shirt: Put func decl in header fix #146 X-Git-Tag: nightly~2215^2~4 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1ab58b71899e54f577dec7b09663817094b40654;p=gwion.git :shirt: Put func decl in header fix #146 --- diff --git a/include/emit.h b/include/emit.h index 414f6c6c..57b406e7 100644 --- a/include/emit.h +++ b/include/emit.h @@ -40,4 +40,5 @@ ANN void emit_union_offset(Decl_List, const m_uint); ANN2(1,2) m_bool emit_instantiate_object(const Emitter, const Type, const Array_Sub, const m_bool); ANN m_uint emit_code_offset(const Emitter emit); ANN m_uint emit_local(const Emitter emit, const m_uint size, const m_bool is_obj); +ANN Instr emit_exp_spork(const Emitter, const Exp_Unary*); #endif diff --git a/include/traverse.h b/include/traverse.h index f4a756a0..1a679e58 100644 --- a/include/traverse.h +++ b/include/traverse.h @@ -46,4 +46,6 @@ ANN m_bool scan0_class_def(const Env, const Class_Def); ANN m_bool scan1_class_def(const Env, const Class_Def); ANN m_bool scan2_class_def(const Env, const Class_Def); ANN m_bool check_class_def(const Env, const Class_Def); + +ANN Type check_exp_call1(const Env env, const Exp_Call *exp); #endif diff --git a/src/lib/func.c b/src/lib/func.c index 5b939e3a..419e2aa8 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -18,9 +18,6 @@ #include "template.h" #include "parse.h" -ANN Type check_exp_call1(const Env env, const Exp_Call *exp); -ANN Instr emit_exp_spork(const Emitter, const Exp_Unary*); - static INSTR(LambdaAssign) { POP_REG(shred, SZ_INT) *(Func*)REG(-SZ_INT) = *(Func*)REG(0);