Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
34d7711b
Commit
34d7711b
authored
Jun 27, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rst fixes in docs
parent
9359ab3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
docs/src/reference/compilation.rst
docs/src/reference/compilation.rst
+1
-1
docs/src/reference/language_basics.rst
docs/src/reference/language_basics.rst
+1
-2
docs/src/userguide/external_C_code.rst
docs/src/userguide/external_C_code.rst
+3
-3
No files found.
docs/src/reference/compilation.rst
View file @
34d7711b
...
...
@@ -91,7 +91,7 @@ using this feature, just tell that to ``pyximport``::
>>> pyximport.install(pyimport = True)
Compiling with ``cython.inline``
=============================
=============================
====
One can also compile Cython in a fashion similar to SciPy's ``weave.inline``.
For example::
...
...
docs/src/reference/language_basics.rst
View file @
34d7711b
...
...
@@ -485,8 +485,7 @@ For-loops
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* data
...
...
docs/src/userguide/external_C_code.rst
View file @
34d7711b
...
...
@@ -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
corresponding :keyword:`ctypedef` statement, but you don't need to match
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:
ctypedef int word
will work okay whatever the actual size of a :c
type:`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
be used for this new type.
...
...
@@ -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
as :ctype:`Foo`, not ``struct Foo``.
as :c
:
type:`Foo`, not ``struct Foo``.
Accessing Python/C API routines
---------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment