r3704: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 30 Dec 2002 20:39:25 +0000 (20:39 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 30 Dec 2002 20:39:25 +0000 (20:39 +0000)
debian/changelog
debian/cl-uffi.doc-base
src/objects.lisp

index df12f9e0f14f27c64477718fa6914e8619617d8b..9bb90dbaa6f6f052ce6749a130b69619f9b54a06 100644 (file)
@@ -1,3 +1,9 @@
+cl-uffi (1.2.5-1) unstable; urgency=low
+
+  * Rework allocate-foreign-array to evaluate type
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Sat, 28 Dec 2002 01:12:30 -0700
+
 cl-uffi (1.2.4-1) unstable; urgency=low
 
   * Fix syntax error from last version
index add1e0ca17bf96051ede404991b4a60b536f5c15..49e1aedf9247bc5a89c84e08aa006bcc68a22c87 100644 (file)
@@ -3,8 +3,8 @@ Title: UFFI Manual
 Author: Kevin M. Rosenberg
 Abstract: This manual describes the
  use the UFFI (Universal Foreign Function Interface)
- Common Lisp library. This library supports CMUCL, 
- AllegroCL, Lispworks, and MCL.
+ Common Lisp library. This library supports CMUCL, SBCL,
+ AllegroCL, Lispworks, SCL, OpenMCL, and MCL.
 Section: programming
 
 Format: postscript
index 0265259037bd09e79e7f41c26f51ae889e212a7a..740b684b408becfd832a0480e4ffbdffa513139c 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: objects.lisp,v 1.8 2002/12/03 06:58:39 kevin Exp $
+;;;; $Id: objects.lisp,v 1.9 2002/12/30 20:39:22 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -44,11 +44,11 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
        #+sbcl
        `(sb-alien:make-alien ,(convert-from-uffi-type (eval type) :allocation))
        #+lispworks
-       `(fli:allocate-foreign-object :type ',(convert-from-uffi-type type :allocate))
+       `(fli:allocate-foreign-object :type ',(convert-from-uffi-type (eval type) :allocate))
        #+allegro
-       `(ff:allocate-fobject ',(convert-from-uffi-type type :allocate) :c)
+       `(ff:allocate-fobject ',(convert-from-uffi-type (eval type) :allocate) :c)
        #+mcl
-       `(new-ptr ,(size-of-foreign-type (convert-from-uffi-type type :allocation)))
+       `(new-ptr ,(size-of-foreign-type (convert-from-uffi-type (eval type) :allocation)))
        )
       (progn
        #+(or cmu scl)
@@ -56,11 +56,11 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
        #+sbcl
        `(sb-alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
        #+lispworks
-       `(fli:allocate-foreign-object :type ',(convert-from-uffi-type type :allocate) :nelems ,size)
+       `(fli:allocate-foreign-object :type ',(convert-from-uffi-type (eval type) :allocate) :nelems ,size)
        #+allegro
-       `(ff:allocate-fobject (list :array (quote ,(convert-from-uffi-type type :allocate)) ,size) :c)
+       `(ff:allocate-fobject (list :array (quote ,(convert-from-uffi-type (eval type) :allocate)) ,size) :c)
        #+mcl
-       `(new-ptr (* ,size ,(size-of-foreign-type (convert-from-uffi-type type :allocation))))
+       `(new-ptr (* ,size ,(size-of-foreign-type (convert-from-uffi-type (eval type) :allocation))))
        )))
 
 (defmacro free-foreign-object (obj)