Implement `local-eval', `local-compile', and `the-environment'
authorAndy Wingo <wingo@pobox.com>
Tue, 3 Jan 2012 09:02:08 +0000 (04:02 -0500)
committerAndy Wingo <wingo@pobox.com>
Thu, 26 Jan 2012 11:08:58 +0000 (12:08 +0100)
commitd062a8c1eeeb55264c1a2fd8f4fbe765f1dcc6d9
tree6f6ff45825aa6bf97fa5b7f5db125e97227bee15
parentf5e772b2bac149c854b9b003e7a96632af7f8760
Implement `local-eval', `local-compile', and `the-environment'

* module/ice-9/local-eval.scm: New module (ice-9 local-eval) which
  exports `the-environment', `local-eval', and `local-compile'.

* libguile/debug.c (scm_local_eval): New C function that calls the
  Scheme implementation of `local-eval' in (ice-9 local-eval).

* libguile/debug.h (scm_local_eval): Add prototype.

* doc/ref/api-evaluation.texi (Local Evaluation): Add documentation.

* test-suite/tests/eval.test (local evaluation): Add tests.

* test-suite/standalone/test-loose-ends.c (test_scm_local_eval):
  Add test.

* module/Makefile.am: Add ice-9/local-eval.scm.

Based on a patch by Mark H Weaver <mhw@netris.org>.
doc/ref/api-evaluation.texi
libguile/debug.c
libguile/debug.h
module/Makefile.am
module/ice-9/local-eval.scm [new file with mode: 0644]
test-suite/standalone/test-loose-ends.c
test-suite/tests/eval.test