[pypy-commit] cffi default: update docs
arigo
noreply at buildbot.pypy.org
Mon Nov 17 00:41:35 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1572:3d09f5a1d3d1
Date: 2014-11-17 00:41 +0100
http://bitbucket.org/cffi/cffi/changeset/3d09f5a1d3d1/
Log: update docs
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -859,7 +859,9 @@
.. versionadded:: 0.8.2
The ``ffi.cdef()`` call takes an optional argument ``packed``: if
- True, then all structs declared within this cdef are "packed". This
+ True, then all structs declared within this cdef are "packed".
+ (If you need both packed and non-packed structs,
+ use several cdefs in sequence.) This
has a meaning similar to ``__attribute__((packed))`` in GCC. It
specifies that all structure fields should have an alignment of one
byte. (Note that the packed attribute has no effect on bit fields so
More information about the pypy-commit
mailing list