X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fprimitives.cl;fp=src%2Fprimitives.cl;h=d5e1e367b0b07262b45220e46dc5379d1a2a1821;hb=ffa431d2f677263c3bd256da23090248d82b186a;hp=5ec2cd34dc31e4e8da748979eca43cd513f1a19f;hpb=d3e6bccc2b151fb21563d5adb2cdef6ba77cb320;p=uffi.git diff --git a/src/primitives.cl b/src/primitives.cl index 5ec2cd3..d5e1e36 100644 --- a/src/primitives.cl +++ b/src/primitives.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: primitives.cl,v 1.18 2002/05/17 16:51:08 kevin Exp $ +;;;; $Id: primitives.cl,v 1.19 2002/06/27 05:46:39 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -56,7 +56,8 @@ supports takes advantage of this optimization." (defconstant +cmu-def-type-list+ '((:char . (alien:signed 8)) (:unsigned-char . (alien:unsigned 8)) - (:byte . (alien:unsigned 8)) + (:byte . (alien:signed 8)) + (:unsigned-byte . (alien:unsigned 8)) (:short . (alien:signed 16)) (:unsigned-short . (alien:unsigned 16)) (:int . (alien:signed 32)) @@ -78,7 +79,8 @@ supports takes advantage of this optimization." (:cstring . c-call:c-string) (:char . c-call:char) (:unsigned-char . (alien:unsigned 8)) - (:byte . (alien:unsigned 8)) + (:byte . (alien:signed 8)) + (:unsigned-byte . (alien:unsigned 8)) (:short . c-call:unsigned-short) (:unsigned-short . c-call:unsigned-short) (:int . alien:integer) (:unsigned-int . c-call:unsigned-int) @@ -91,9 +93,10 @@ supports takes advantage of this optimization." (:short . :short) (:pointer-void . (* :void)) (:cstring . (* :unsigned-char)) + (:byte . :char) + (:unsigned-byte . :unsigned-byte) (:char . :char) (:unsigned-char . :unsigned-char) - (:byte . :byte) (:int . :int) (:unsigned-int . :unsigned-int) (:long . :long) (:unsigned-long . :unsigned-long) (:float . :float) (:double . :double) @@ -106,8 +109,9 @@ supports takes advantage of this optimization." (:cstring . (:reference-pass (:ef-mb-string :external-format :latin-1) :allow-null t)) (:cstring-returning . (:reference (:ef-mb-string :external-format :latin-1) :allow-null t)) + (:byte . :byte)) + (:unsigned-byte . (:unsigned :byte)) (:char . :char) - (:byte :byte) (:unsigned-char . (:unsigned :char)) (:int . :int) (:unsigned-int . (:unsigned :int)) (:long . :long) (:unsigned-long . (:unsigned :long))