From 5386f8fdf5e87749c5771b8ea1b19067eb9b3bee Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 15 Sep 2020 23:59:56 +0200 Subject: [PATCH] :art: Use transparent union --- include/env/env.h | 2 +- include/pass.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_*); -- 2.43.0