From 1d9e19fb3bb941cdc28e9d4c3063d3e213fd8312 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 18 Mar 2026 11:33:41 +0100 Subject: Refactor: use typedefs and CamelCase for aggregate types Looks nicer --- src/ir_stack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ir_stack.c') diff --git a/src/ir_stack.c b/src/ir_stack.c index 40a7b1d..d15a764 100644 --- a/src/ir_stack.c +++ b/src/ir_stack.c @@ -1,16 +1,16 @@ #include "ir.h" void -lowerstack(struct function *fn) +lowerstack(Function *fn) { fn->stksiz = 0; FREQUIRE(FNUSE); - struct block *blk = fn->entry; + Block *blk = fn->entry; do { for (int i = 0; i < blk->ins.n; ++i) { int t = blk->ins.p[i]; - struct instr *ins = &instrtab[t]; + Instr *ins = &instrtab[t]; if (oisalloca(ins->op)) { uint alignlog2 = ins->op - Oalloca1; assert(ins->l.i > 0); -- cgit v1.2.3