core+mini-mes: Replace manual snippets by snarfed includes.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 10 Mar 2017 19:56:18 +0000 (20:56 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 10 Mar 2017 19:56:18 +0000 (20:56 +0100)
commit76f1a89cef52f69a7b4f6cd1edf55e3f18235198
treee9ade381d260d039f9125657f1e0eda9f181d5dc
parentb43380c8d8df98f3666ac5df01a8b6abbaf5ba56
core+mini-mes: Replace manual snippets by snarfed includes.

* build-aux/mes-snarf.scm (symbol->source, function->header,
  function->source, function->environment): Add workarounds to
  avoid struct-copy initializers.
* GNUmakefile (mini-mes): Snarf symbols and functions.
* scaffold/mini-mes.c: Include mini-mes.h, mini-mes.symbols.h,
  mini-mes.symbols.i, mini-mes.i, mini-mes.environment.i.
  Add snarfable symbol/special definitions.
  (type_t): Prefix all types with `T', update users.
  (assert_defined, gc_push_frame, gc_peek_frame, gc_init_cells): Mark
  as internal.
* mes.c (type_t): Prefix all types with `T', update users.
* scaffold/mini-mes.c (eq_p, type_, car_, cdr_,
  list_of_char_equal_p, lookup_macro, write_byte): New functions (from
  mes.c).
  (assq): Add debugging, workaround.
13 files changed:
GNUmakefile
build-aux/mes-snarf.scm
guile/mes.mes
guile/mes.scm
lib.c
math.c
mes.c
module/language/c99/compiler.mes
module/mes/elf-util.mes
module/mes/mes-0.mes
posix.c
reader.c
scaffold/mini-mes.c