From: Chris Hanson Date: Tue, 28 Dec 2004 06:41:33 +0000 (+0000) Subject: Change MAKE-GC-FINALIZED-OBJECT to ignore the return type from its X-Git-Tag: 20090517-FFI~1405 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=d11f7be0673ea56787531439b10ec711ddd5ad15;p=mit-scheme.git Change MAKE-GC-FINALIZED-OBJECT to ignore the return type from its GET-CONTEXT argument. --- diff --git a/v7/src/runtime/gcfinal.scm b/v7/src/runtime/gcfinal.scm index 36c653f7c..94114c94d 100644 --- a/v7/src/runtime/gcfinal.scm +++ b/v7/src/runtime/gcfinal.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: gcfinal.scm,v 14.9 2003/11/11 01:31:28 cph Exp $ +$Id: gcfinal.scm,v 14.10 2004/12/28 06:41:10 cph Exp $ -Copyright 2000,2002,2003 Massachusetts Institute of Technology +Copyright 2000,2002,2003,2004 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -63,7 +63,7 @@ USA. (guarantee-gc-finalizer finalizer 'ADD-TO-GC-FINALIZER!) (if (not ((gc-finalizer-object? finalizer) object)) (error:wrong-type-argument object - "Finalized object" + "finalized object" 'ADD-TO-GC-FINALIZER!)) (without-interrupts (lambda () @@ -83,7 +83,7 @@ USA. (set-object-context! (gc-finalizer-set-object-context! finalizer))) (if (not (object? object)) (error:wrong-type-argument object - "Finalized object" + "finalized object" 'REMOVE-FROM-GC-FINALIZER!)) (without-interrupts (lambda () @@ -157,16 +157,16 @@ USA. (dynamic-wind (lambda () unspecific) (lambda () - (and (get-context p) - (let ((context (weak-cdr p))) - (let ((object (context->object context))) - (without-interrupts - (lambda () - (weak-set-car! p object) - (set-gc-finalizer-items! - finalizer - (cons p (gc-finalizer-items finalizer))))) - object)))) + (get-context p) + (let ((context (weak-cdr p))) + (let ((object (context->object context))) + (without-interrupts + (lambda () + (weak-set-car! p object) + (set-gc-finalizer-items! + finalizer + (cons p (gc-finalizer-items finalizer))))) + object))) (lambda () (if (and (not (weak-pair/car? p)) (weak-cdr p)) (begin diff --git a/v7/src/runtime/io.scm b/v7/src/runtime/io.scm index 1c938bda6..ae5d63e48 100644 --- a/v7/src/runtime/io.scm +++ b/v7/src/runtime/io.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: io.scm,v 14.80 2004/12/20 04:38:37 cph Exp $ +$Id: io.scm,v 14.81 2004/12/28 06:41:33 cph Exp $ Copyright 1986,1987,1988,1990,1991,1993 Massachusetts Institute of Technology Copyright 1994,1995,1998,1999,2000,2001 Massachusetts Institute of Technology @@ -56,7 +56,7 @@ USA. port) (define (make-channel d) - (open-channel (lambda (p) (system-pair-set-cdr! p d) #t))) + (open-channel (lambda (p) (system-pair-set-cdr! p d)))) (define (open-channel procedure) (make-gc-finalized-object open-channels procedure