From: Jérémie Astor Date: Thu, 25 Mar 2021 21:27:44 +0000 (+0100) Subject: :art: Fix trait thingy X-Git-Tag: nightly~815 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=db00cfb12336ad47b191b60f5353ec1bc20e03dd;p=gwion.git :art: Fix trait thingy --- diff --git a/src/clean.c b/src/clean.c index 51b7ef63..f677fd17 100644 --- a/src/clean.c +++ b/src/clean.c @@ -340,7 +340,7 @@ ANN static void clean_type_def(Clean *a, Type_Def b) { if(b->tmpl) clean_tmpl(a, b->tmpl); } - +#define clean_extend clean_class_def DECL_SECTION_FUNC(clean, void, Clean*) ANN static inline void clean_section(Clean *a, Section *b) { diff --git a/src/emit/emit.c b/src/emit/emit.c index 87ebc592..f0e0d2ce 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2288,6 +2288,7 @@ ANN static m_bool emit_func_def(const Emitter emit, const Func_Def f) { } #define emit_fptr_def dummy_func +#define emit_extend dummy_func HANDLE_SECTION_FUNC(emit, m_bool, Emitter) ANN Code* emit_class_code(const Emitter emit, const m_str name) { diff --git a/src/parse/check.c b/src/parse/check.c index 5b7a28ef..2a4578d4 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1334,6 +1334,7 @@ ANN m_bool check_func_def(const Env env, const Func_Def f) { } #define check_fptr_def dummy_func +#define check_extend dummy_func HANDLE_SECTION_FUNC(check, m_bool, Env) ANN static m_bool check_parent(const Env env, const Class_Def cdef) { diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 0d365410..401008e6 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -342,6 +342,7 @@ ANN static m_bool scan0_stmt_list(const Env env, Stmt_List list) { } #define scan0_func_def dummy_func +#define scan0_extend dummy_func HANDLE_SECTION_FUNC(scan0, m_bool, Env) ANN static m_bool scan0_class_def_inner(const Env env, const Class_Def cdef) { diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 2feee138..1ee0c1d0 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -593,7 +593,7 @@ ANN m_bool scan1_func_def(const Env env, const Func_Def fdef) { env_pop(env, scope); return ret; } - +#define scan1_extend dummy_func HANDLE_SECTION_FUNC(scan1, m_bool, Env) ANN static Type scan1_get_parent(const Env env, const Type_Def tdef) { diff --git a/src/parse/scan2.c b/src/parse/scan2.c index 43b059be..1196b2b9 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -528,6 +528,7 @@ ANN m_bool scan2_func_def(const Env env, const Func_Def fdef) { } #define scan2_enum_def dummy_func +#define scan2_extend dummy_func HANDLE_SECTION_FUNC(scan2, m_bool, Env) ANN static m_bool scan2_parent(const Env env, const Class_Def cdef) {