core: Use array-based stack.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 14 Dec 2017 06:05:53 +0000 (07:05 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 14 Dec 2017 06:05:53 +0000 (07:05 +0100)
commitd73df09ab63b899724351d1e4a8569b08142cb1f
treee97e82161366c53f86795fdaa3cd4fabc0fdad3a
parenta8ae42ff3c7a6a212b7631ad1bed69b8730d1062
core: Use array-based stack.

* src/mes.c (STACK_SIZE)[MES_ARRAY_STACK]: New variable.
(g_stack_array): New variable.
(g_stack): Change type to SCM*.
(gc_push_frame)[MES_ARRAY_STACK]: Use g_stack_array, g_stack.
(gc_peek_frame): Likewise.
(gc_pop_frame): Likewise.
* src/gc.c (gc_check): Likewise.
(gc): Likewise.
scaffold/mini-mes.c
src/gc.c
src/mes.c