[cffi-devel] New (backwards incompatible) changes in cffi-luis.

Luís Oliveira luismbo at gmail.com
Fri Dec 9 02:40:05 UTC 2005


Hello,

There have been some backwards incompatible changes:

   1. defcunion and defcstruct's slot definition now expect
      &key count instead of &optional count.
   2. s/ptr/pointer/ on the cffi functions names (see the changelog
      changelog for the complete list).
   3. foreign-slot-address was also renamed to foreign-slot-pointer.

Also, there are two new functions: CFFI:MAKE-POINTER and CFFI:POINTER- 
ADDRESS.

Changelog follows.


Fri Dec  9 02:28:21 WET 2005  Luis Oliveira <loliveira at common-lisp.net>
   * Lots of renaming and 2 new functions

   - Renamed: null-ptr -> null-pointer, null-ptr-p -> null-pointer,
     inc-ptr -> inc-pointer, with-foreign-ptr -> with-foreign-pointer,
     with-foreign-ptr-as-string -> with-foreign-pointer-as-string,
     foreign-slot-address -> foreign-slot-pointer,
     get-var-ptr -> get-var-pointer and
     foreign-symbol-ptr -> foreign-symbol-pointer.
   - Updated various references to the old names in the cffi code  
itself,
     examples, tests and the manual.
   - New functions: cffi(-sys):pointer-address and cffi(-sys):make- 
pointer.
   - Use these in uffi-compat.
   - Documented them in the manual.
   - New tests: POINTER.1 and POINTER.2

Thu Dec  8 06:58:07 WET 2005  Luis Oliveira <loliveira at common-lisp.net>
   * Remove objects.lisp (new file: late-types.lisp)

Thu Dec  8 06:34:12 WET 2005  Luis Oliveira <loliveira at common-lisp.net>
   * defcunion :count option for slots

   - Make the defcunion slots' count option be a keyword
   like defcstruct. Fix the related docs and tests.

Mon Dec  5 01:46:28 WET 2005  Luis Oliveira <loliveira at common-lisp.net>
   * Apply translations for simple slots.

   - Make the foreign-slot-value method on simple-struct-slot apply the
     adequate type translator. Same thing for the setter.
   - Test this in STRUCT.STRING.1 and STRUCT.STRING.2

Sat Dec  3 03:48:26 WET 2005  Luis Oliveira <loliveira at common-lisp.net>
   * Missing changes in last patch...

Sat Dec  3 01:12:23 WET 2005  Luis Oliveira <loliveira at common-lisp.net>
   * Documention changes

   - commented out some example structures that use unimplemented  
features.
   - documented the recent DEFCSTRUCT changes; added related example.
   - mention that lisps that don't support FOREIGN-FUNCALL support
     DEFCFUN anyway.
   - new example with FOREIGN-FUNCALL
   - fix the comments in types.lisp about ABIs.
   - (non doc related) make cffi-tests :use REGRESSION-TEST instead  
of RT.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list