r5372: Automatic commit for debian_version_1_4-1
[lml2.git] / utils.lisp
index a90b32585b765c4a48c16d169fe141bdb55d0c86..0eef8e48f6bc930c8d64af243c3fcff9d735ae61 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; 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
+;;;; $Id: utils.lisp,v 1.5 2003/07/15 21:49:36 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
   #-(or allegro clisp cmu scl sbcl cormanlisp lispworks lucid mcl) (truename "."))\r
 \r
 \r
+#+ignore\r
+(defun fformat (&rest args)\r
+  (declare (dynamic-extent args))\r
+  (apply (if (find-package 'kmrcl)\r
+            (symbol-function (intern (symbol-name #:fformat)\r
+                                     (symbol-name #:kmrcl)))\r
+            #'format)\r
+        args))\r
+\r
+(defmacro fformat (stream control-string &rest args)\r
+  (if stream\r
+      `(funcall (formatter ,control-string) ,stream ,@args)\r
+      `(format nil ,control-string ,@args)))\r
+  \r