X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/5fa2eaf16254da95981ea32de817f9090ea21009..e3cdfeea6d0a346fa449e8050617f320b6d2c9f3:/gffi/basic-types.lisp diff --git a/gffi/basic-types.lisp b/gffi/basic-types.lisp index 9b3695e..c18890e 100644 --- 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. -;; $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") @@ -55,6 +55,11 @@ (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)