altos/scheme: Use memory manager mark code to note recursive print
authorKeith Packard <keithp@keithp.com>
Mon, 18 Dec 2017 06:22:50 +0000 (22:22 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Dec 2017 06:22:50 +0000 (22:22 -0800)
commite1a6b3bf458f311d832aea7eec34935d42f8efed
tree7141f7e4ae75f23969722f75517f4c39cb623263
parent9d1131da911f7220ac8b6cb7ba5a0afd3deef657
altos/scheme: Use memory manager mark code to note recursive print

This flags any object being printed and checks before recursing to
avoid infinite loops.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/scheme/ao_scheme.h
src/scheme/ao_scheme_cons.c
src/scheme/ao_scheme_frame.c
src/scheme/ao_scheme_mem.c
src/scheme/ao_scheme_vector.c