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

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Sat Aug 20 20:27:20 UTC 2005


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

Modified Files:
	io-port.lisp 
Log Message:
Use check-the in with-io-register-syntax.

Date: Sat Aug 20 22:27:19 2005
Author: ffjeld

Index: movitz/losp/muerte/io-port.lisp
diff -u movitz/losp/muerte/io-port.lisp:1.17 movitz/losp/muerte/io-port.lisp:1.18
--- movitz/losp/muerte/io-port.lisp:1.17	Mon Aug 15 02:06:19 2005
+++ movitz/losp/muerte/io-port.lisp	Sat Aug 20 22:27:19 2005
@@ -10,7 +10,7 @@
 ;;;; Author:        Frode Vatvedt Fjeld <frodef at acm.org>
 ;;;; Created at:    Wed Mar 21 22:14:08 2001
 ;;;;                
-;;;; $Id: io-port.lisp,v 1.17 2005/08/15 00:06:19 ffjeld Exp $
+;;;; $Id: io-port.lisp,v 1.18 2005/08/20 20:27:19 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
@@ -308,8 +308,7 @@
   "Syntax for easy access to IO registers. <name> is installed as a local macro
 that reads from <io-base-form> plus some offset."
   (let ((io-var (gensym "io-base-")))
-    `(let ((,io-var ,io-base-form))
-       ;; (check-type ,io-var (unsigned-byte 16))
+    `(let ((,io-var (check-the (unsigned-byte 16) ,io-base-form)))
        (symbol-macrolet ((,name ,io-var))
 	 (macrolet ((,name (offset &optional (type :unsigned-byte8))
 		      `(io-port (+ ,',io-var ,offset) ,type)))




More information about the Movitz-cvs mailing list