Skip to content

Commit

Permalink
🎨 make case check an option
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed May 9, 2024
1 parent c0f714d commit 80a724d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fmt
2 changes: 1 addition & 1 deletion src/env/func.c
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/pass.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 80a724d

Please sign in to comment.