]> Repositorios git - scryer-prolog.git/commit
remove RESOURCE_ERROR_OFFSET_INIT
authorSkgland <[email protected]>
Thu, 20 Nov 2025 20:44:29 +0000 (21:44 +0100)
committerBennet Bleßmann <[email protected]>
Thu, 20 Nov 2025 20:44:29 +0000 (21:44 +0100)
commitd4f2f7ba2b79609046e51bbd41756d95b919d13a
treec2e293383c61785dd9347bf4c83c34574fd5c58e
parenta05dc7950542ae1b2ae4b0925a0afcba843a2cc6
remove RESOURCE_ERROR_OFFSET_INIT

With it when using multiple Machine in one process only the first would store the pre-allocated error.
Instead Heap.resource_err_loc is now Option<NonZero<usize>> instead of usize using None for uninitialized.
The cell at index 0 should alredy be used by a runtime reserved interstitial cell that is allocated prior. So requiring the offset to be non zero should be fine.
src/machine/heap.rs