summary refs log tree commit diff
path: root/evoke.e
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-08-28 22:21:52 -0700
committerIrene Knapp <ireneista@irenes.space>2026-08-28 22:21:52 -0700
commita41c6444d30f9ad561d95a1776f796581338df16 (patch)
treeec8b878efec4f37d330aff1098d46e20960b7f01 /evoke.e
parent6e0227328154e18810d8dfa4489bf84c9c15cbf7 (diff)
make read-to-buffer take its delimiter as a parameter
since the recommended invocation to build Evocation (hehe) does the heavy lifting in interpreted mode, this required a new helper, allocate-string, which takes a string in the scratch space and properly allocates it so it won't be overwritten by future allocations

Force-Push: yes
Change-Id: Ia73612a65fd7c11af5fe110c573c23c16b777112
Diffstat (limited to 'evoke.e')
-rw-r--r--evoke.e4
1 files changed, 2 insertions, 2 deletions
diff --git a/evoke.e b/evoke.e
index 41c3687..ddb6135 100644
--- a/evoke.e
+++ b/evoke.e
@@ -1,7 +1,7 @@
 ~ (cat labels.e elf.e transform.e execution.e \
-~  echo 262144 read-to-buffer; \
+~  echo 's" pyrzqxgl" allocate-string dup 262144 read-to-buffer'; \
 ~  cat core.e linux.e output.e amd64.e execution-support.e log-load.e; \
-~  echo pyrzqxgl 262144 read-to-buffer; \
+~  echo pyrzqxgl swap 262144 read-to-buffer; \
 ~  cat core.e linux.e output.e amd64.e execution-support.e log-load.e \
 ~      dynamic.e input.e interpret.e flow-control.e linux-dynamic.e; \
 ~  echo 0 sys-exit pyrzqxgl; \