r3459: some bug fixes
[uffi.git] / src / objects.lisp
index c7fa563a2dcc717f15c622b1edfcefcdef900621..6c7a745476fea1939bb2e1b7d957d44980a57438 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: objects.lisp,v 1.4 2002/10/16 11:56:43 kevin Exp $
+;;;; $Id: objects.lisp,v 1.6 2002/11/23 18:01:57 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -46,7 +46,7 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
        #+lispworks
        `(fli:allocate-foreign-object :type ',(convert-from-uffi-type type :allocate))
        #+allegro
-       `(ff:allocate-fobject ,(convert-from-uffi-type type :allocate) :c)
+       `(ff:allocate-fobject ',(convert-from-uffi-type type :allocate) :c)
        #+mcl
        `(new-ptr ,(size-of-foreign-type (convert-from-uffi-type type :allocation)))
        )
@@ -108,8 +108,8 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
   #+(or cmu scl)  `(alien:deref ,ptr)
   #+sbcl  `(sb-alien:deref ,ptr)
   #+lispworks `(fli:dereference ,ptr)
-  #+allegro `(ff:fslot-value-typed ,(convert-from-uffi-type type :deref) :c ,ptr)
-  #+mcl `(ccl:pref ,ptr ,(convert-from-uffi-type type :deref))
+  #+allegro `(ff:fslot-value-typed (convert-from-uffi-type ,type :deref) :c ,ptr)
+  #+mcl `(ccl:pref ,ptr (convert-from-uffi-type ,type :deref))
   )
 
 #+mcl