altos/scheme: apply also needs to not free value list on lambdas
authorKeith Packard <keithp@keithp.com>
Tue, 19 Dec 2017 19:35:09 +0000 (11:35 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 19 Dec 2017 19:35:09 +0000 (11:35 -0800)
commitfbe5dc9f215e7014aa8f9d325c1fba939816be03
tree06dfaad8451a0884bc8d98cfdcaf36625c567041
parent431165e5fa72ba6dffd477de32960745cdec332c
altos/scheme: apply also needs to not free value list on lambdas

When apply is invoked on any function, the cons in the argument list
cannot be immediately freed as they have been passed to the
function. That applies to both built-ins as well as lambdas; this
patch removes the special ao_scheme_skip_cons_free global and just
marks the stack in both cases.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/scheme/ao_scheme_eval.c