Commit 34d7711b authored by Stefan Behnel's avatar Stefan Behnel

rst fixes in docs

parent 9359ab3f
...@@ -91,7 +91,7 @@ using this feature, just tell that to ``pyximport``:: ...@@ -91,7 +91,7 @@ using this feature, just tell that to ``pyximport``::
>>> pyximport.install(pyimport = True) >>> pyximport.install(pyimport = True)
Compiling with ``cython.inline`` Compiling with ``cython.inline``
============================= =================================
One can also compile Cython in a fashion similar to SciPy's ``weave.inline``. One can also compile Cython in a fashion similar to SciPy's ``weave.inline``.
For example:: For example::
......
...@@ -485,8 +485,7 @@ For-loops ...@@ -485,8 +485,7 @@ For-loops
for i in range(n): for i in range(n):
... ...
* Iteration over C arrays is also permitted, e.g. * Iteration over C arrays is also permitted, e.g.::
::
cdef double x cdef double x
cdef double* data cdef double* data
......
...@@ -119,7 +119,7 @@ match the C ones, and in some cases they shouldn't or can't. In particular: ...@@ -119,7 +119,7 @@ match the C ones, and in some cases they shouldn't or can't. In particular:
4. If the header file uses ``typedef`` names such as :ctype:`word` to refer 4. If the header file uses ``typedef`` names such as :c:type:`word` to refer
to platform-dependent flavours of numeric types, you will need a to platform-dependent flavours of numeric types, you will need a
corresponding :keyword:`ctypedef` statement, but you don't need to match corresponding :keyword:`ctypedef` statement, but you don't need to match
the type exactly, just use something of the right general kind (int, float, the type exactly, just use something of the right general kind (int, float,
...@@ -127,7 +127,7 @@ match the C ones, and in some cases they shouldn't or can't. In particular: ...@@ -127,7 +127,7 @@ match the C ones, and in some cases they shouldn't or can't. In particular:
ctypedef int word ctypedef int word
will work okay whatever the actual size of a :ctype:`word ` is (provided the header will work okay whatever the actual size of a :c:type:`word` is (provided the header
file defines it correctly). Conversion to and from Python types, if any, will also file defines it correctly). Conversion to and from Python types, if any, will also
be used for this new type. be used for this new type.
...@@ -210,7 +210,7 @@ same applies equally to union and enum declarations. ...@@ -210,7 +210,7 @@ same applies equally to union and enum declarations.
+-------------------------+---------------------------------------------+-----------------------------------------------------------------------+ +-------------------------+---------------------------------------------+-----------------------------------------------------------------------+
Note that in all the cases below, you refer to the type in Cython code simply Note that in all the cases below, you refer to the type in Cython code simply
as :ctype:`Foo`, not ``struct Foo``. as :c:type:`Foo`, not ``struct Foo``.
Accessing Python/C API routines Accessing Python/C API routines
--------------------------------- ---------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment