chiark
/
gitweb
/
~mdw
/
lisp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base: Provide fixnump function.
[lisp]
/
mdw-base.lisp
diff --git
a/mdw-base.lisp
b/mdw-base.lisp
index 269b398d22a8a34c34e838f2332f4ad3dfba0e12..0b68b8d69be12b4476f62c82ceb43c6e6217ef51 100644
(file)
--- a/
mdw-base.lisp
+++ b/
mdw-base.lisp
@@
-37,7
+37,10
@@
(defpackage #:mdw.base
#:with-gensyms #:let*/gensyms #:with-places
#:locp #:locf #:ref #:with-locatives
#:update-place #:update-place-after
#:with-gensyms #:let*/gensyms #:with-places
#:locp #:locf #:ref #:with-locatives
#:update-place #:update-place-after
- #:incf-after #:decf-after))
+ #:incf-after #:decf-after
+ #:fixnump)
+ #+cmu (:import-from #:extensions #:fixnump))
+
(in-package #:mdw.base)
;;;--------------------------------------------------------------------------
(in-package #:mdw.base)
;;;--------------------------------------------------------------------------
@@
-124,6
+127,13
@@
(compile-time-defun parse-body (body &key (allow-docstring-p t))
(and decls (list (cons 'declare decls)))
forms))))))))
(and decls (list (cons 'declare decls)))
forms))))))))
+#-cmu
+(progn
+ (declaim (inline fixnump))
+ (defun fixnump (object)
+ "Answer non-nil if OBJECT is a fixnum, or nil if it isn't."
+ (typep object 'fixnum)))
+
;;;--------------------------------------------------------------------------
;;; Generating symbols.
;;;--------------------------------------------------------------------------
;;; Generating symbols.