fix(ezitext): restore version query workspace formals #1040

Merged
coah80 merged 1 commits from agent/bittle/version-workspace-review into main 2026-10-03 04:38:24 +00:00
coah80 commented 2026-10-03 04:35:37 +00:00 (Migrated from github.com)

Source contract

Restore the existing ziPtr workspace formal on Zi8GetVersion, Zi8GetBuildID and Zi8GetOEMID definitions. Their declarations already require it, and all four original calls in Zi8GetEngineSignature pass the workspace in r3. Each original helper overwrites r3 before reading it; the parameter is intentionally unused. No body, constant, caller or header changes.

This is code-neutral reconstruction, not a percentage gain.

Independent verification

Rebased and tested on be7ded2fdc.

  • Full 43U all_source/progress/report/DOL build passed
  • All 1,027 source objects preserve allocated payloads and canonical relocations; complete report unchanged
  • Helpers remain 3/3 exact, 24/24 code bytes; ctx comparison 3/3 zero differences
  • Pool identical and empty; literal check analyzes all three helpers with zero arguments/candidates/errors
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
  • Worktree checks and git diff --check pass
  • Tested tree: 06e9ebb909

Detailed original-call and worker evidence is in tools/decomp-assist/allhands-ezitext-version-workspace.attempts.md. No linking flags or other regions changed.

Note

Restore explicit workspace formals on eZiText version accessors

Changes Zi8GetVersion, Zi8GetBuildID, and Zi8GetOEMID in zi8ver.c from unspecified parameter lists to an explicit ziPtr __zi8_work_data workspace parameter. Return types, constants, and function bodies are unchanged. Adds a workspace note in allhands-ezitext-version-workspace.attempts.md with build and binary-equivalence verification results.

Macroscope summarized 3b57a60.

## Source contract Restore the existing ziPtr workspace formal on Zi8GetVersion, Zi8GetBuildID and Zi8GetOEMID definitions. Their declarations already require it, and all four original calls in Zi8GetEngineSignature pass the workspace in r3. Each original helper overwrites r3 before reading it; the parameter is intentionally unused. No body, constant, caller or header changes. This is code-neutral reconstruction, not a percentage gain. ## Independent verification Rebased and tested on be7ded2fdc4ebba0b87695a132905e38e7f984df. - Full 43U all_source/progress/report/DOL build passed - All 1,027 source objects preserve allocated payloads and canonical relocations; complete report unchanged - Helpers remain 3/3 exact, 24/24 code bytes; ctx comparison 3/3 zero differences - Pool identical and empty; literal check analyzes all three helpers with zero arguments/candidates/errors - DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d - Worktree checks and git diff --check pass - Tested tree: 06e9ebb909eed4cd6036d419d493d31cb7749426 Detailed original-call and worker evidence is in tools/decomp-assist/allhands-ezitext-version-workspace.attempts.md. No linking flags or other regions changed. <!-- 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] > ### Restore explicit workspace formals on eZiText version accessors > Changes `Zi8GetVersion`, `Zi8GetBuildID`, and `Zi8GetOEMID` in [zi8ver.c](https://github.com/coah80/wii-ipl/pull/1040/files#diff-e5de282bec55c99ba7bf2969d4768f2e39ea5bc1f40c2ac7ac6c691899147b07) from unspecified parameter lists to an explicit `ziPtr __zi8_work_data` workspace parameter. Return types, constants, and function bodies are unchanged. Adds a workspace note in [allhands-ezitext-version-workspace.attempts.md](https://github.com/coah80/wii-ipl/pull/1040/files#diff-c022c9f2641ff0c0787b9990ce39ba48fc890c4a8253f7b1847ecfc7f84144de) with build and binary-equivalence verification results. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 3b57a60.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 04:38:22 +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.