More interesting for testing.
Signed-off-by: Kaz Wesley <kaz@lambdaverse.org>
// Entire toplevel becomes `for (;;) cf->cont.fn();`
char buf[512];
ssize_t n;
+ // no GC (leak everything)
+ ptop = 1;
+ vhp = 1;
+ root = oblist_create (13);
+ globals = vector_create (64);
+ init_standard_env ();
while ((n = read (STDIN_FILENO, buf, sizeof (buf))) > 0)
{
- // mock GC (no object persistence)
- ptop = 1;
- vhp = 1;
- root = oblist_create (13);
- globals = vector_create (64);
- init_standard_env ();
// terminate input
assert (buf[n - 1] == '\n');
buf[n - 1] = '\0';