- Mar 10, 2012
-
-
Luís Oliveira authored
Patch courtesy of James Anderson.
-
- Sep 11, 2011
-
-
Liam M. Healy authored
Generic function translate-into-foreign-memory and funtion convert-into-foreign-memory definitions now loaded by cffi. System cffi-fsbv defined for calling functions with foreign structures by value using libffi. Current state of this system is to make libffi-type-pointer and associate with the structure in defcstruct. This works on test structure (macroexpand '(defcstruct (complex :class complex-type) (real :double) (imag :double))) but nothing further is done with the libffi-type-pointer. To do: fix lookup-type so that if there is no type defined, it returns nil. Do iterate-foreign-structure in advance of macro expansion in cstruct-libffi-hook, if any arguments lack type translation, then return nil. This means that that structure can not be passed/returned by value. Then load cif after cstruct. Secondary bug fix: defsynonym 'unsigned to something, not sure what it's supposed to be; :uint?
-
- Aug 22, 2010
-
-
Luís Oliveira authored
- Added .gitignore. - Adapted release.sh script to git. - Removed :version from cffi.asd. Release tarballs now get the release version inserted into the tarball's cffi.asd. - Update manual with git info.
-
- May 20, 2010
-
-
François-René Rideau authored
-
- Jan 01, 2010
-
-
Luís Oliveira authored
-
- Jun 16, 2009
-
-
Luís Oliveira authored
-
- Feb 01, 2009
-
-
Luís Oliveira authored
-
- Oct 29, 2008
-
-
Luís Oliveira authored
-
- Sep 12, 2008
-
-
Luís Oliveira authored
-
- Aug 20, 2008
-
-
Luís Oliveira authored
-
- Jul 29, 2008
-
-
Luís Oliveira authored
-
Luís Oliveira authored
- Keep it around for backwards compatibility. - Don't use it from CFFI itself or the test suite. - Update the manual.
-
- Jul 28, 2008
-
-
Luís Oliveira authored
-
- Jun 03, 2008
-
-
Luís Oliveira authored
-
- Dec 30, 2007
-
-
Stelian Ionescu authored
-
- Jul 19, 2007
-
-
Luís Oliveira authored
Not sure if this is a great idea yet. In any case, CFFI-FEATURES is still there for backwards compatibility for the time being.
-
- Jun 08, 2007
-
-
Luís Oliveira authored
- Preliminary (likely buggy) version. Includes documentation and tests. - New cffi-features: big-endian and little-endian determined with CFFI code. - Needs cleaning up.
-
- Jun 01, 2007
-
-
Luís Oliveira authored
-
- Sep 08, 2006
-
-
Luís Oliveira authored
-
- May 03, 2006
-
-
James Bielman authored
-
- Apr 24, 2006
-
-
Luís Oliveira authored
-
- Apr 18, 2006
-
-
Luís Oliveira authored
- add asdf:test-op to the cffi system - mark a couple more cmucl failures - get rid of the warning in libtest.c about comparing void* and function pointer
-
- Feb 23, 2006
-
-
Luís Oliveira authored
- Makefile: new test-scl target. Add SCL's fasl file extensions to the clean target. - Remove SCL TODO item. - New file: cffi-scl.lisp. - New primitive type :long-double. Since it's only supported by SCL, it's not worth adding a no-long-double feature just yet. - New tests for :long-double. - Add information about SCL and the new :long-double type to the user manual.
-
- Feb 04, 2006
-
-
James Bielman authored
-
- Jan 07, 2006
-
-
Luís Oliveira authored
- Renamed :cffi/no-foreign-funcall and :cffi/no-long-long to cffi-features:foreign-funcall and cffi-features:long-long respectively (with the opposite meanings of course). - Also new features (in the cffi-features package): darwin, unix, windows, ppc32 and x86. More could be added. The cffi-sys backends are responsible for pushing these features.
-
- Dec 11, 2005
-
-
Luís Oliveira authored
- Refactoring of the type translation mechanism, now based on generic functions. The only user-visible changes is that you can now specialize the on the argument of the translator, and there's no type argument now (which was useless too for user-defined types). - Don't export define-type-spec-parser since it's useless on its own. - The anonymous :enum type is gone. - Updated manual.
-
- Dec 08, 2005
-
-
Luís Oliveira authored
-
- Aug 26, 2005
-
-
Luís Oliveira authored
- New tests: tests/enums.lisp (4 tests) and tests/misc-types.lisp (3 tests). - New file: objects.lisp, skeleton of the safe typed pointer interface. I also added a :boolean type here, it's looking for a better home still. - (early-types.lisp): type parsers, DEFINE-TYPE-SPEC-PARSER and PARSE-TYPE. Added abbility to have anonymous types (ie. a name is no longer required for FOREIGN-TYPE). Moved DEFCTYPE to types.lisp. - (enum.lisp): improved DEFCENUM, the values for each keyword are now optional, like in C. Added the anonymous type (:enum ...) - (types.lisp): - Renamed :TO-C-ARG to :TO-C-DYNAMIC. - Renamed FOREIGN-AREF to MEM-AREF and implemented compiler macros for it. - New exported macro: DEFINE-FOREIGN-TYPE for parameterized types. - Change DEFINE-TYPE-TRANSLATOR back to the previous interface, translators take a type argument now and we have translators available at runtime now too. - FOREIGN-TYPEDEF's now inherit their parent type's translators. - New :wrapper type, for anonymous typedefs with translators. - (strings.lisp): Renamed string to :string. Added new type, :string+ptr. - (utils.lisp): renamed let-if to bif. - (tests/callbacks.lisp): two tests were not being run for SBCL because I thought it triggered a bug but it's actually only one that triggers the bug. Fixed that. - Updated examples and tests to use :string instead of string.
-
- Aug 21, 2005
-
-
Luís Oliveira authored
- Move #-cffi/no-foreign-funcall from cffi-tests.asd to tests/funcall.lisp and have the lisps that don't support this push the feature in cffi-<lisp>.lisp instead of defpackage. - New file: utils.lisp - Make Allegro, CMUCL, Corman and OpenMCL use callback-symbol-name (from cffi-utils) to safely intern callback symbol names (James) - Clisp: consider (pointerp NIL)
-
- Aug 06, 2005
-
-
Luís Oliveira authored
- A few bugs and issues left, fails 5 tests. (the tests won't run automatically because Corman Lisp binds *load-truename* to NIL, so the code in tests/bindings.lisp doesn't find the C test library).
-
- Jul 05, 2005
-
-
Luís Oliveira authored
-
James Bielman authored
-
Luís Oliveira authored
-
- Jul 04, 2005
-
-
Luís Oliveira authored
-
- Jun 12, 2005
-
-
Stelian Ionescu authored
Very preliminary Lispworks support. Calling foreign functions is not implemented, and will probably require vendor support as a necessary primitive does not seem to be exported.
-
- Jun 08, 2005
-
-
Stelian Ionescu authored
Add foreign enumerated types that automatically convert from keywords to integers when passed or returned to/from foreign functions.
-
- Jun 07, 2005
-
-
Stelian Ionescu authored
Clean up CLISP support some, will need CVS version of CLISP to properly handle looking up symbols in all loaded foreign libraries. Add preliminary support for CMU CL (tested in 19b-pre on OS X).
-
Stelian Ionescu authored
-