Skip to content
Commits on Nov 16, 2011
  1. Fixed incorrect use of sap-ref-word for longs on 64-bit Windows.

    Implemented automatic accessor lookup for integer types, based on
    alien type size and CFFI keyword -> alien type mapping.
    
    * src/cffi-sbcl.lisp (define-type-mapping): new macro.
    committed Nov 16, 2011
Commits on Nov 10, 2011
  1. @Lovesan @luismbo
  2. @luismbo

    grovel: dispatch on size of :POINTER to initialize *CPU-WORD-SIZE-FLAGS*

    We were previously using :LONG, but that does not match the machine word
    size on some platforms, namely Windows.
    
    Bug reported by Anton Kovalenko.
    luismbo committed Nov 10, 2011
Commits on Sep 17, 2011
  1. @luismbo

    grovel: fix CVAR's Lisp-side expansion.

    Patch courtesy of pinterface. Fixes LP bug #852192.
    luismbo committed Sep 17, 2011
Commits on Sep 10, 2011
  1. @luismbo
  2. @luismbo

    gitignore *.xfasl

    luismbo committed Sep 10, 2011
  3. @luismbo
Commits on Sep 9, 2011
  1. @luismbo
Commits on Jun 21, 2011
  1. @sionescu

    Make UFFI:FOREIGN-ENCODED-OCTET-COUNT evaluate its arguments.

    Previously, it was returning an expression, acting like a macro.
    
    Thanks to Nathan Bird for spotting this bug
    sionescu committed Jun 21, 2011
Commits on May 26, 2011
  1. @luismbo

    Workaround for foreign library loading on OSX.

    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.
    luismbo committed May 26, 2011
  2. @luismbo
Commits on Apr 17, 2011
  1. @luismbo
  2. @luismbo
  3. @luismbo

    Added TRANSLATE-NAME-{TO,FROM}-FOREIGN.

    Patch courtesy of Greg Pfeil. Closes lp:622272.
    luismbo committed Apr 17, 2011
Commits on Feb 11, 2011
  1. @dochang
  2. @dochang

    Add groveller bitfield support

    In grovel file, write:
    
     (bitfield flags-ctype
       ((:flag-a "FLAG_A")
         :documentation "DOCU_A")
       ((:flag-b "FLAG_B")
         :documentation "DOCU_B")
       ((:flag-c "FLAG_C")
         :documentation "DOCU_C"))
    
    And if the C header file has:
    
     #define FLAG_A 1
     #define FLAG_B 2
     #define FLAG_C 4
    
    This will generate:
    
     (cffi:defbitfield (flags-ctype)
       (:flag-a 1)
       (:flag-b 2)
       (:flag-c 4))
    dochang committed Feb 11, 2011
Commits on Jan 7, 2011
  1. @luismbo

    cffi-ecl: DFFI fixes and handle non-existent foreign symbols gracefully

    Patch courtesy of Juan Jose Garcia-Ripoll.
    luismbo committed Jan 7, 2011
  2. @luismbo

    New FOREIGN-SYMBOL-POINTER tests

    - Added tests: FOREIGN-GLOBALS.UNDEFINED.1 and FOREIGN-GLOBALS.ERROR.1.
    - Check that FOREIGN-SYMBOL-POINTER's 'name' arg is a string.
    luismbo committed Jan 7, 2011
Commits on Jan 3, 2011
  1. @sionescu
Commits on Jan 2, 2011
  1. @sionescu
  2. @sionescu

    Add function RELOAD-FOREIGN-LIBRARIES

    RELOAD-FOREIGN-LIBRARIES &KEY (TEST #'FOREIGN-LIBRARY-LOADED-P)
    
    Useful especially when saving an image to reload libraries when the
    image is re-started.
    Pushing #'CFFI:RELOAD-FOREIGN-LIBRARIES to the implementation's
    *INIT-HOOKS*(or equivalent) should suffice for most cases
    sionescu committed Jan 2, 2011
Commits on Dec 5, 2010
  1. @luismbo
Commits on Nov 4, 2010
  1. @sionescu
Commits on Oct 24, 2010
  1. @sionescu
Commits on Oct 9, 2010
  1. @sionescu
Commits on Sep 19, 2010
  1. @sionescu
  2. @sionescu
  3. @sionescu
  4. @sionescu
  5. @sionescu

    Fix building grovel-wrappers on Windows

    Don't use -fPIC on those systems
    sionescu committed Sep 19, 2010
  6. @sionescu

    Update email address

    sionescu committed Sep 19, 2010
  7. @sionescu

    Improve foreign library support

    * add a PRINT-OBJECT method for foreign libraries
    * signal FOREIGN-LIBRARY-UNDEFINED-ERROR instead of a SIMPLE-ERROR in
      LOAD-FOREIGN-LIBRARY
    * keep around the library name used for opening, add reader
      FOREIGN-LIBRARY-NAME
    sionescu committed Sep 19, 2010
  8. @sionescu

    Fix closing shared libraries on CCL

    If a library is dependen upon by another one loaded in the image, then
    CCL:CLOSE-SHARED-LIBRARY will end up in an endless loop, because it
    tries to repeatedly call dlclose() until it succeeds
    sionescu committed Sep 19, 2010
Commits on Sep 9, 2010
  1. @luismbo

    Improve Darwin compatibility in tests/GNUmakefile

    Patch courtesy of Dorian Taylor, lp#631972.
    luismbo committed Sep 9, 2010
Commits on Sep 6, 2010
  1. @luismbo

    uffi-compat: change handling of :char to match UFFI's actual behaviour.

    Patch courtesy of Gustavo Milare.
    luismbo committed Sep 6, 2010
Something went wrong with that request. Please try again.