core: Add module-define!
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 14 Oct 2018 07:10:30 +0000 (09:10 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 14 Oct 2018 07:10:30 +0000 (09:10 +0200)
commit7da67941e296642449e2ab6e9e98f1aabc16aa6e
tree186e7399ad340b4088dcb8ccc753e8b3fd2c8e03
parent16934697f77a5384b23fdad03c75de0e8d79b0f2
core: Add module-define!

* src/module.c (module_define_x, module_printer): New function.
(make_initial_module): Use them.
* tests/srfi-0.test: Test it.
* src/mes.c (display_m0): Remove.  Update callers.
* mes/module/mes/fluids.mes (make-fluid): Rewrite.
* tests/macro.test: Test it.
* mes/module/mes/boot-0.scm.in (module-define!): Remove.
* mes/module/mes/boot-02.scm: Likewise.
* module/mes/misc.scm (pk, warn): New function.
* build-aux/check-mes.sh (tests): Run tests.
13 files changed:
build-aux/check-mes.sh
mes/module/mes/boot-0.scm.in
mes/module/mes/boot-02.scm
mes/module/mes/fluids.mes
module/mes/misc.scm
src/mes.c
src/module.c
src/reader.c
src/struct.c
src/vector.c
tests/guile.test
tests/macro.test [new file with mode: 0755]
tests/srfi-0.test [new file with mode: 0755]