projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r4720: Auto commit for Debian build
[uffi.git]
/
src
/
objects.lisp
diff --git
a/src/objects.lisp
b/src/objects.lisp
index 8c6d2aca11f1c936b3d970438aed7057ef3561d3..02928bd84200193e6fe4d6e8637cb5aa8c02d1a6 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.
7 2002/12/02 13:21:43
kevin Exp $
+;;;; $Id: objects.lisp,v 1.
11 2003/03/31 19:22:24
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))))
)))
@@
-135,6
+135,11
@@
an array of TYPE with size SIZE. The TYPE parameter is evaluated."
(defmacro ensure-char-integer (obj)
obj)
(defmacro ensure-char-integer (obj)
obj)
+;; Returns the numeric value of a byte at a pointer
+;; Highly optimized
+(defmacro byte-value-at-pointer (ptr)
+ )
+
(defmacro pointer-address (obj)
#+(or cmu scl)
`(system:sap-int (alien:alien-sap ,obj))
(defmacro pointer-address (obj)
#+(or cmu scl)
`(system:sap-int (alien:alien-sap ,obj))