Split the call rules of rpg_source.zig into rpg_source_calls_emit.zig #701

Manually merged
binjovi-bot merged 1 commit from l9-emitter-calls-split into trunk 2026-11-03 14:03:37 +00:00
Owner

Split the call rules of rpg_source.zig into rpg_source_calls_emit.zig

The call region of the Emitter in src/core/rpg_source.zig moves to the peer
module src/core/rpg_source_calls_emit.zig: dateCall through moduleProcedure
(the DATE return of a call, the copy from a pointer, the packed template of an
EVAL, the field of a storage, the subroutine symbols, the program and checked
program calls, the module and imported procedure calls). The moved bodies are
unchanged; the only edits are pub on the moved functions and on the host names
they use. The Emitter keeps one pub const x = calls.x; alias per moved method,
so every caller in rpg_source.zig is unchanged.

No behavior change. The proof is emit-bytes-diff.sh: every emitted *.rpgle
and *.rpgle.dds is byte-identical, and the forms.ndjson projection is equal,
for the merge-base binary and this commit's binary on the same data tree.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":317,"new":317},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":1444}}
# Split the call rules of rpg_source.zig into rpg_source_calls_emit.zig The call region of the `Emitter` in src/core/rpg_source.zig moves to the peer module src/core/rpg_source_calls_emit.zig: `dateCall` through `moduleProcedure` (the DATE return of a call, the copy from a pointer, the packed template of an EVAL, the field of a storage, the subroutine symbols, the program and checked program calls, the module and imported procedure calls). The moved bodies are unchanged; the only edits are `pub` on the moved functions and on the host names they use. The Emitter keeps one `pub const x = calls.x;` alias per moved method, so every caller in rpg_source.zig is unchanged. No behavior change. The proof is `emit-bytes-diff.sh`: every emitted `*.rpgle` and `*.rpgle.dds` is byte-identical, and the forms.ndjson projection is equal, for the merge-base binary and this commit's binary on the same data tree. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":317,"new":317},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":1444}} ```
Split the call rules of rpg_source.zig into rpg_source_calls_emit.zig
All checks were successful
binjovi/ci Binjovi completed the frozen plan
910214951e
Move the call region of the Emitter (dateCall through moduleProcedure)
to a peer module. Bodies unchanged; the Emitter keeps one pub const alias
per moved method. No behavior change.
binjovi-bot manually merged commit c1d60c42f2 into trunk 2026-11-03 14:03:37 +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!701
No description provided.