#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.28 1991/08/28 13:19:53 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.29 1991/09/02 03:24:33 sybok Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
;; encountered on each entry to the thunk. It might be better to
;; restore the hooks to the initial state. I flipped a coin.
+(define *old-hook-storage-environment*)
+
(let-syntax ((ufixed-objects-slot
(macro (name)
(fixed-objects-vector-slot name))))
(let ((old-stepper-hooks)
(null-hooks (hunk3-cons #f #f #f)))
+ (set! *old-hook-storage-environment* (the-environment))
(dynamic-wind
(lambda ()
(set! old-stepper-hooks (get-stepper-hooks))
((ucode-primitive primitive-return-step 2)
unspecific
(or old-stepper-hooks
- null-hooks)))))))
\ No newline at end of file
+ null-hooks)))))))
+
+(define (stepping-off!)
+ (set! (access old-stepper-hooks *old-hook-storage-environment*) null-hooks))
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.28 1991/08/28 13:19:53 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.29 1991/09/02 03:24:33 sybok Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
;; encountered on each entry to the thunk. It might be better to
;; restore the hooks to the initial state. I flipped a coin.
+(define *old-hook-storage-environment*)
+
(let-syntax ((ufixed-objects-slot
(macro (name)
(fixed-objects-vector-slot name))))
(let ((old-stepper-hooks)
(null-hooks (hunk3-cons #f #f #f)))
+ (set! *old-hook-storage-environment* (the-environment))
(dynamic-wind
(lambda ()
(set! old-stepper-hooks (get-stepper-hooks))
((ucode-primitive primitive-return-step 2)
unspecific
(or old-stepper-hooks
- null-hooks)))))))
\ No newline at end of file
+ null-hooks)))))))
+
+(define (stepping-off!)
+ (set! (access old-stepper-hooks *old-hook-storage-environment*) null-hooks))