Brad Anderson <[EMAIL PROTECTED]> writes: > Kilian Sprotte wrote: >> >> (defcstruct bz_stream >> (next_in :char) >> (avail_in :unsigned-int) >> (total_in_lo32 :unsigned-int) >> (total_in_hi32 :unsigned-int) >> (next_out :char) >> (avail_out :unsigned-int) >> (total_out_lo32 :unsigned-int) >> (total_out_hi32 :unsigned-int) >> (state :void) >> (bzalloc :void) >> (bzfree :void) >> (opaque :void)) >> > > I'm not sure if my error was division-by-zero, but in libxml2, which > I used SWIG/CFFI to bind, the :void types were actually void*, and > so I switched all of them to :pointer.
Yes, use :POINTER for these. The fact that CFFI even accepts :VOID here is a bug---I'll look into this. James _______________________________________________ cffi-devel mailing list cffi-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel