[Ecls-list] ECL 9.10.2 and cffi/void return types

Seth Burleigh seth at tewebs.com
Sun Feb 14 01:54:16 UTC 2010


Recently I was trying to compile cl-gtk2-gtk and I discovered that cffi
somehow doesn't work with the :void return type.
Like this:
(defcfun (g-main-loop-run "g_main_loop_run" :library glib) :void
  (loop (:pointer g-main-loop)))
-->error part expands into something like

(let ((hi (null-pointer))) 
  (cffi-sys:%foreign-funcall 
   "g_main_loop_run" 
   (:pointer hi :void) :convention :cdecl :library glib))

throws something like "VOID does not denote an elementary foreign
type"??

So it doesn't like the :void part. Fixes???






More information about the ecl-devel mailing list