X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Fcmucl-compat.lisp;fp=base%2Fcmucl-compat.lisp;h=8b2b5a5b6758d373b8018b8d7ff0454bb20da3d5;hb=fa071351835a2c754895cb917db9c63303e7b5c1;hp=3da769492d82e0cf8583f66d24b4d5c05bac03d6;hpb=c16c2782cf25e69995f720c98619d2a932514034;p=clsql.git diff --git a/base/cmucl-compat.lisp b/base/cmucl-compat.lisp index 3da7694..8b2b5a5 100644 --- a/base/cmucl-compat.lisp +++ b/base/cmucl-compat.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: cmucl-compat.lisp,v 1.2 2002/10/14 04:09:02 kevin Exp $ +;;;; $Id: cmucl-compat.lisp,v 1.3 2002/10/21 07:45:49 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -29,15 +29,15 @@ )) (in-package :cmucl-compat) -#+cmu +#+(or cmu scl) (defmacro required-argument () `(ext:required-argument)) -#-cmu +#-(or cmu scl) (defun required-argument () (error "~&A required keyword argument was not supplied")) -#+cmu +#+(or cmu scl) (defmacro shrink-vector (vec len) `(lisp::shrink-vector ,vec ,len)) @@ -45,7 +45,7 @@ (defmacro shrink-vector (vec len) `(sb-kernel::shrink-vector ,vec ,len)) -#-(or cmu sbcl) +#-(or cmu sbcl scl) (defmacro shrink-vector (vec len) "Shrinks a vector. Optimized if vector has a fill pointer. Needs to be a macro to overwrite value of VEC." @@ -69,7 +69,7 @@ Needs to be a macro to overwrite value of VEC." -#-(or cmu sbcl) +#-(or cmu sbcl scl) (defun make-sequence-of-type (type length) "Returns a sequence of the given TYPE and LENGTH." (declare (fixnum length)) @@ -90,7 +90,7 @@ Needs to be a macro to overwrite value of VEC." (make-sequence-of-type (result-type-or-lose type t) length)))) -#+cmu +#+(or cmu scl) (if (fboundp 'lisp::make-sequence-of-type) (defun make-sequence-of-type (type len) (lisp::make-sequence-of-type type len)) @@ -101,7 +101,7 @@ Needs to be a macro to overwrite value of VEC." (defun make-sequence-of-type (type len) (sb-impl::make-sequence-of-type type len)) -#-(or cmu sbcl) +#-(or cmu sbcl scl) (defun result-type-or-lose (type nil-ok) (unless (or type nil-ok) (error "NIL output type invalid for this sequence function")) @@ -118,7 +118,7 @@ Needs to be a macro to overwrite value of VEC." (error "~S is a bad type specifier for sequence functions." type)) )) -#+cmu +#+(or cmu scl) (defun result-type-or-lose (type nil-ok) (lisp::result-type-or-lose type nil-ok))