From: Jérémie Astor Date: Tue, 15 Sep 2020 21:59:56 +0000 (+0200) Subject: :art: Use transparent union X-Git-Tag: nightly~1291 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5386f8fdf5e87749c5771b8ea1b19067eb9b3bee;p=gwion.git :art: Use transparent union --- diff --git a/include/env/env.h b/include/env/env.h index b07f2f87..7bac4e9b 100644 --- a/include/env/env.h +++ b/include/env/env.h @@ -51,7 +51,7 @@ ANN void env_add_type(const Env, const Type); ANN Type find_type(const Env, Type_Decl*); ANN m_bool already_defined(const Env env, const Symbol s, const loc_t pos); ANN m_bool type_engine_check_prog(const Env, const Ast); -ANN m_bool type_engine_clean_prog(const Env, const m_bool*); +ANN m_bool type_engine_clean_prog(const Env, m_bool*); ANN m_bool traverse_func_template(const Env, const Func_Def); ANN2(1,3) void env_err(const Env, const loc_t pos, const m_str fmt, ...); ANN Value global_string(const Env env, const m_str str); diff --git a/include/pass.h b/include/pass.h index b0c50efd..60f21f13 100644 --- a/include/pass.h +++ b/include/pass.h @@ -11,7 +11,7 @@ struct Passes_ { struct Vector_ vec; }; // change this to gwion ? -typedef m_bool (*compilation_pass)(Env, PassArg); +typedef m_bool (*compilation_pass)(const Env, PassArg); ANEW ANN struct Passes_* new_passes(MemPool mp); ANN void free_passes(MemPool mp, struct Passes_*);