Skip to content
  1. Feb 23, 2013
  2. Apr 14, 2012
  3. Jan 07, 2012
  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 26, 2011
    • Luís Oliveira's avatar
      Workaround for foreign library loading on OSX. · 39e3e521
      Luís Oliveira authored
      As of OSX 10.6.6, loading things like CoreFoundation on something
      other than the initial thread results in a crash.
      
      Implemented workaround on SBCL based on what CCL does upstream. Other
      Lisps might benefit from similar workarounds.
      39e3e521
  6. Sep 09, 2010
  7. Apr 28, 2010
  8. Jan 01, 2010
  9. Nov 24, 2009
  10. Jul 20, 2009
  11. Jul 28, 2008
  12. Apr 07, 2008
  13. Apr 05, 2008
  14. Jun 01, 2007
    • Luís Oliveira's avatar
      gmake, sparc/hppa and libraries.lisp · a84dd07a
      Luís Oliveira authored
      - cffi-tests.asd: use gmake on solaris too.
      - new cffi-features: sparc[64] and hppa[64], SCL-only.
        (updated the respective test)
      - libraries.lisp: handle ERROR instead of SIMPLE-ERROR.
      - tests/bindings.lisp: bugfix?
      
      Patch courtesy of Douglas Crosher.
      a84dd07a
  15. Feb 14, 2007
    • Luís Oliveira's avatar
      stdcall, namespaces, close-foreign-library · 4f37c6d9
      Luís Oliveira authored
      Three new features:
        - stdcall (defcfun, foreign-funcall(-pointer), defcallback)
        - namespaces, associate foreigns vars and functions to a
          specific library. (CLISP and Lispworks only)
        - close-foreign-library actually works now.
      
      Backwards incompatible changes:
        - define-foreign-library's syntax changed slightly, can't
          load more than one foreign library per define-foreign-library
          form anymore.
        - defcvar's syntax changed.
        - foreign-funcall can't funcall pointers anymore. Use
          foreign-funcall-pointer for that.
      4f37c6d9
  16. Nov 17, 2006
  17. Oct 13, 2006
  18. Oct 12, 2006
    • Luís Oliveira's avatar
      ECL port update · e3554a9d
      Luís Oliveira authored
      - Fixed the port to architectures without dynamical FFI.
      - Tests with too large number of arguments (> 34) are marked as
        expected to fail.
      
      Patch courtesy of Juan Jose Garcia-Ripoll.
      e3554a9d
  19. Sep 25, 2006
    • Luís Oliveira's avatar
      bindings.lisp: load-directory · a3faa38b
      Luís Oliveira authored
      - Use pathname-device and pathname-host to more accurately get
        the current directory on, for example, windows.
      
      Bug report and initial fix by Yaroslav Kavenchuk.
      a3faa38b
  20. Sep 07, 2006
  21. Sep 06, 2006
  22. Jun 27, 2006
    • Luís Oliveira's avatar
      ECL fixes · f483abfc
      Luís Oliveira authored
      - cffi-ecl fixes:
         - push cffi-features:unix on darwin too.
         - use si:load-foreign-module instead of ffi:load-foreign-library
           on DFFI platforms.
         - use convert-external-name in foreign-symbol-pointer.
      - wrap defcvar's define-foreign-symbol around eval-when.
      - simplify default-library-suffix
      - cffi-tests:
         - load libtest.o on ECL platforms without DFFI.
         - conditionalize the tests with 127 arguments based on the
           value of lambda-parameters-limit.
      f483abfc
  23. Jun 07, 2006
  24. May 26, 2006
  25. May 03, 2006
  26. Apr 14, 2006
  27. Feb 23, 2006
  28. Feb 15, 2006
  29. Feb 14, 2006
  30. Feb 12, 2006
  31. Feb 03, 2006
  32. Jan 16, 2006
  33. Oct 27, 2005
    • Luís Oliveira's avatar
      Updated ECL support · f5b57429
      Luís Oliveira authored
      - Updated cffi-ecl.lisp, courtesy of Michael Goffioul.
        (Includes some ECL specific workarounds in the portable
         bits of CFFI.)
      f5b57429
  34. Sep 25, 2005
    • Luís Oliveira's avatar
      load-foreign-library · 5b8b0c5d
      Luís Oliveira authored
      - extend load-foreign-library to accept a pathname as an argument.
      - change tests/bindings.lisp to pass a pathname.
      5b8b0c5d
  35. Sep 24, 2005
    • Luís Oliveira's avatar
      Support for my asdf setup. · d76762d6
      Luís Oliveira authored
      Well, support for asdf setups that don't put fasl files next to
      the source files. The Makefile will delete the .fasls directories
      on make clean (that's where my setup puts the fasls) and bindings.lisp
      will save the shared library's location at compile-time.
      d76762d6
  36. Sep 02, 2005
    • Luís Oliveira's avatar
      Fix struct bug, defcvar bug and tweaked bindings.lisp · 4f04606d
      Luís Oliveira authored
      - defcvar now works (more) correctly with aggregate types.
      - struct types now carry alignment information which is now
        correctly calculated (for unions too) according to the x86
        ABI (tested on darwin/ppc too, but should study other ABI
        docs at some point).
      - also tail padding is now correctly added to structs, when
        necessary. (also according to the x86 ABI).
      - 4 new tests for this struct bug (reported by Wilco Greven).
      - tweaked tests/bindings.lisp to correctly load the library on
        Lispworks and to make it more portable across win/nix/etc..
      4f04606d
  37. Aug 31, 2005
    • Luís Oliveira's avatar
      Win32 tweaks to the test library... · 7a300c19
      Luís Oliveira authored
      ... in order to work with the MSVC++ free toolkit.
      
      - correctly load the test library.
      - and __declspec(dllexport) to the test library functions
      - implement a strdup, used in 2 tests
      - added a compile.bat, the free toolkit doesn't seem to have
        nmake. Also, I don't know how to make ASDF automatically
        compile the lib under win32 like I did for *nix.
      7a300c19
  38. Jul 04, 2005
  39. Jun 07, 2005