From 766634493546545fb69a72192f62d5535749caec Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Wed, 28 Aug 1991 13:19:53 +0000 Subject: [PATCH] Conditionalize to handle the case where there are no hooks. --- v7/src/runtime/global.scm | 9 ++++++--- v8/src/runtime/global.scm | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/v7/src/runtime/global.scm b/v7/src/runtime/global.scm index 62bcb530f..0382bf483 100644 --- a/v7/src/runtime/global.scm +++ b/v7/src/runtime/global.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.27 1991/08/27 01:31:00 jinx Exp $ +$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 $ Copyright (c) 1988-91 Massachusetts Institute of Technology @@ -277,9 +277,12 @@ MIT in each case. |# (dynamic-wind (lambda () (set! old-stepper-hooks (get-stepper-hooks)) - ((ucode-primitive primitive-return-step 2) unspecific null-hooks)) + (if old-stepper-hooks + ((ucode-primitive primitive-return-step 2) + unspecific null-hooks))) thunk (lambda () ((ucode-primitive primitive-return-step 2) unspecific - old-stepper-hooks)))))) \ No newline at end of file + (or old-stepper-hooks + null-hooks))))))) \ No newline at end of file diff --git a/v8/src/runtime/global.scm b/v8/src/runtime/global.scm index 81844ebf8..e3c708142 100644 --- a/v8/src/runtime/global.scm +++ b/v8/src/runtime/global.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.27 1991/08/27 01:31:00 jinx Exp $ +$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 $ Copyright (c) 1988-91 Massachusetts Institute of Technology @@ -277,9 +277,12 @@ MIT in each case. |# (dynamic-wind (lambda () (set! old-stepper-hooks (get-stepper-hooks)) - ((ucode-primitive primitive-return-step 2) unspecific null-hooks)) + (if old-stepper-hooks + ((ucode-primitive primitive-return-step 2) + unspecific null-hooks))) thunk (lambda () ((ucode-primitive primitive-return-step 2) unspecific - old-stepper-hooks)))))) \ No newline at end of file + (or old-stepper-hooks + null-hooks))))))) \ No newline at end of file -- 2.25.1