A call of an imported procedure, and %INT/%DEC of %TRIM #619

Manually merged
binjovi-bot merged 2 commits from rpg-9-n-extcall-20261023 into trunk 2026-10-23 13:36:52 +00:00
Owner

A call of an imported procedure: extproc, and *OMIT of a CEE service

  • rpg_frames.zig (importFrame): the frame of a call of a procedure
    import. Units 1 and 2 as for a procedure of the module, then the count
    header (27 N-1; 37 H 0 I4; 33 H, its address the last argument) or, for
    99 P N 0 0, a null pointer pushed before the frame, which is *OMIT of
    the last parameter; then the name store and the blank of S+102.
  • rpg_eval.zig: a proved call of an import takes arguments by reference
    and *OMIT; CEERAN0 (a runtime table row) is then a call of the source.
  • rpg_source.zig: such a call is P(F: G: *OMIT) with a prototype
    dcl-pr P extproc('NAME') of the field types; *OMIT is
    *n char(12) options(*omit) (the feedback code of a CEE service).
  • Probes h-extproc (dictionary battery calls6), h-ceeran (battery
    ceeran: the LEMONADE groups 103 and 130 have its exact operation family).
    LEMONADE: 143 of 148 statements emitted on this change alone (was 141).

%INT and %DEC of %TRIM

  • rpg_trim.zig (argumentUnit): the trim loops followed by
    27 P; 113 q 1; 27 N give the trimmed value and its length as call
    arguments (%TRIM(F), %LEN(%TRIM(F))).
  • rpg_decimal_call.zig: _QRNX_GET_DECIMAL_NUM of such a value: the
    source is the trimmed field, or the data of a parameter at its pointer;
    the proof starts at the trim. I = %int(%trim(f)) and
    Z = %dec(%trim(f) : 5 : 0) are recovered.
  • Probe h-numtrim (dictionary batteries numtrim, numtrimp): the LEMONADE
    group 71 has its operation family. LEMONADE: group 71 recovered.

LEMONADE with both: 172 recovered, 6 partial, 0 unresolved (golden test).

# A call of an imported procedure: extproc, and *OMIT of a CEE service - `rpg_frames.zig` (`importFrame`): the frame of a call of a procedure import. Units 1 and 2 as for a procedure of the module, then the count header (`27 N-1; 37 H 0 I4; 33 H`, its address the last argument) or, for `99 P N 0 0`, a null pointer pushed before the frame, which is `*OMIT` of the last parameter; then the name store and the blank of S+102. - `rpg_eval.zig`: a proved call of an import takes arguments by reference and `*OMIT`; CEERAN0 (a runtime table row) is then a call of the source. - `rpg_source.zig`: such a call is `P(F: G: *OMIT)` with a prototype `dcl-pr P extproc('NAME')` of the field types; `*OMIT` is `*n char(12) options(*omit)` (the feedback code of a CEE service). - Probes `h-extproc` (dictionary battery calls6), `h-ceeran` (battery ceeran: the LEMONADE groups 103 and 130 have its exact operation family). LEMONADE: 143 of 148 statements emitted on this change alone (was 141). # %INT and %DEC of %TRIM - `rpg_trim.zig` (`argumentUnit`): the trim loops followed by `27 P; 113 q 1; 27 N` give the trimmed value and its length as call arguments (`%TRIM(F)`, `%LEN(%TRIM(F))`). - `rpg_decimal_call.zig`: `_QRNX_GET_DECIMAL_NUM` of such a value: the source is the trimmed field, or the data of a parameter at its pointer; the proof starts at the trim. `I = %int(%trim(f))` and `Z = %dec(%trim(f) : 5 : 0)` are recovered. - Probe `h-numtrim` (dictionary batteries numtrim, numtrimp): the LEMONADE group 71 has its operation family. LEMONADE: group 71 recovered. LEMONADE with both: 172 recovered, 6 partial, 0 unresolved (golden test).
sean force-pushed rpg-9-n-extcall-20261023 from e88aa9b250
All checks were successful
binjovi/ci Binjovi completed the frozen plan
to 9af65ad82a
All checks were successful
binjovi/ci Binjovi completed the frozen plan
2026-10-23 13:27:31 +00:00
Compare
sean changed title from A call of an imported procedure: extproc, and *OMIT of a CEE service to A call of an imported procedure, and %INT/%DEC of %TRIM 2026-10-23 13:28:07 +00:00
binjovi-bot manually merged commit 9af65ad82a into trunk 2026-10-23 13:36:52 +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!619
No description provided.