selfhost: drop snake_case locals in dyn/dynout/obj + w6a + cgen + ww driver

This commit is contained in:
2026-05-11 16:33:02 +09:00
parent c64e96cbd6
commit 97ca76d2bb
18 changed files with 1795 additions and 1795 deletions

View File

@@ -154,8 +154,8 @@ fn cgfnparams(c: *cgen, params: *node) void = {
fn cgfn(c: *cgen, fn_: *node) void = {
cgeninit(c, c.a);
c.fn_name = fn_.str;
c.fn_ret = fn_.lhs;
c.fnname = fn_.str;
c.fnret = fn_.lhs;
emitline("TEXT ");
if (fn_.exported == 0) {
@@ -212,10 +212,10 @@ fn cgfn(c: *cgen, fn_: *node) void = {
emitline(", SP\n");
cgfnparams(c, fn_.list);
c.last_was_return = 0;
c.lastwasreturn = 0;
if (fn_.body != nil) { cgstmt(c, fn_.body); };
if (c.last_was_return == 0) {
if (c.lastwasreturn == 0) {
// Zero AX before the fall-through return — matches C cgen,
// which always emits this so void-returning fns don't leak
// a stale callee value to their caller.
@@ -231,7 +231,7 @@ fn cgfn(c: *cgen, fn_: *node) void = {
export fn cgfile(c: *cgen, file: *node) void = {
if (file == nil) { return; };
c.strlits = nil;
c.strlit_seq = 0;
c.strlitseq = 0;
collectaliases(c, file);
collectstructs(c, file);
collectdefs(c, file);