;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: primitives.cl,v 1.24 2002/09/30 07:51:01 kevin Exp $
+;;;; $Id: primitives.cl,v 1.25 2002/09/30 08:50:00 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
#+cmu `(alien:def-alien-type ,name ,(convert-from-uffi-type type :type))
#+sbcl `(sb-alien:def-alien-type ,name ,(convert-from-uffi-type type :type))
#+mcl
- (let ((type (convert-from-uffi-type uffi-type :type)))
- (unless (or (keywordp type) (consp type))
- (setf type `(quote ,type)))
+ (let ((mcl-type (convert-from-uffi-type type :type)))
+ (unless (or (keywordp mcl-type) (consp mcl-type))
+ (setf mcl-type `(quote ,mcl-type)))
#+(and mcl (not openmcl))
- `(def-mcl-type ,(keyword name) ,type)
+ `(def-mcl-type ,(keyword name) ,mcl-type)
#+openmcl
- `(ccl::def-foreign-type ,(keyword name) ,type))
+ `(ccl::def-foreign-type ,(keyword name) ,mcl-type))
)
(eval-when (:compile-toplevel :load-toplevel :execute)
(:array . :c-array)))
#+(and mcl (not openmcl))
-(defconstant +type-conversion-list+
+(setq +type-conversion-list+
'((* . :pointer) (:void . :void)
(:short . :short) (:unsigned-short . :unsigned-short)
(:pointer-void . :pointer)
(:array . :array)))
#+openmcl
-(defconstant +type-conversion-list+
+(setq +type-conversion-list+
'((* . :address) (:void . :void)
(:short . :short) (:unsigned-short . :unsigned-short)
(:pointer-void . :address)