core: Prepare gc.c for mescc, non-POSIX_SOURCE.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 26 Mar 2017 13:55:12 +0000 (15:55 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 26 Mar 2017 13:55:12 +0000 (15:55 +0200)
commit6a816687e874ee823386f04834dcd7bd0e80bf41
treee0086a76de99adef19bb61c09a2f94f5e5a66ccf
parent17f89b2c78e333d2f0cee1ecc80a2c367468318e
core: Prepare gc.c for mescc, non-POSIX_SOURCE.

* mes.c (NLENGTH, NVALUE, NVECTOR): New macros.
  (mes_builtins): Add comment on .i include order.
* module/language/c99/compiler.mes (mescc): Add define _POSIX_SOURCE=0.
* gc.c (gc_up_arena, gc_flip, gc_loop, gc)[!_POSIX_SOURCE]: Use eputs
  rather than fprintf.
  (gc_loop): Use CAR, TYPE, NVECTOR rather than .car, .type, .vector.
* gc.c (gc_up_arena)[!_POSIX_SOURCE]: Add non-POSIX mlib.c
  implementation.
GNUmakefile
gc.c
mes.c
module/language/c99/compiler.mes