mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-26 21:36:06 -04:00
3e8138819a
Where to split: the jtbl spans (tables pack tight within a TU, separated across TUs), and that is also the MINIMUM — a TU with no switch emits no table and is invisible, so what you recover is a lower bound on the original structure, not the structure. What crosses: ask the compiler. 2,318 externs is the scary number and the wrong one; only 57 of 1,247 declared names cross a boundary, 19 of them typedefs with one definition each and zero shape conflicts. Fix TYPES first — a missing typedef cascades into dozens of parse errors that all evaporate at once. Plus the general defect it exposed (a typedef stripper must read the destination's includes) and the operational rule it cost twice (gate_main reverts src/*.c first, so commit alignment edits before gating).