diff options
author | Andy Wingo <wingo@pobox.com> | 2010-09-24 18:44:21 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-09-24 18:44:21 +0200 |
commit | 925c1bae1f4c23f4f320db00e2b0974b8cfa9b26 (patch) | |
tree | 3c93dbb3feba353f7b7ea1d59a9fd72047c318e3 /libguile/debug.c | |
parent | 178e9d237b6522ba8f72162949d9b925f6750266 (diff) | |
download | guile-925c1bae1f4c23f4f320db00e2b0974b8cfa9b26.tar.gz |
remove evaluator-traps-interface
* libguile/debug.h:
* libguile/debug.c (scm_with_traps):
* libguile/eval.c (scm_evaluator_traps, scm_evaluator_trap_table):
Remove these procedures. Note that scm_evaluator_traps was known in
Scheme as `evaluator-traps-interface'.
* libguile/private-options.h (SCM_TRAPS_P, SCM_ENTER_FRAME_P)
(SCM_APPLY_FRAME_P, SCM_EXIT_FRAME_P, SCM_ENTER_FRAME_HDLR)
(SCM_APPLY_FRAME_HDLR, SCM_EXIT_FRAME_HDLR, SCM_MEMOIZE_P)
(SCM_MEMOIZE_HDLR): Remove these private interfaces.
* module/ice-9/boot-9.scm (traps, trap-enable, trap-disable, trap-set!):
Remove.
* module/ice-9/scm-style-repl.scm (error-catching-loop): Remove
with-traps wrap.
* doc/ref/api-options.texi (Low level options interfaces):
(User level options interfaces, Evaluator trap options)
* doc/ref/api-evaluation.texi (Evaluator Behavior): Remove references to
the evaluator traps interface.
Diffstat (limited to 'libguile/debug.c')
-rw-r--r-- | libguile/debug.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libguile/debug.c b/libguile/debug.c index cce7dd0b1..e4911ff03 100644 --- a/libguile/debug.c +++ b/libguile/debug.c @@ -89,44 +89,6 @@ SCM_DEFINE (scm_debug_options, "debug-options-interface", 0, 1, 0, } #undef FUNC_NAME - -static void -with_traps_before (void *data) -{ - int *trap_flag = data; - *trap_flag = SCM_TRAPS_P; - SCM_TRAPS_P = 1; -} - -static void -with_traps_after (void *data) -{ - int *trap_flag = data; - SCM_TRAPS_P = *trap_flag; -} - -static SCM -with_traps_inner (void *data) -{ - SCM thunk = SCM_PACK ((scm_t_bits) data); - return scm_call_0 (thunk); -} - -SCM_DEFINE (scm_with_traps, "with-traps", 1, 0, 0, - (SCM thunk), - "Call @var{thunk} with traps enabled.") -#define FUNC_NAME s_scm_with_traps -{ - int trap_flag; - SCM_VALIDATE_THUNK (1, thunk); - return scm_internal_dynamic_wind (with_traps_before, - with_traps_inner, - with_traps_after, - (void *) SCM_UNPACK (thunk), - &trap_flag); -} -#undef FUNC_NAME - SCM_SYMBOL (scm_sym_source, "source"); |