I am not sure if this change has been accepted into cffi:
diff -rN -u old-*cffi*/src/*cffi*-*ecl*.lisp new-*cffi*/src/*cffi*-*ecl*.lisp
--- old-*cffi*/src/*cffi*-*ecl*.lisp 2008-02-02 23:17:14.000000000 +0100
+++ new-*cffi*/src/*cffi*-*ecl*.lisp 2008-02-02 23:17:14.000000000 +0100
@@ -54,6 +54,7 @@ #:with-*pointer*-to-vector-data #:%defcallback #:%callback + #:*foreign*-*symbol*-*pointer*
#:%*foreign*-*symbol*-*pointer*))
http://article.gmane.org/gmane.lisp.ecl.general/3342/match=foreign+symbol+po...
With this change cffi compiles on ecl, but I am having problem accessing callbacks in ecl from c. foreign-funcall works fine from within ecl... http://github.com/tinku99/ahklisp/blob?path%5B%5D=ecl&path%5B%5D=clinit....
anyone else have this issue?
On Sun, Apr 19, 2009 at 1:03 AM, Naveen Garg naveen.garg@gmail.com wrote:
--- old-cffi/src/cffi-ecl.lisp 2008-02-02 23:17:14.000000000 +0100 +++ new-cffi/src/cffi-ecl.lisp 2008-02-02 23:17:14.000000000 +0100
@@ -54,6 +54,7 @@ #:with-pointer-to-vector-data #:%defcallback #:%callback
- #:foreign-symbol-pointer #:%foreign-symbol-pointer))
With this change cffi compiles on ecl [...]
That's weird. There is no FOREIGN-SYMBOL-POINTER symbol (without the %) in cffi-ecl's CFFI-SYS package or any other CFFI-SYS package for that matter. In any case, I can compile current CFFI with ECL 9.4.1, without that patch. What ECL version are you using?
but I am having problem accessing callbacks in ecl from c. foreign-funcall works fine from within ecl... http://github.com/tinku99/ahklisp/blob?path%5B%5D=ecl&path%5B%5D=clinit....
anyone else have this issue?
I do get some callback issues with ECL when running the test suite. I haven't been able to figure out what's up, unfortunately. I suppose it would help if you had a reproducible test case with CFFI and ECL's FFI side by side. That would tell us who's at fault.
On Sun, Apr 19, 2009 at 2:49 AM, Luís Oliveira luismbo@gmail.com wrote:
On Sun, Apr 19, 2009 at 1:03 AM, Naveen Garg naveen.garg@gmail.com wrote:
--- old-cffi/src/cffi-ecl.lisp 2008-02-02 23:17:14.000000000 +0100
[...]
That's weird. There is no FOREIGN-SYMBOL-POINTER symbol [...]
Ah, I didn't notice that the patch was a year old. That has been fixed long ago. You must be using an old version of CFFI.
http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=cffi-cffi;a=commitdif...