Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2172:4ca0daf6ac3b
Date: 2015-06-07 19:37 +0200
http://bitbucket.org/cffi/cffi/changeset/4ca0daf6ac3b/

Log:    Move this to the future cffi 1.2, and explain it more in cdef.rst.

diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst
--- a/doc/source/cdef.rst
+++ b/doc/source/cdef.rst
@@ -415,6 +415,15 @@
    no attempt is made to complete it.  *New in version 1.1:* support
    for multidimensional arrays: "``int n[...][...];``".
 
+   *New in version 1.2:* "``int m[][...];``", i.e. ``...`` can be used
+   in the innermost dimensions without being also used in the outermost
+   dimension.  In the example given, the length of the ``m`` array is
+   assumed not to be known to the C compiler, but the length of every
+   item (like the sub-array ``m[0]``) is always known the C compiler.
+   In other words, only the outermost dimension can be specified as
+   ``[]``, both in C and in CFFI, but any dimension can be given as
+   ``[...]`` in CFFI.
+
 *  enums: if you don't know the exact order (or values) of the declared
    constants, then use this syntax: "``enum foo { A, B, C, ... };``"
    (with a trailing "``...``").  The C compiler will be used to figure
diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst
--- a/doc/source/whatsnew.rst
+++ b/doc/source/whatsnew.rst
@@ -3,7 +3,7 @@
 ======================
 
 
-1.1.2
+1.2.0
 =====
 
 * Out-of-line mode: ``int a[][...];`` can be used to declare a structure
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to