[pypy-commit] cffi default: Reformulate.
arigo
noreply at buildbot.pypy.org
Fri Aug 24 19:00:33 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r891:8114d718aef4
Date: 2012-08-24 19:00 +0200
http://bitbucket.org/cffi/cffi/changeset/8114d718aef4/
Log: Reformulate.
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -472,9 +472,10 @@
unspecified length, as in "``int n[];``" or "``int n[...];``.
The length is completed by the C compiler.
-* enums: in "``enum foo { A, B, C, ... };``" (with a trailing "``...``"),
- the enumerated values are not necessarily in order; the C compiler
- will reorder them as needed and skip any unmentioned value. Like
+* 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
+ out the exact values of the constants. Like
with structs, an ``enum`` that does not end in "``...``" is assumed to
be exact, and this is checked.
More information about the pypy-commit
mailing list