X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=lml.lisp;h=3a39758321668c4d62ec2d13d205f95c6240b759;hb=e4c2001f95bbf608bcdb02962685c71d6ab1b74b;hp=c3a3c98734f133107c408bb020bceb45f73e5637;hpb=e741d288978f9a65554235ecb3115db8eef60b54;p=lml.git diff --git a/lml.lisp b/lml.lisp index c3a3c98..3a39758 100644 --- a/lml.lisp +++ b/lml.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: lml.lisp,v 1.1 2002/09/30 10:26:43 kevin Exp $ +;;;; $Id: lml.lisp,v 1.5 2002/10/14 03:25:05 kevin Exp $ ;;;; ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -16,7 +16,7 @@ ;;;; (http://www.gnu.org/licenses/gpl.html) ;;;; ************************************************************************* -(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) +(declaim (optimize (debug 3) (speed 3) (safety 3) (compilation-speed 0))) (in-package :lml) (defun html4-prologue-string () @@ -211,12 +211,16 @@ (curr-string (new-string)) (paren-level 0) (got-comma nil)) + (declare (type fixnum paren-level)) (do ((ch (read-char stream t nil t) (read-char stream t nil t))) ((eql ch #\])) (if got-comma (if (eql ch #\() ;; Starting top-level ,( (progn + #+cmu + (setf curr-string (coerce curr-string `(simple-array character (*)))) + (push `(lml-print ,curr-string) forms) (setq curr-string (new-string)) (setq got-comma nil) @@ -253,6 +257,10 @@ (progn (setq got-comma nil) (vector-push-extend ch curr-string))))) + + #+cmu + (setf curr-string (coerce curr-string `(simple-array character (*)))) + (push `(lml-print ,curr-string) forms) `(progn ,@(nreverse forms)))))