mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-10-08 17:51:46 -04:00
2c61a5e051
tools/fix_tu_ret_decls.py: sweep-1's dominant residual (32 fresh near-0 rejects — byte-correct bodies, TU-refused) is the RETURN-TYPE half of the stale-decl wall: the TU forward-declares 'extern void f(void);' while the byte-true definition returns s32; the gate's arity pre-pass relaxes the PARENS but not the return. Retyping the TU's own decls to 'extern s32 f();' (byte-neutral: every declared-void caller ignores $v0 — fix_header_decl's proven argument, TU-scoped) banked 14 byte-identical, journaled edits kept only where the gate paid. 12 SKIPs are void-returning defs (a different conflict, suspected freshly-spliced (void) preambles), 4 retyped-but-refused.