From 84e9625ddd056c7541ddef34e48c7f56bb37e24e Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 28 Sep 2001 00:38:32 +0000 Subject: [PATCH] Fix bug: package parent can sometimes be the symbol UNKNOWN. --- v7/src/cref/conpkg.scm | 13 ++++++------- v7/src/cref/forpkg.scm | 21 +++++++++++---------- v7/src/cref/redpkg.scm | 10 +++++----- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/v7/src/cref/conpkg.scm b/v7/src/cref/conpkg.scm index d83090690..42cbd10c4 100644 --- a/v7/src/cref/conpkg.scm +++ b/v7/src/cref/conpkg.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: conpkg.scm,v 1.13 2001/08/20 21:02:35 cph Exp $ +$Id: conpkg.scm,v 1.14 2001/09/28 00:38:32 cph Exp $ Copyright (c) 1988-2001 Massachusetts Institute of Technology @@ -63,17 +63,16 @@ USA. (eq? (link/owner link) package))))))) (define (package-structureexternal package extension?) @@ -82,7 +81,7 @@ USA. (vector (package/name package) (let loop ((package package)) (let ((parent (package/parent package))) - (if (and parent (not (eq? parent 'UNKNOWN))) + (if (package? parent) (cons (package/name parent) (loop parent)) '()))) (list->vector diff --git a/v7/src/cref/forpkg.scm b/v7/src/cref/forpkg.scm index 991bc743d..0b90a6c78 100644 --- a/v7/src/cref/forpkg.scm +++ b/v7/src/cref/forpkg.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: forpkg.scm,v 1.9 1999/01/02 06:11:34 cph Exp $ +$Id: forpkg.scm,v 1.10 2001/09/28 00:38:21 cph Exp $ -Copyright (c) 1988-1999 Massachusetts Institute of Technology +Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,7 +16,8 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. |# ;;;; Package Model Formatter @@ -45,7 +46,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. (indentation " ") (width 79) (packages (pmodel/packages pmodel)) - (output? false)) + (output? #f)) (let ((free-references (append-map! (lambda (package) (list-transform-negative @@ -54,9 +55,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. packages))) (if (not (null? free-references)) (begin - (format-references port indentation width "Free References" false + (format-references port indentation width "Free References" #f (sort free-references referencepackage packages name) -- 2.25.1