core: Add module indirection for variable lookup.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 14 Oct 2018 06:30:18 +0000 (08:30 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 14 Oct 2018 06:30:18 +0000 (08:30 +0200)
commit16934697f77a5384b23fdad03c75de0e8d79b0f2
tree88b6b8711ede976830e432788cc108efeddd6449
parent79c1fe04669e4001854b476492834f81334ebfd3
core: Add module indirection for variable lookup.

* src/module.c (module_ref, module_variable): New function.
* src/mes.c: Thoughout: Use them.
(assq_ref_env): Remove.
* mes/module/mes/boot-0.scm.in (defined?): Use module-variable.
* mes/module/mes/boot-00.scm (defined?): Likewise.
* mes/module/mes/boot-01.scm (defined?): Likewise.
* mes/module/mes/boot-02.scm (defined?): Likewise.
* scaffold/boot/53-closure-display.scm: Likewise.
mes/module/mes/boot-0.scm.in
mes/module/mes/boot-00.scm
mes/module/mes/boot-01.scm
mes/module/mes/boot-02.scm
scaffold/boot/53-closure-display.scm
scaffold/boot/60-let-syntax-expanded.scm
scaffold/boot/60-let-syntax.scm
src/mes.c
src/module.c