Skip to content
  1. Jan 18, 2013
  2. May 05, 2012
    • Liam M. Healy's avatar
      Tests for cffi-libffi working · 03297bd6
      Liam M. Healy authored
      Fix an error in the recursive call in libffi-type-pointer for
      foreign-struct-type, now parse the slot-type, which is unparsed.  This
      makes FSBV.3 and FSBV.4 succeed.  Removed quote from test FSBV.2; this
      makes FSBV.2 succeed.
      03297bd6
  3. Oct 23, 2011
    • Liam M. Healy's avatar
      Test foreign function calls with recursive structure by value · a227e3be
      Liam M. Healy authored
      Add definition of C functions prodsumpair and doublepairdouble that
      take, and for the latter, return, the structure struct-pair+double
      (struct_pair_double) that has a structure struct-pair (struct_pair) in
      its slot 'pr.  Two tests, fsbv.3 and fsbv.4, have been defined, and
      pass.  Fixed argument to libffi-type-pointer call in
      libffi-type-pointer :around method so that these will work.
      a227e3be
  4. Oct 22, 2011
    • Liam M. Healy's avatar
      Tests for CFFI-FSBV libffi; fix return value translation in ffcall-body-libffi · b41e37be
      Liam M. Healy authored
      Tests fsbv.1 and fsbv.2 added that test foreign structure call and
      return by value.  This includes the C file and addition to makefile to
      generate the appropriate library, libfsbv.  So that the tests are
      properly defined, load cffi-fsbv and then cffi-tests.  Both tests
      should pass.  The test returning a structure, fsbv.2, exposed an error
      in the form generated by ffcall-body-libffi; because it always
      generated a mem-aref on the return value, the subsequent
      translate-from-foreign was effectively making a double translation.
      Thus, this form generation has been conditionalized so that if
      translate-from-foreign will not be applied (e.g., built-in-type) to
      call mem-aref, otherwise just return the pointer.
      b41e37be
  5. May 03, 2006
  6. Jun 07, 2005