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

Jianshi Huang huang at msi.co.jp
Wed Apr 21 08:45:57 UTC 2010


Hi,

There's a minor problem in the cffi-allegro.lisp that prevents using
constant variables in with-foreign-pointer. Would you please apply
the patch?


Tue Apr 20 19:16:26 JST 2010  Jianshi Huang <huang at msi.co.jp>
  * Fix bug that size in with-foreign-pointer cannot be a constant variable.
diff -rN old-cffi/src/cffi-allegro.lisp new-cffi/src/cffi-allegro.lisp
139c139
<          (ff:with-static-fobject (,var '(:array :char ,size)
---
>          (ff:with-static-fobject (,var (list :array :char ,size)


Cheers,
Jianshi





More information about the cffi-devel mailing list