[movitz-cvs] CVS update: movitz/losp/muerte/integers.lisp

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Tue May 24 06:33:26 UTC 2005


Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv11765

Modified Files:
	integers.lisp 
Log Message:
Moved some code around, to fix compilation order.

Date: Tue May 24 08:33:25 2005
Author: ffjeld

Index: movitz/losp/muerte/integers.lisp
diff -u movitz/losp/muerte/integers.lisp:1.105 movitz/losp/muerte/integers.lisp:1.106
--- movitz/losp/muerte/integers.lisp:1.105	Wed Apr 13 09:26:29 2005
+++ movitz/losp/muerte/integers.lisp	Tue May 24 08:33:24 2005
@@ -9,7 +9,7 @@
 ;;;; Created at:    Wed Nov  8 18:44:57 2000
 ;;;; Distribution:  See the accompanying file COPYING.
 ;;;;                
-;;;; $Id: integers.lisp,v 1.105 2005/04/13 07:26:29 ffjeld Exp $
+;;;; $Id: integers.lisp,v 1.106 2005/05/24 06:33:24 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
@@ -426,6 +426,13 @@
    ((typep size '(integer 1 *))
     (list 'integer 0 (1- (ash 1 size))))
    (t (error "Illegal size for unsigned-byte."))))
+
+(define-typep rational (x &optional (lower-limit '*) (upper-limit '*))
+  (and (typep x 'rational)
+       (or (eq lower-limit '*)
+	   (<= lower-limit x))
+       (or (eq upper-limit '*)
+	   (<= x upper-limit))))
 
 (deftype real (&optional (lower-limit '*) (upper-limit '*))
   `(or (integer ,lower-limit ,upper-limit)




More information about the Movitz-cvs mailing list