From: fennecdjay Date: Thu, 9 May 2024 11:37:03 +0000 (+0200) Subject: :art: make case check an option X-Git-Tag: nightly~13 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=80a724d285d2d0624f217b32178b158acd98257e;p=gwion.git :art: make case check an option --- diff --git a/fmt b/fmt index 90444cfb..4287d6bb 160000 --- a/fmt +++ b/fmt @@ -1 +1 @@ -Subproject commit 90444cfbdd83f04967ef648b5702fda97e5490e2 +Subproject commit 4287d6bba515c6d9a304341f43a759352778ce68 diff --git a/src/env/func.c b/src/env/func.c index a6d80cf0..6791f934 100644 --- a/src/env/func.c +++ b/src/env/func.c @@ -63,7 +63,7 @@ ANN void print_signature(const Gwion gwion, const Func f) { struct GwfmtState ls = {.minimize=true, .ppa = gwion->ppa}; gwfmt_state_init(&ls); text_init(&ls.text, gwion->mp); - Gwfmt gwfmter = {.mp = gwion->mp, .st = gwion->st, .ls = &ls, .line = 1, .last = cht_nl }; + Gwfmt gwfmter = {.mp = gwion->mp, .st = gwion->st, .ls = &ls, .line = 1, .last = cht_nl}; gwfmt_func_def(&gwfmter, f->def); gwlog_related_from(ls.text.str, f->value_ref->from); text_release(&ls.text); diff --git a/src/pass.c b/src/pass.c index cd8ec805..6e8b990f 100644 --- a/src/pass.c +++ b/src/pass.c @@ -69,6 +69,9 @@ ANEW ANN struct Passes_ *new_passes(const Gwion gwion) { map_init(&a->map); for (m_uint i = 0; i < N_PASS; ++i) pass_register(gwion, default_passes_name[i], default_passes[i]); + pass_register(gwion, "scan0", scan0_ast); + pass_register(gwion, "scan1", scan1_ast); + pass_register(gwion, "scan2", scan2_ast); vector_init(&a->vec); return a; }