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@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
On Wed, 2010-04-21 at 17:45 +0900, Jianshi Huang wrote:
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?
Thanks for the report, I've applied your patch. The next time please send a unified diff - obtained with darcs diff -u
From: Stelian Ionescu sionescu@cddr.org Date: Wed, 21 Apr 2010 11:26:59 +0200
Thanks for the report, I've applied your patch. The next time please send a unified diff - obtained with darcs diff -u
Sure, thanks.
Hello,
On Wed, Apr 21, 2010 at 9:45 AM, Jianshi Huang huang@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,