Procedure pointers: null stores, declarations and subfields #626

Manually merged
binjovi-bot merged 3 commits from rpg-9-p-procptr-20261024 into trunk 2026-10-24 00:48:29 +00:00
Owner

Procedure pointers: null stores, declarations and subfields

  • A procedure pointer (symbol kind 0x0a, type 0a 0 0 0 0 0 0 16) is data for
    the evaluator (rpg_flow.isData; rpg_eval.pointerType for a static or structure target), so
    p = *NULL is a statement.
  • rpg_source_decl.zig: dcl-s p pointer(*proc) with a null inz, and a
    data structure that holds a procedure pointer (flag word 0xf000c000) is a
    declared field.
  • rpg_source_parts.zig: a 16-byte type 10 subfield is pointer(*proc).
  • Twins rpg-pointer-procedure, -repeat and -field now emit their
    source; -auto still stops at its END-PROC.

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":3,"newly_clean":3,"clean_delta":3,"base":209,"new":212},"twins":{"groups":426,"recovered":413,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-CONSTRUCT/POINTER/rpg-pointer-procedure-field/stripped/archive.savf 1","savf/SC-CONSTRUCT/POINTER/rpg-pointer-procedure-repeat/stripped/archive.savf 1","savf/SC-CONSTRUCT/POINTER/rpg-pointer-procedure/stripped/archive.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":648}}
# Procedure pointers: null stores, declarations and subfields - A procedure pointer (symbol kind 0x0a, type `0a 0 0 0 0 0 0 16`) is data for the evaluator (`rpg_flow.isData`; `rpg_eval.pointerType` for a static or structure target), so `p = *NULL` is a statement. - `rpg_source_decl.zig`: `dcl-s p pointer(*proc)` with a null `inz`, and a data structure that holds a procedure pointer (flag word 0xf000c000) is a declared field. - `rpg_source_parts.zig`: a 16-byte type 10 subfield is `pointer(*proc)`. - Twins `rpg-pointer-procedure`, `-repeat` and `-field` now emit their source; `-auto` still stops at its END-PROC. ## 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":3,"newly_clean":3,"clean_delta":3,"base":209,"new":212},"twins":{"groups":426,"recovered":413,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-CONSTRUCT/POINTER/rpg-pointer-procedure-field/stripped/archive.savf 1","savf/SC-CONSTRUCT/POINTER/rpg-pointer-procedure-repeat/stripped/archive.savf 1","savf/SC-CONSTRUCT/POINTER/rpg-pointer-procedure/stripped/archive.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":648}} ```
binjovi-bot manually merged commit e34fd9107f into trunk 2026-10-24 00:48:29 +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!626
No description provided.