-;;; $Id: utils.lisp,v 1.2 2003/06/28 08:18:21 kevin Exp $\r
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-\r
+;;;; *************************************************************************\r
+;;;; FILE IDENTIFICATION\r
;;;;\r
-;;;; General purpose utilities\r
+;;;; Name: utils.lisp\r
+;;;; Purpose: General purpose utilities\r
+;;;; Author: Kevin M. Rosenberg\r
+;;;; Date Started: June 2002\r
+;;;;\r
+;;;; $Id: utils.lisp,v 1.3 2003/07/12 17:54:05 kevin Exp $\r
+;;;;\r
+;;;; This file, part of LML2, is copyrighted and open-source software.\r
+;;;; Rights of modification and redistribution are in the LICENSE file.\r
+;;;;\r
+;;;; *************************************************************************\r
\r
(in-package #:lml2)\r
\r
`(aif ,test-form\r
(progn ,@body)))\r
\r
-(defun keyword-symbol? (x)\r
- "Returns T if object is a symbol in the keyword package"\r
- (and (symbolp x)\r
- (string-equal "keyword" (package-name (symbol-package x)))))\r
-\r
-(defun list-to-spaced-string (list)\r
- (format nil "~{~A~^ ~}" list))\r
-\r
-(defun print-n-chars (char n stream)\r
- (declare (fixnum n)\r
- (optimize (speed 3) (safety 0) (space 0)))\r
- (do ((i 0 (1+ i)))\r
- ((= i n) char)\r
- (declare (fixnum i))\r
- (write-char char stream)))\r
- \r
-(defun indent-spaces (n &optional (stream *standard-output*))\r
- "Indent n*2 spaces to output stream"\r
- (print-n-chars #\space (+ n n) stream))\r
-\r
(defun print-file-contents (file &optional (strm *standard-output*))\r
"Opens a reads a file. Returns the contents as a single string"\r
(when (probe-file file)\r