fix(eZiText): align candidate and match function prototypes #1225

Merged
coah80 merged 1 commits from agent/fix/ezi-cross-tu-prototypes into main 2026-10-05 15:54:49 +00:00
coah80 commented 2026-10-05 15:54:03 +00:00 (Migrated from github.com)

Correction

Align five cross-translation-unit function contracts after the typed-definition cleanup: Zi8Punctuation, Zi8GetKoreanCandidates, Zi8MatchPhonetic, Zi8SecMatchChar and Zi8SecMatchComp. The Korean caller passes the actual countOnly byte address. Six focused source-line edits; no new types, flags, assembly, or dummy state.

Independent verification

Base: 55ae09acca
Tested tree: a1d5d5bbea
Parent independently forced both edited TUs to rebuild and reran the object/report audit.

  • All 1,027 source objects: allocated sections and relocation records unchanged
  • Entire progress report unchanged; no score inflation
  • All 38 already-exact functions in the five relevant units remain exact; existing zi8InternalGetZH nonmatch unchanged
  • Pools identical; 35 strict ctxdiff comparisons zero; three show only eight independently resolved jump-table label aliases
  • Full 43U build and explicit ok target pass
  • DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d
  • Worktree and whitespace checks pass

Audit: tools/decomp-assist/ezi-cross-tu-prototypes-20261005.md. Existing repository completion failures remain; original binaries and detailed object evidence stay local. No merge or auto-merge requested.

Note

Fix eZiText cross-translation-unit prototype declarations

  • Aligns prototype declarations in zi8cgetc.c and zi8getc2.c with their implementations: Zi8MatchPhonetic now returns ziBool, and several match/candidate functions use ziU8*, ZiCandidateOptions*, and struct __zi8_work_data_s* instead of generic pointers.
  • Updates the Zi8GetCandidatesOrCount Korean-candidate call to pass the address of options->countOnly instead of the whole options pointer.
  • Adds an audit document at ezi-cross-tu-prototypes-20261005.md covering the corrections, build and object-equivalence checks, and handoff evidence.
  • Behavioral Change: Zi8GetKoreanCandidates call now receives &options->countOnly; check Zi8GetCandidatesOrCount in zi8getc2.c if candidate counts change.

Macroscope summarized 00fbe66.

## Correction Align five cross-translation-unit function contracts after the typed-definition cleanup: Zi8Punctuation, Zi8GetKoreanCandidates, Zi8MatchPhonetic, Zi8SecMatchChar and Zi8SecMatchComp. The Korean caller passes the actual countOnly byte address. Six focused source-line edits; no new types, flags, assembly, or dummy state. ## Independent verification Base: 55ae09acca8d719980432844681f95ca4337fd7c Tested tree: a1d5d5bbeae6a4d42c825dc4c0494ca715c81f26 Parent independently forced both edited TUs to rebuild and reran the object/report audit. - All 1,027 source objects: allocated sections and relocation records unchanged - Entire progress report unchanged; no score inflation - All 38 already-exact functions in the five relevant units remain exact; existing zi8InternalGetZH nonmatch unchanged - Pools identical; 35 strict ctxdiff comparisons zero; three show only eight independently resolved jump-table label aliases - Full 43U build and explicit ok target pass - DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d - Worktree and whitespace checks pass Audit: tools/decomp-assist/ezi-cross-tu-prototypes-20261005.md. Existing repository completion failures remain; original binaries and detailed object evidence stay local. No merge or auto-merge requested. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Fix eZiText cross-translation-unit prototype declarations > - Aligns prototype declarations in [zi8cgetc.c](https://github.com/coah80/wii-ipl/pull/1225/files#diff-c5899d9823fec11392add0326b5e7a8a64ca8e4e3ec1bebb2bd298304812ac69) and [zi8getc2.c](https://github.com/coah80/wii-ipl/pull/1225/files#diff-7d7f9824b7d29e2d0340b7ad07d962b50d8291182d36bfad520ad03f335698a8) with their implementations: `Zi8MatchPhonetic` now returns `ziBool`, and several match/candidate functions use `ziU8*`, `ZiCandidateOptions*`, and `struct __zi8_work_data_s*` instead of generic pointers. > - Updates the `Zi8GetCandidatesOrCount` Korean-candidate call to pass the address of `options->countOnly` instead of the whole options pointer. > - Adds an audit document at [ezi-cross-tu-prototypes-20261005.md](https://github.com/coah80/wii-ipl/pull/1225/files#diff-a7f0dd46f50533e3a3ece4adf6ad9ac9873867154004fb1874b8ff03934e5da0) covering the corrections, build and object-equivalence checks, and handoff evidence. > - Behavioral Change: `Zi8GetKoreanCandidates` call now receives `&options->countOnly`; check `Zi8GetCandidatesOrCount` in [zi8getc2.c](https://github.com/coah80/wii-ipl/pull/1225/files#diff-7d7f9824b7d29e2d0340b7ad07d962b50d8291182d36bfad520ad03f335698a8) if candidate counts change. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 00fbe66.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-05 15:54:46 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.