home: hub: zuo

Download patch

ref: 08a4ce8120527c11fde163dd525ce700e4d6808b
parent: ef5efcbbf1c2d775433867d7ed00b206a0e95dad
author: Jens Axel Søgaard <jensaxel@soegaard.net>
date: Fri Oct 27 14:29:51 CDT 2023

Fix problem in call/prompt

--- a/tests/procedure.zuo
+++ b/tests/procedure.zuo
@@ -83,3 +83,5 @@
                             (continuation-prompt-available? 'tag)))
                     'tag)
        '(#t #t))
+(check-fail (call/prompt apply 'tag)
+            "apply: wrong number of arguments: [no arguments]\n")
\ No newline at end of file
--- a/zuo.c
+++ b/zuo.c
@@ -3330,6 +3330,7 @@
             if (tag->tag != zuo_symbol_tag)
               zuo_fail1w("call/prompt", "not a symbol", tag);
             args = z.o_null;
+            count = 0;
             Z.o_interp_meta_k = zuo_cons(zuo_cons(Z.o_interp_k, tag),
                                          Z.o_interp_meta_k);
             Z.o_interp_k = z.o_done_k;