[cffi-devel] Not able to use constant variables in with-foreign-pointer

Luís Oliveira luismbo at gmail.com
Sun Apr 25 12:31:44 UTC 2010


Hello,

On Wed, Apr 21, 2010 at 9:45 AM, Jianshi Huang <huang at msi.co.jp> wrote:
> <          (ff:with-static-fobject (,var '(:array :char ,size)
> ---
>>          (ff:with-static-fobject (,var (list :array :char ,size)

Thanks for the report. This fix is not correct because it inhibits
stack allocation due to the type/size specification not being constant
anymore. (Plus, the committed patch was missing a comma, which broke
the macro altogether.)

I've pushed a fix, along with a test.

Cheers,

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the cffi-devel mailing list