X-Git-Url: http://git.kpe.io/?p=lml2.git;a=blobdiff_plain;f=utils.lisp;h=0eef8e48f6bc930c8d64af243c3fcff9d735ae61;hp=a90b32585b765c4a48c16d169fe141bdb55d0c86;hb=94bfd48aa3a7f2e358bc873f992796030319acd2;hpb=be1b61b9a1a19ea618b9cd854d6539957c4efd57 diff --git a/utils.lisp b/utils.lisp index a90b325..0eef8e4 100644 --- a/utils.lisp +++ b/utils.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: June 2002 ;;;; -;;;; $Id: utils.lisp,v 1.3 2003/07/12 17:54:05 kevin Exp $ +;;;; $Id: utils.lisp,v 1.5 2003/07/15 21:49:36 kevin Exp $ ;;;; ;;;; This file, part of LML2, is copyrighted and open-source software. ;;;; Rights of modification and redistribution are in the LICENSE file. @@ -73,3 +73,17 @@ #-(or allegro clisp cmu scl sbcl cormanlisp lispworks lucid mcl) (truename ".")) +#+ignore +(defun fformat (&rest args) + (declare (dynamic-extent args)) + (apply (if (find-package 'kmrcl) + (symbol-function (intern (symbol-name #:fformat) + (symbol-name #:kmrcl))) + #'format) + args)) + +(defmacro fformat (stream control-string &rest args) + (if stream + `(funcall (formatter ,control-string) ,stream ,@args) + `(format nil ,control-string ,@args))) +