[pypy-commit] cffi default: Quotes.
arigo
noreply at buildbot.pypy.org
Tue Jun 26 14:32:35 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r528:563d147386c7
Date: 2012-06-26 14:32 +0200
http://bitbucket.org/cffi/cffi/changeset/563d147386c7/
Log: Quotes.
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -192,7 +192,7 @@
The ``verify()`` line in the second example is an alternative: instead
of doing a ``dlopen``, it generates and compiles a piece of C code.
-When using ``verify()`` you have the advantage that you can use ``...``
+When using ``verify()`` you have the advantage that you can use "``...``"
at various places in the ``cdef()``, and the missing information will
be completed with the help of the C compiler. It also does checking,
to verify that your declarations are correct. If the C compiler gives
@@ -242,7 +242,7 @@
size_t, ssize_t
As we will see on `the verification step`_ below, the declarations can
-also contain ``...`` at various places; there are placeholders that will
+also contain "``...``" at various places; there are placeholders that will
be completed by a call to ``verify()``.
@@ -321,13 +321,13 @@
* other arguments are checked: you get a compilation warning or error
if you pass a ``int *`` argument to a function expecting a ``long *``.
-Moreover, you can use ``...`` in the following places in the ``cdef()``
+Moreover, you can use "``...``" in the following places in the ``cdef()``
for leaving details unspecified (filled in by the C compiler):
* structure declarations: any ``struct`` that ends with "``...;``" is
partial. It will be completed by the compiler. (But note that you
can only access fields that you declared.) Any ``struct``
- declaration without ``...;`` is assumed to be exact, and this is
+ declaration without "``...;``" is assumed to be exact, and this is
checked: you get a ``VerificationError`` if it is not.
* unknown types: the syntax "``typedef ... foo_t;``" declares the type
@@ -338,12 +338,12 @@
by the C compiler.
.. versionadded:: 0.2
- You can also specify it as ``int n[...];``.
+ You can also specify it as "``int n[...];``".
-* enums: in "``enum foo { A, B, C, ... };``" (with a trailing ``...``),
+* 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
- with structs, an ``enum`` that does not end in ``...`` is assumed to
+ with structs, an ``enum`` that does not end in "``...``" is assumed to
be exact, and this is checked.
* integer macros: you can write in the ``cdef`` the line
More information about the pypy-commit
mailing list