From 1ab58b71899e54f577dec7b09663817094b40654 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 21 Sep 2019 12:08:07 +0200 Subject: [PATCH] :shirt: Put func decl in header fix #146 --- include/emit.h | 1 + include/traverse.h | 2 ++ src/lib/func.c | 3 --- 3 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.43.0