fix(cdb): unify helper signatures while preserving exact output #1173
Reference in New Issue
Block a user
Delete Branch "agent/bittle/cdb-unify-arity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Remove the CDB_DATABASE_IMPLEMENTATION split introduced in #1167 and give seven external helpers consistent declarations and definitions. Day helpers take 3 ints, Month 2, Year 1, and directory conversion 5 strings. Removed trailing parameters were never read; MonthEnd now declares its fully assigned day locally. Names, linkage and return types remain unchanged.
The previous caller-only short prototypes conflicted with longer definitions in CDBConv.c. Exact PowerPC output does not make incompatible C function types valid. This correction fixes that without changing compiled behavior.
Evidence and independent verification
a73498cb73equals published tree; based onf8957ca95bFull audit: tools/decomp-assist/cdb-unify-arity.attempts.md. No NWC24 or unrelated behavior changes. This is a source-correctness repair, not a new percentage gain. No merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.