[cffi-devel] Calling functions through pointers

Luis Oliveira luismbo at gmail.com
Wed Aug 31 02:42:22 UTC 2005


Hello,

New patch in cffi-luis.

Wed Aug 31 03:23:58 WEST 2005  Luis Oliveira <loliveira at common-lisp.net>
   * %foreign-funcall-ptr and small fixes

   - New CFFI-SYS operator: %foreign-funcall-ptr. Implemented for
     Allegro, CLISP, CMUCL, SBCL and OpenMCL.
   - foreign-funcall can now take either a string or a pointer as its
     first argument. It'll decide at macroexpansion time whether to call
     %foreign-funcall or %foreign-funcall-ptr.
   - Updated foreign-funcall's documentation.
   - Allegro tweaks: fix the lisp-type specification of (* :void)
     pointers and :unsigned-char's. In the future, it might be better
     to simply not specify anything were not necessary, though.
   - Fixed silly bug in foreign-vars.lisp.



Rayiner, you can now use foreign-funcall for your C++ support. Although 
for maximum portability we'll have to implement a declarative interface 
to support Lispworks (and probably Corman and GCL).

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Equipa Portuguesa do Translation Project
http://www2.iro.umontreal.ca/~pinard/po/registry.cgi?team=pt



More information about the cffi-devel mailing list