chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
108fea9
)
Added poniter sized integer type POINTER-DATA
author
espen
<espen>
Mon, 19 Feb 2007 14:42:24 +0000
(14:42 +0000)
committer
espen
<espen>
Mon, 19 Feb 2007 14:42:24 +0000
(14:42 +0000)
gffi/basic-types.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gffi/basic-types.lisp
b/gffi/basic-types.lisp
index 9b3695e0f41d6a117e681940dbfcc13ef39e0243..c18890ecf1b93cb5683389fac57118e25bf4ff59 100644
(file)
--- a/
gffi/basic-types.lisp
+++ b/
gffi/basic-types.lisp
@@
-20,7
+20,7
@@
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: basic-types.lisp,v 1.
5 2007-01-02 15:20:32
espen Exp $
+;; $Id: basic-types.lisp,v 1.
6 2007-02-19 14:42:24
espen Exp $
(in-package "GFFI")
(in-package "GFFI")
@@
-55,6
+55,11
@@
(deftype char () 'base-char)
(deftype pointer ()
#+(or cmu sbcl) 'system-area-pointer
#+clisp 'ffi:foreign-address)
(deftype pointer ()
#+(or cmu sbcl) 'system-area-pointer
#+clisp 'ffi:foreign-address)
+(deftype pointer-data ()
+ '(unsigned-byte #+sbcl #.(sb-sizeof-bits 'sb-alien:system-area-pointer)
+ #+clisp #.(ffi:bitsizeof 'ffi:c-pointer)
+ #-(or sbcl clisp) 32))
+
(deftype bool (&optional (size '*)) (declare (ignore size)) 'boolean)
(deftype copy-of (type) type)
(deftype static (type) type)
(deftype bool (&optional (size '*)) (declare (ignore size)) 'boolean)
(deftype copy-of (type) type)
(deftype static (type) type)