diff options
author | Andy Wingo <wingo@pobox.com> | 2012-01-03 04:02:08 -0500 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2012-01-26 12:08:58 +0100 |
commit | d062a8c1eeeb55264c1a2fd8f4fbe765f1dcc6d9 (patch) | |
tree | 6f6ff45825aa6bf97fa5b7f5db125e97227bee15 /libguile/debug.h | |
parent | f5e772b2bac149c854b9b003e7a96632af7f8760 (diff) | |
download | guile-d062a8c1eeeb55264c1a2fd8f4fbe765f1dcc6d9.tar.gz |
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>.
Diffstat (limited to 'libguile/debug.h')
-rw-r--r-- | libguile/debug.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/debug.h b/libguile/debug.h index d862abab4..4155d1981 100644 --- a/libguile/debug.h +++ b/libguile/debug.h @@ -3,7 +3,7 @@ #ifndef SCM_DEBUG_H #define SCM_DEBUG_H -/* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2004,2008,2009,2010 +/* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2004,2008,2009,2010,2012 * Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or @@ -41,6 +41,8 @@ typedef union scm_t_debug_info +SCM_API SCM scm_local_eval (SCM exp, SCM env); + SCM_API SCM scm_reverse_lookup (SCM env, SCM data); SCM_API SCM scm_procedure_source (SCM proc); SCM_API SCM scm_procedure_name (SCM proc); |