From 49f65cb3c30d0899895ab19e4dd35dc21921e136 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Fri, 20 Nov 1992 19:37:03 +0000 Subject: [PATCH] Eliminate constant Scode object from compiled file. --- v7/src/runtime/advice.scm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/v7/src/runtime/advice.scm b/v7/src/runtime/advice.scm index 7a5cfa26b..cd0b13cb5 100644 --- a/v7/src/runtime/advice.scm +++ b/v7/src/runtime/advice.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/advice.scm,v 14.10 1991/11/26 06:32:14 cph Exp $ +$Id: advice.scm,v 14.11 1992/11/20 19:37:03 gjr Exp $ -Copyright (c) 1988-91 Massachusetts Institute of Technology +Copyright (c) 1988-1992 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -206,14 +206,14 @@ MIT in each case. |# (receiver (car state) (cdr state))))) (define (make-advice-hook) - (make-combination syntaxed-advice-procedure - (list (make-the-environment)))) - -(define syntaxed-advice-procedure - (scode-quote - ((ACCESS PACKAGE/REFERENCE #F) - ((ACCESS FIND-PACKAGE #F) '(RUNTIME ADVICE)) - 'ADVISED-PROCEDURE-WRAPPER))) + ;; This inserts the actual procedure in a constant list + (make-combination + (make-combination car + (list (list hook/advised-procedure-wrapper))) + (list (make-the-environment)))) + +(define (hook/advised-procedure-wrapper environment) + (advised-procedure-wrapper environment)) ;;;; The Advice Hook -- 2.25.1