[cffi-devel] defcstruct bz_stream

Kilian Sprotte ml13 at onlinehome.de
Sun Jan 15 09:32:42 UTC 2006


Hi,

I was playing around with libbz2 with bindings generated
 from the cffi backend of SWIG, which latest cvs 
works very nicely now. Basic reading, writing has been a joy.

 The only thing is that cffi gave me an error 
(division-by-zero) when evaluating the following defcstruct:

(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))

Sorry, I dont think, I can really be helpful for solving this.

Cheers,
     Kilian Sprotte






More information about the cffi-devel mailing list