[cffi-devel] Possible foreign-free bug

Martin Simmons martin at lispworks.com
Tue Nov 12 16:56:07 UTC 2013


>>>>> On Mon, 11 Nov 2013 13:11:05 -0800 (PST), Joeish W said:
> 
> 
> 
> thanks for getting back to me so soon =) ....The definition of cv-arr is 
> 
> ;; CvArr 
> (defctype cv-arr :pointer)
> 
> never thought of defining that as (:pointer cv-arr) ,would that be a good
> thing to do? i tested it defined as (:pointer cv-arr) and it does work,  but
> as it is defined now (just as cv-arr) it works on over 100 functions....any
> other aid to tracking down this possible bug i can give let me know.....im
> dedicated fully  to helping cfffi be the best it can be=)

It won't make any difference to this bug, but I think it would be clearer if
you define cv-arr as :void and then use (:pointer cv-arr) everywhere else, so
that it matches the C code.

__Martin



More information about the cffi-devel mailing list