From bff66ac9d6bc78b545b5b47dda9854dddb79908e Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 5 Aug 2003 16:51:42 +0000 Subject: [PATCH] Minor tweaks. --- v7/src/xml/xml-parser.scm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/v7/src/xml/xml-parser.scm b/v7/src/xml/xml-parser.scm index 1e9476a65..0ce443b9b 100644 --- a/v7/src/xml/xml-parser.scm +++ b/v7/src/xml/xml-parser.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: xml-parser.scm,v 1.33 2003/08/03 06:14:19 cph Exp $ +$Id: xml-parser.scm,v 1.34 2003/08/05 16:51:42 cph Exp $ Copyright 2001,2002,2003 Massachusetts Institute of Technology @@ -892,11 +892,9 @@ USA. (make-xml-parameter-entity-ref name))))) (define (find-parameter-entity name) - (let loop ((entities *parameter-entities*)) - (and (pair? entities) - (if (eq? (xml-parameter-!entity-name (car entities)) name) - (car entities) - (loop (cdr entities)))))) + (find-matching-item *parameter-entities* + (lambda (entity) + (eq? name (xml-parameter-!entity-name entity))))) (define *parameter-entities*) @@ -1283,9 +1281,7 @@ USA. (external-decl-parser (*matcher (seq "