mes: use array-based stack. WIP: will not survice gc.
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)
commitda20d92c7749a74a8567252ac7c6673a5721d901
treef3c2111f0197848f3a0061fcbe96b28335a7e09b
parent90249f595f3f7c122628dd885b67d96956b2f270
mes: use array-based stack. WIP: will not survice gc.

* 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.
make.scm
module/mes/fluids.mes
src/gc.c
src/mes.c