projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r3628: *** empty log message ***
[uffi.git]
/
src
/
objects.lisp
diff --git
a/src/objects.lisp
b/src/objects.lisp
index eca0c8f57403f485a3094fee64885482a5e7bff6..0265259037bd09e79e7f41c26f51ae889e212a7a 100644
(file)
--- a/
src/objects.lisp
+++ b/
src/objects.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: objects.lisp,v 1.
5 2002/11/14 22:11:07
kevin Exp $
+;;;; $Id: objects.lisp,v 1.
8 2002/12/03 06:58:39
kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-58,7
+58,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) :nelems ,size)
#+allegro
#+lispworks
`(fli:allocate-foreign-object :type ',(convert-from-uffi-type type :allocate) :nelems ,size)
#+allegro
- `(ff:allocate-fobject
'(:array ,(convert-from-uffi-type (eval type) :allocate) ,(eval size)
) :c)
+ `(ff:allocate-fobject
(list :array (quote ,(convert-from-uffi-type type :allocate)) ,size
) :c)
#+mcl
`(new-ptr (* ,size ,(size-of-foreign-type (convert-from-uffi-type type :allocation))))
)))
#+mcl
`(new-ptr (* ,size ,(size-of-foreign-type (convert-from-uffi-type type :allocation))))
)))
@@
-108,7
+108,7
@@
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)
#+(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)
+ #+allegro `(ff:fslot-value-typed
(quote ,(convert-from-uffi-type type :deref)
) :c ,ptr)
#+mcl `(ccl:pref ,ptr ,(convert-from-uffi-type type :deref))
)
#+mcl `(ccl:pref ,ptr ,(convert-from-uffi-type type :deref))
)