Luis Oliveira [Sun, 1 Feb 2009 18:16:53 +0000]
update cffi.asd for version 0.10.4
Luis Oliveira [Tue, 27 Jan 2009 21:43:36 +0000]
cffi-allegro: WITH-POINTER-TO-VECTOR-DATA fix
- Also, export both W-P-T-V-D and MAKE-SHAREABLE-BYTE-VECTOR from
CFFI-SYS and remove shareable vector tests from the expected failures
list.
Fix courtesy of John Fremlin.
Luis Oliveira [Tue, 27 Jan 2009 21:29:53 +0000]
Handle uninterned symbols in %DEFCALLBACK
- New regression test: CALLBACKS.UNINTERNED.
Bug reported by Liam Healy.
Luis Oliveira [Mon, 19 Jan 2009 02:13:05 +0000]
Shareable byte vector support for Allegro CL
Patch courtesy of John Fremlin.
Luis Oliveira [Fri, 9 Jan 2009 01:45:09 +0000]
cffi-allegro: use WITH-STATIC-FOBJECT instead of WITH-STACK-FOBJECT
- WITH-STACK-FOBJECT doesn't take care of deallocation when it fails
to allocate on the stack.
- Clean up the WITH-FOREIGN-POINTER macro.
Luis Oliveira [Fri, 9 Jan 2009 01:32:37 +0000]
cffi-allegro: fix handling of pointers on 64-bit platforms
- Use :UNSIGNED-NAT instead of :FOREIGN-ADDRESS for CFFI's :POINTER.
- Cleanup some of the kludges needed because :FOREIGN-ADDRESS wasn't
understood by Allegro's FF in some contexts.
Bug report and initial patch courtesy of John Fremlin.
Luis Oliveira [Mon, 19 Jan 2009 01:57:59 +0000]
cffi-clisp: bail out early on when FFI is not available.
Suggested by Daniel Herring.
Luis Oliveira [Thu, 8 Jan 2009 21:54:16 +0000]
cffi-allegro: WITH-FOREIGN-POINTER bug fix
- Pass :ALLOCATION :FOREIGN-STATIC-GC to FF:WITH-STACK-FOBJECT so that
the allocated object is not moved by the GC in those situation where
W-S-F does heap allocation (e.g. in interpreted code).
Initial patch courtesy of John Fremlin.
Stelian Ionescu [Wed, 7 Jan 2009 21:29:56 +0000]
Fix ETYPECASE in DEFINE-GROVEL-SYNTAX CSTRUCT.
Luis Oliveira [Wed, 31 Dec 2008 01:57:14 +0000]
Experimental DEFCSTRUCT feature: accessors.
CFFI> (macroexpand-1 '(defcstruct (foo :conc-name foo-)
(a :int)))
;;; ...
(defun foo-a (pointer-to-foo)
(foreign-slot-value pointer-to-foo 'foo 'a))
(defun (setf foo-a) (value pointer-to-foo)
(foreign-slot-set value pointer-to-foo 'foo 'a))
;;; ...
Luis Oliveira [Wed, 31 Dec 2008 01:51:45 +0000]
Improvements to the :ARRAY type.
- Got rid of the :AUTO-ARRAY type. Add translators to :ARRAY
directly instead.
- Make the :ARRAY type aggregate. This way it can be used
inside structures as an alternative to the :COUNT slot option.
- Add TRANSLATE-AGGREGATE-TO-FOREIGN method that lets us do
(setf (foreign-slot-value ptr 'struct 'slot-name) #(1 2 3))
Luis Oliveira [Wed, 31 Dec 2008 01:48:50 +0000]
Apply translators to FOREIGN-SLOT-VALUE on aggregate slots
Implemented a new generic function TRANSLATE-AGGREGATE-TO-FOREIGN to
support (SETF FOREIGN-SLOT-VALUE) for aggregate slots.
Luis Oliveira [Wed, 31 Dec 2008 00:50:38 +0000]
Add note about FREE-TRANSLATED-OBJECT's PARAM argument.
Luis Oliveira [Tue, 30 Dec 2008 01:45:38 +0000]
manual: miscellaneous improvements
- use a roman font for comments in the TeX outputs.
- fix some typos and missing @lispcmt{}s.
- insert page breaks before each CLHS-style documentation node.
This should make it much clearer to read and browse, at the
expense 23 more pages in total, a ~25% increase.
Stelian Ionescu [Sun, 28 Dec 2008 21:37:58 +0000]
Fix %INVOKE on Clisp.
Stelian Ionescu [Sun, 28 Dec 2008 21:22:45 +0000]
Use ETYPECASE instead of COND in a few places.
Hugo Duncan [Sat, 11 Oct 2008 13:00:10 +0000]
Add the ability to specify a preprocessor symbol as the argument to :count in cstruct
Luis Oliveira [Sat, 27 Dec 2008 23:09:19 +0000]
defcvar: don't ignore the documentation string.
- use (setf documentation) to store the docstring.
- add regression test.
Bug report courtesy of James A. Crippen.
Luis Oliveira [Sat, 27 Dec 2008 23:05:30 +0000]
manual: various improvements to the DEFCFUN node
- Add new example using an argless function.
- Document the docstring support and exemplify it.
- Fix some typos.
Bug reports courtesy of James A. Crippen.
Luis Oliveira [Wed, 29 Oct 2008 19:46:34 +0000]
update cffi.asd for version 0.10.3
Luis Oliveira [Tue, 28 Oct 2008 23:32:22 +0000]
cffi-sbcl: Fix brokeness in %close-foreign-library
Details in <http://thread.gmane.org/gmane.lisp.steel-bank.devel/12028>.
Josh Elsasser [Tue, 21 Oct 2008 14:06:27 +0000]
Allow PROCESS-GROVEL-FILE to work on files with null directory component.
David Brown [Tue, 14 Oct 2008 04:01:42 +0000]
Shareable Vectors for ECL.
ECL uses a non-moving, conservative garbage collector, so shareable
byte vectors can be implemented just by using a pointer to the data.
Stelian Ionescu [Thu, 9 Oct 2008 23:18:40 +0000]
Fix SBCL %CLOSE-FOREIGN-LIBRARY wrt changes in 1.0.21.15
%CLOSE-FOREIGN-LIBRARY makes use of SB-ALIEN::SHARED-OBJECT-FILE which
has disappeared in 1.0.21.15 - replaced by SHARED-OBJECT-PATHNAME, so
I've added a readtime conditional that detects the right accessor.
Luis Oliveira [Fri, 26 Sep 2008 20:51:12 +0000]
gendocs.sh fix: pass --no-userinit to sbcl
Luis Oliveira [Fri, 26 Sep 2008 19:50:08 +0000]
Update SCL port.
Patch courtesy of Douglas Crosher.
Luis Oliveira [Fri, 12 Sep 2008 13:34:56 +0000]
update cffi.asd for version 0.10.2
Luis Oliveira [Fri, 12 Sep 2008 13:34:24 +0000]
TODO cleanup
Luis Oliveira [Fri, 12 Sep 2008 13:33:50 +0000]
Fix handling of the T clause in DEFINE-FOREIGN-LIBRARY
- Added regression test: LIBRARY.T-CLAUSE.
Bug report and initial patch courtesy of Kalyanov Dmitry.
Stelian Ionescu [Sat, 30 Aug 2008 08:38:33 +0000]
Add wrapper directives PROCLAIM and DECLAIM.
Stelian Ionescu [Fri, 22 Aug 2008 14:43:42 +0000]
Add option BASE-TYPE to groveler directives CENUM and CONSTANTENUM.
Stelian Ionescu [Fri, 22 Aug 2008 14:39:56 +0000]
Small fix to the manual: use @var instead of @code in CENUM and CONSTANTENUM docs.
Stelian Ionescu [Fri, 22 Aug 2008 14:18:00 +0000]
Add option DEFINE-CONSTANTS to groveler directives CENUM and CONSTANTENUM.
If DEFINE-CONSTANTS is non-null, the enum members will also be defined
as constants.
Stelian Ionescu [Fri, 22 Aug 2008 14:15:27 +0000]
Make groveler directive CONSTANT more robust.
If a constant's name is a keyword, change it to a symbol
interned in the current package.
Luis Oliveira [Fri, 22 Aug 2008 14:09:47 +0000]
manual: restore colorization workingness
Luis Oliveira [Fri, 22 Aug 2008 13:31:30 +0000]
manual/groveller: fix ctype's documentation
Reported by Stelian Ionescu.
Luis Oliveira [Wed, 20 Aug 2008 22:59:50 +0000]
update cffi.asd for version 0.10.1
Stephen Compall [Wed, 20 Aug 2008 22:10:30 +0000]
port uffi-compat to Clozure
Luis Oliveira [Tue, 29 Jul 2008 22:55:54 +0000]
Fix typo in the manual.
Luis Oliveira [Tue, 29 Jul 2008 14:25:33 +0000]
Small fix to gendocs.sh to make same versions of bash happier.
Luis Oliveira [Tue, 29 Jul 2008 14:02:33 +0000]
update cffi.asd for version 0.10.0
Luis Oliveira [Tue, 29 Jul 2008 13:16:41 +0000]
Add Installation chapter to the manual.
Luis Oliveira [Tue, 29 Jul 2008 12:42:01 +0000]
Deprecate cffi-features.
- Keep it around for backwards compatibility.
- Don't use it from CFFI itself or the test suite.
- Update the manual.
Luis Oliveira [Tue, 29 Jul 2008 12:17:54 +0000]
Use :import-from for alexandria symbols.
Luis Oliveira [Tue, 29 Jul 2008 02:33:39 +0000]
New and improved release script.
Luis Oliveira [Tue, 29 Jul 2008 02:32:40 +0000]
doc/Makefile: have upload-docs target build the manual first
Luis Oliveira [Tue, 29 Jul 2008 02:15:53 +0000]
cffi-tests: mark a few expected failures for ECL
Luis Oliveira [Tue, 29 Jul 2008 02:14:09 +0000]
ECL: handle FILE-ERRORs in %LOAD-FOREIGN-LIBRARY
Luis Oliveira [Tue, 29 Jul 2008 02:12:20 +0000]
ECL: support long long on x86-64 by treating it as long.
Luis Oliveira [Tue, 29 Jul 2008 00:41:54 +0000]
cffi-tests: mark expected failures for allegro.
Luis Oliveira [Tue, 29 Jul 2008 00:37:48 +0000]
cffi-tests: mark defcfun.noop as expected for CCL
Luis Oliveira [Tue, 29 Jul 2008 00:30:26 +0000]
cffi-tests: use Babel's #\ syntax
Luis Oliveira [Tue, 29 Jul 2008 00:29:59 +0000]
cffi-tests: mark some expected failures for lispworks
Luis Oliveira [Tue, 29 Jul 2008 00:29:27 +0000]
Fix alignment information for emulated long long types.
Luis Oliveira [Tue, 29 Jul 2008 00:28:34 +0000]
Use BABEL:UNICODE-STRING instead of STRING in a few places.
Luis Oliveira [Mon, 28 Jul 2008 22:48:03 +0000]
cffi-tests: test stdcall only on win32
Luis Oliveira [Mon, 28 Jul 2008 22:42:10 +0000]
Expect STRING.ENCODING.UTF-16.BASIC and STRING.ENCODINGS.ALL.BASIC failures
Luis Oliveira [Mon, 28 Jul 2008 15:31:46 +0000]
Small fixes and simplifications to the TEST-OPs
Luis Oliveira [Mon, 28 Jul 2008 15:29:40 +0000]
CMUCL: fix NATIVE-NAMESTRING
- NAMESTRING didn't expand search lists. Actually read the
documentation for UNIX-NAMESTRING this time and figured out why it
appeared to be misbehaving in the past.
Stephen Compall [Wed, 23 Jul 2008 04:47:29 +0000]
Expand body only once for uffi:with-cstring.
Luis Oliveira [Mon, 16 Jun 2008 00:06:10 +0000]
tests/Makefile: deal with BSD systems properly
Suggestion and initial patch courtesy of Josh Elsasser.
Luis Oliveira [Tue, 10 Jun 2008 20:19:20 +0000]
Update make-shareable-byte-vector for LW 5.1
Patch courtesy of Chun Tian.
Stelian Ionescu [Thu, 5 Jun 2008 06:50:42 +0000]
Eliminate all references to cffi-utils package.
attila.lendvai [Wed, 4 Jun 2008 21:17:29 +0000]
fix groveller by adding symbolicate to alexandria
Luis Oliveira [Wed, 4 Jun 2008 03:45:03 +0000]
cffi-sbcl: needs when-let as well.
Luis Oliveira [Tue, 3 Jun 2008 22:30:08 +0000]
Makefile: rename acl to alisp
Luis Oliveira [Tue, 3 Jun 2008 22:28:41 +0000]
Remove cffi-utils
Stelian Ionescu [Fri, 9 May 2008 14:35:16 +0000]
Fix emulation of [UNSIGNED-]LONG-LONG.
Luis Oliveira [Mon, 2 Jun 2008 20:08:04 +0000]
cffi-openmcl: fix name conflict
- Import just alexandria:once-only instead of the whole package.
Reported by Marko Manninen.
Luis Oliveira [Mon, 2 Jun 2008 20:07:07 +0000]
cffi-manual: @section CMUCL -> @subheading
Luis Oliveira [Sun, 1 Jun 2008 05:17:32 +0000]
Update manual
- Fix @result{} in the HTML output.
- Revamp the "Implementation support" chapter.
- Fix misc documentation rot.
- Delete empty sections.
- Document the emulation of long-long types.
- Remove UTF-8 characters since texinfo has not entered
the 21st century yet.
- Finish the documentation for the new encoding support.
Luis Oliveira [Sun, 1 Jun 2008 04:56:24 +0000]
minor change to foreign-string-to-lisp
Make max-chars default to (1- array-total-size-limit).
attila.lendvai [Sat, 17 May 2008 19:02:31 +0000]
added support for :cc-flags for grovel-file to specify additional flags to the compiler (like -I /foo/bar)
Luis Oliveira [Sat, 31 May 2008 16:37:24 +0000]
Minor fixes to cffi-manual.texinfo
Restores buildability. Courtesy of Rupert Swarbrick.
Luis Oliveira [Sat, 31 May 2008 14:16:47 +0000]
Fix conflict in cffi-openmcl.lisp
Stelian Ionescu [Sun, 30 Dec 2007 23:39:20 +0000]
Add dependency on ALEXANDRIA, remove redundant code from CFFI-UTILS package.
Stelian Ionescu [Sat, 5 Apr 2008 23:18:46 +0000]
Add groveler directive for inline C code, as for the wrapper.
Stelian Ionescu [Fri, 8 Feb 2008 22:40:19 +0000]
Groveler: small fix for ECL.
Luis Oliveira [Mon, 7 Apr 2008 10:54:14 +0000]
cffi-lispworks: add long-long support on 64-bit platforms
Initial patch and testing courtesy of Tian Chun.
Luis Oliveira [Sat, 5 Apr 2008 20:58:12 +0000]
Mark DEFCFUN.VARARGS.DOCSTRING as an expected failure on CLISP
Luis Oliveira [Sun, 16 Mar 2008 13:26:03 +0000]
uffi-compat: fix bitrot in CONVERT-FROM-FOREIGN-STRING
Reported by Christophe Rhodes. Passes all of uffi-tests again.
Luis Oliveira [Mon, 25 Feb 2008 23:13:21 +0000]
Simplify :[u]intptr definitons.
- This patch makes CMUCL happier.
Stelian Ionescu [Fri, 21 Dec 2007 20:41:27 +0000]
Make sure that the groveller can handle nested PROGN forms.
Luis Oliveira [Mon, 10 Dec 2007 10:20:01 +0000]
Unicode string update
- Remove outdated comments.
- Use BABEL:SIMPLE-UNICODE-STRING type.
- Document *DEFAULT-FOREIGN-ENCODINGS*.
- Add :FREE-FROM-FOREIGN and :FREE-TO-FOREIGN boolean
parameters to the :STRING type.
Luis Oliveira [Sat, 8 Dec 2007 22:28:04 +0000]
Fix WITH-FOREIGN-POINTER-AS-STRING usage in examples. (again)
Luis Oliveira [Sat, 8 Dec 2007 22:25:10 +0000]
Fix WITH-FOREIGN-POINTER-AS-STRING usage in examples.
Luis Oliveira [Thu, 23 Aug 2007 03:27:14 +0000]
grovel: fix Lispworks's %INVOKE
Luis Oliveira [Mon, 13 Aug 2007 23:04:54 +0000]
Fix strings.lisp
- Work around apparent SBCL bug.
- Handle :RE endianness in BGET and BSET.
Luis Oliveira [Mon, 13 Aug 2007 23:04:27 +0000]
Update tests to reflect changes in WITH-FOREIGN-POINTER-AS-STRING
Luis Oliveira [Mon, 13 Aug 2007 20:16:39 +0000]
Add missing :after qualifier in DEFINE-C-STRUCT-WRAPPER.
Luis Oliveira [Mon, 13 Aug 2007 19:49:57 +0000]
Don't use aggresive compilation declarations in BABEL-ENCODINGS:I-C-M.
Luis Oliveira [Mon, 6 Aug 2007 01:43:05 +0000]
Fix WITH-FOREIGN-POINTER-AS-STRING return values
- Don't return second value of FOREIGN-STRING-TO-LISP.
Luis Oliveira [Mon, 6 Aug 2007 01:40:01 +0000]
grovel: fix defwrapper handling of types in #'cffi-type
Luis Oliveira [Fri, 3 Aug 2007 20:26:07 +0000]
grovel: fix handling of alternatives in constantenum
Luis Oliveira [Fri, 3 Aug 2007 20:25:45 +0000]
grovel: fix invoke on clisp/win32
Luis Oliveira [Wed, 1 Aug 2007 14:56:18 +0000]
grovel: ugh, fix wording in form-kind comment
Stelian Ionescu [Wed, 1 Aug 2007 14:46:56 +0000]
Fix use of PROGN form by the groveller.
Luis Oliveira [Wed, 1 Aug 2007 14:34:32 +0000]
grovel: fix FORM-KIND
Luis Oliveira [Mon, 30 Jul 2007 23:11:11 +0000]
Add new types :intptr and :uintptr
Luis Oliveira [Mon, 30 Jul 2007 20:53:30 +0000]
grovel: update comment regarding cstruct-and-class