I've read: http://article.gmane.org/gmane.lisp.cffi.devel/754 stating that CFFI
does not support passing structs by value. Unfortunately I need to pass a
SDL_Color struct *by value* to the SDL_ttf library in order to set the
character/font color prior to rendering.
I'll need to write some 'glue' code in C to do this conversion. Does anyone have
any suggestions on the best way I should implement this? A 'wrapper' function in
a helper DLL that will take the SDL_Color struct pointer from CFFI and call the
SDL_ttf function passing the struct as a value?
Thanks,
-Luke
Tue Jun 6 22:23:58 EDT 2006 Luis Oliveira <loliveira(a)common-lisp.net>
* Huh. Found a very old and incomplete sentence in the manual.
M ./doc/cffi-manual.texinfo -1 +1
Tue Jun 6 22:23:35 EDT 2006 Luis Oliveira <loliveira(a)common-lisp.net>
* Minor comestic change in foreign-vars.lisp
M ./src/foreign-vars.lisp -3 +2
Tue Jun 6 22:23:25 EDT 2006 Luis Oliveira <loliveira(a)common-lisp.net>
* Lispworks bugfix: %mem-ref and %mem-set compiler macros
- The %mem-ref and %mem-set in cffi-lispworks.lisp were using
bogus indexes. FLI's documentation suggests foreign-typed-aref
expects array indexes but it seems to want offsets in bytes
instead.
- Regression tests: mem-ref.rt.1 and mem-ref.rt.2.
M ./src/cffi-lispworks.lisp -26 +8
M ./tests/memory.lisp +24
An updated tarball of CFFI's source can be downloaded here:
http://common-lisp.net/project/cffi/tarballs/cffi-060606.tar.gz
Darcsweb URL:
http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=cffi;a=summary