[cffi-devel] ecl cffi compilation and callbacks
Luís Oliveira
luismbo at gmail.com
Sun Apr 19 01:49:44 UTC 2009
On Sun, Apr 19, 2009 at 1:03 AM, Naveen Garg <naveen.garg at 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[]=ecl&path[]=clinit.lisp&raw=true
>
> 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.
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
More information about the cffi-devel
mailing list