Captain Bob ruled "As v3: add at call", "Engine: call redirects" and "Build it". - The engine's call hook returns where P goes. - The kernel checks every call from code defined at run time. A TTL is counted down at the call. At a TTL of 0, or a denied word, the call is sent to (ACL-CALL), with the target on the data stack, which rechecks or refuses it by the word's own name, then goes on to it. - A word being compiled is no longer checked, as in v3. Two things were added while building, both from v3: - (ACL-BUSY) turns the check off while the policy rechecks. Without it the recheck recursed. - (ACL-CALL) does its own refusal and leaves WORD's buffer alone. A first version broke POST's CONVERT.digits. Test first: test_mesh_boot's five new checks failed before; now 120 pass and POST is 990/990. test_exec tests the redirect. test_host_quit's two v4-only expectations now follow v3: a denied word compiles. All 52 tests, test-32 and ASan/UBSan pass. An amd64 session passes 18/18. Five alternating host boots: +1.4% median, inside the noise. DECOMPOSITION.md 5.20 is updated, and the FPGA's call opcode is recorded as owing the same redirect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
10 lines
986 B
Plaintext
10 lines
986 B
Plaintext
/home/user/LithosAnanke/v4/tests/test_exec.c: In function 'test_call_hook_sees_every_call':
|
|
/home/user/LithosAnanke/v4/tests/test_exec.c:616:16: error: assignment to 'v4_call_hook' {aka 'void (*)(void *, v4_node *, long int)'} from incompatible pointer type 'v4_cell (*)(void *, v4_node *, v4_cell)' {aka 'long int (*)(void *, v4_node *, long int)'} [-Werror=incompatible-pointer-types]
|
|
616 | es.on_call = record_call; es.on_call_ctx = (void *)&seen;
|
|
| ^
|
|
/home/user/LithosAnanke/v4/tests/test_exec.c:637:16: error: assignment to 'v4_call_hook' {aka 'void (*)(void *, v4_node *, long int)'} from incompatible pointer type 'v4_cell (*)(void *, v4_node *, v4_cell)' {aka 'long int (*)(void *, v4_node *, long int)'} [-Werror=incompatible-pointer-types]
|
|
637 | es.on_call = redirect_call; es.on_call_ctx = 0;
|
|
| ^
|
|
cc1: all warnings being treated as errors
|
|
make: *** [Makefile:357: /home/user/LithosAnanke/v4/build/64-test_exec.c] Error 1
|