X-Git-Url: http://git.kpe.io/?p=lml2.git;a=blobdiff_plain;f=utils.lisp;h=0eef8e48f6bc930c8d64af243c3fcff9d735ae61;hp=2a6877fefa71ffec67082d44a23742f0911b21f3;hb=94bfd48aa3a7f2e358bc873f992796030319acd2;hpb=f0cbce21a435156d5472222d0dbcd5ce7843b219 diff --git a/utils.lisp b/utils.lisp index 2a6877f..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.4 2003/07/15 04:28:56 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,7 +73,17 @@ #-(or allegro clisp cmu scl sbcl cormanlisp lispworks lucid mcl) (truename ".")) - +#+ignore (defun fformat (&rest args) (declare (dynamic-extent args)) - (apply #'format 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))) +