cffi-devel  

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

Jianshi Huang
Wed, 21 Apr 2010 02:11:06 -0700

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 <hu...@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


_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel