[movitz-cvs] CVS update: movitz/storage-types.lisp

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Thu Mar 18 09:16:38 UTC 2004


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

Modified Files:
	storage-types.lisp 
Log Message:
Added function vector-type-tag.

Date: Thu Mar 18 04:16:38 2004
Author: ffjeld

Index: movitz/storage-types.lisp
diff -u movitz/storage-types.lisp:1.9 movitz/storage-types.lisp:1.10
--- movitz/storage-types.lisp:1.9	Fri Feb 13 10:25:34 2004
+++ movitz/storage-types.lisp	Thu Mar 18 04:16:38 2004
@@ -9,7 +9,7 @@
 ;;;; Created at:    Sun Oct 22 00:22:43 2000
 ;;;; Distribution:  See the accompanying file COPYING.
 ;;;;                
-;;;; $Id: storage-types.lisp,v 1.9 2004/02/13 15:25:34 ffjeld Exp $
+;;;; $Id: storage-types.lisp,v 1.10 2004/03/18 09:16:38 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
@@ -362,6 +362,11 @@
     :initarg :symbolic-data
     :accessor movitz-vector-symbolic-data))
   (:slot-align type -2))
+
+(defun vector-type-tag (element-type)
+  (dpb (enum-value 'movitz-vector-element-type element-type)
+       (byte 8 8)
+       (enum-value 'other-type-byte :vector)))
 
 (define-binary-class movitz-new-vector (movitz-heap-object-other)
   ((length





More information about the Movitz-cvs mailing list