• Liam Healy's avatar
    Non-native and :callback-toplevel-only fixes · 86da4ec7
    Liam Healy authored
    Fixed several bugs that affected non-native implementations, where
    :inputs, :outputs, or both were not properly declared.  According to
    the CFFI manual, "Portability note: defcallback will not work
    correctly on some Lisps if it's not a top-level form." Evidently, this
    includes Clozure CL, so a new symbol :callback-toplevel-only has been
    pushed onto *features* if openmcl.  This changes examples with
    callbacks to define the callbacks in a separate defparameter rather
    than in-line when the mobject is made of the function is called.  As a
    result of both these changes, the only errors left in CCL tests were
    ones seen previously.  
    CCL 64: TOTAL: 1259 assertions passed, 3 failed, 0 execution errors.
    SBCL 64: TOTAL: 1257 assertions passed, 5 failed, 0 execution errors.
    86da4ec7
roots-multi.lisp 18.3 KB