Move the text output of the emitter into rpg_source_render_emit.zig #716

Manually merged
binjovi-bot merged 2 commits from sourcerer-l9c-render into trunk 2026-11-04 13:36:11 +00:00
Owner

Move the text output of the emitter into rpg_source_render_emit.zig

The text-output region of rpg_source.zig moves to a peer module, as the
DDS-member and call regions did: render through renderColumns (the
render entry, the columns, fixed and mixed mode tests, the fixed-format
line renderer, the tag names, the columns uses, the output edits and the
overflow and output indicators). The bodies are unchanged except for the
indentation of the moved block and fn to pub fn. rpg_source.zig keeps
one pub const alias per moved method.

Helpers the moved bodies call stay in rpg_source.zig and become pub:
the type Code, the functions loads, tagKey, tagPrefix,
noCalculationRule, relationCode, numericLiteral, notedHere,
prototypeLines, keyFieldName, keyRecord, interface, and the methods
rebuilt, isQualified, partOffsets, trailerFail.

Proof: emit-bytes-diff.sh on the base binary and the HEAD binary over the
same data tree reports identical. No logic change.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"regenerated","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":322,"new":322},"twins":{"groups":468,"recovered":460,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":908}}
# Move the text output of the emitter into rpg_source_render_emit.zig The text-output region of `rpg_source.zig` moves to a peer module, as the DDS-member and call regions did: `render` through `renderColumns` (the `render` entry, the columns, fixed and mixed mode tests, the fixed-format line renderer, the tag names, the columns uses, the output edits and the overflow and output indicators). The bodies are unchanged except for the indentation of the moved block and `fn` to `pub fn`. `rpg_source.zig` keeps one `pub const` alias per moved method. Helpers the moved bodies call stay in `rpg_source.zig` and become `pub`: the type `Code`, the functions `loads`, `tagKey`, `tagPrefix`, `noCalculationRule`, `relationCode`, `numericLiteral`, `notedHere`, `prototypeLines`, `keyFieldName`, `keyRecord`, `interface`, and the methods `rebuilt`, `isQualified`, `partOffsets`, `trailerFail`. Proof: `emit-bytes-diff.sh` on the base binary and the HEAD binary over the same data tree reports `identical`. No logic change. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"regenerated","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":322,"new":322},"twins":{"groups":468,"recovered":460,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":908}} ```
sean force-pushed sourcerer-l9c-render from 6e102c1dc8
All checks were successful
binjovi/ci Binjovi completed the frozen plan
to 42126ac436
All checks were successful
binjovi/ci Binjovi completed the frozen plan
2026-11-04 13:22:04 +00:00
Compare
binjovi-bot manually merged commit 2de1f72952 into trunk 2026-11-04 13:36:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!716
No description provided.