X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fobjects.lisp;h=19cb002d94ea50f698bbfa5db24ce9bc9504dab8;hb=d2cba79718785eaf10ee11d661aca3f4ebb20929;hp=7826f56c8bcd6f52d5806876fa9ada05cc8a827b;hpb=c28c2fe540ec9dac832390a74c4fb7a29cf806a8;p=uffi.git diff --git a/src/objects.lisp b/src/objects.lisp index 7826f56..19cb002 100644 --- a/src/objects.lisp +++ b/src/objects.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: objects.lisp,v 1.2 2002/10/14 01:51:15 kevin Exp $ +;;;; $Id: objects.lisp,v 1.3 2002/10/14 07:08:49 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -85,11 +85,11 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated." ) (defmacro make-null-pointer (type) - #+(or allegro cmu sbcl mcl) (declare (ignore type)) - #+cmu `(system:int-sap 0) - #+sbcl `(sb-sys:int-sap 0) + #+(or allegro mcl) (declare (ignore type)) + #+cmu `(alien:sap-alien (system:int-sap 0) (* ,(convert-from-uffi-type (eval type) :type))) + #+sbcl `(sb-alien:sap-alien (sb-sys:int-sap 0) (* ,(convert-from-uffi-type (eval type) :type))) + #+lispworks `(fli:make-pointer :address 0 :type (quote ,(convert-from-uffi-type (eval type) :type))) #+allegro 0 - #+lispworks `(fli:make-pointer :address 0 :type ,type) #+mcl `(ccl:%null-ptr) )