Re: [cffi-devel] CLISP (pointer-address nil) error

2009-06-14 Thread Luís Oliveira
On Fri, Jun 12, 2009 at 8:43 AM, Tobias Rautenkranz wrote: > Actually I am getting the NIL pointers from cffi:mem-ref: > > CL-USER> (defvar *a* (cffi:foreign-alloc :pointer >        :initial-element (cffi-sys:null-pointer))) > *A* > CL-USER> (cffi:mem-ref *a* :pointer) > NIL > > Attached is your pa

Re: [cffi-devel] CLISP (pointer-address nil) error

2009-06-11 Thread Luís Oliveira
On Thu, Jun 11, 2009 at 8:46 PM, Tobias Rautenkranz wrote: > CLISP returns NIL as null pointer but: > (cffi:pointer-address nil) > gives an error. I'm considering making %foreign-funcall not return NIL, let me know if the attached patch works for you. -- Luís Oliveira http://student.dei.uc.pt/~l

[cffi-devel] CLISP (pointer-address nil) error

2009-06-11 Thread Tobias Rautenkranz
Hi CLISP returns NIL as null pointer but: (cffi:pointer-address nil) gives an error. Thanks for fixing this. (see the patch below) diff -rN -u old-cffi/src/cffi-clisp.lisp new-cffi/src/cffi-clisp.lisp --- old-cffi/src/cffi-clisp.lisp2009-06-11 21:43:09.816010652 +0200 +++ new-cffi/src/cff