From 5544e9d0d53a666c1d8ecab20ca605f556e550f7 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 26 Jan 2003 06:28:15 +0000 Subject: [PATCH] Make XML-INTERN be an alias for STRING->SYMBOL. --- v7/src/xml/xml-struct.scm | 58 ++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/v7/src/xml/xml-struct.scm b/v7/src/xml/xml-struct.scm index e12064f9c..7b1961bd9 100644 --- a/v7/src/xml/xml-struct.scm +++ b/v7/src/xml/xml-struct.scm @@ -1,25 +1,26 @@ -;;; -*-Scheme-*- -;;; -;;; $Id: xml-struct.scm,v 1.7 2002/12/07 04:14:19 cph Exp $ -;;; -;;; Copyright (c) 2001, 2002 Massachusetts Institute of Technology -;;; -;;; This file is part of MIT Scheme. -;;; -;;; MIT Scheme is free software; you can redistribute it and/or modify -;;; it under the terms of the GNU General Public License as published -;;; by the Free Software Foundation; either version 2 of the License, -;;; or (at your option) any later version. -;;; -;;; MIT Scheme is distributed in the hope that it will be useful, but -;;; WITHOUT ANY WARRANTY; without even the implied warranty of -;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -;;; General Public License for more details. -;;; -;;; You should have received a copy of the GNU General Public License -;;; along with MIT Scheme; if not, write to the Free Software -;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -;;; 02111-1307, USA. +#| -*-Scheme-*- + +$Id: xml-struct.scm,v 1.8 2003/01/26 06:28:15 cph Exp $ + +Copyright 2001,2002,2003 Massachusetts Institute of Technology + +This file is part of MIT Scheme. + +MIT Scheme is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version. + +MIT Scheme is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with MIT Scheme; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +|# ;;;; XML data structures @@ -70,16 +71,9 @@ (type-descriptor xml-uninterpreted-rtd)) text) -(define (xml-intern string) - ;; Prevents XML names from cluttering the symbol table. - (or (hash-table/get xml-tokens string #f) - (let ((symbol (string->uninterned-symbol string))) - (hash-table/put! xml-tokens string symbol) - symbol))) +(define (xml-intern name) + (string->symbol name)) -(define xml-tokens - (make-string-hash-table)) - (define-structure (xml-dtd (type-descriptor xml-dtd-rtd) (print-procedure @@ -102,7 +96,7 @@ port))))) id uri) - + (define-structure (xml-!element (type-descriptor xml-!element-rtd) (print-procedure -- 2.25.1