Commit 16ea4ffd authored by Peter Alexander's avatar Peter Alexander

couple of fixes

parent 7c26bf33
...@@ -11,7 +11,6 @@ Compilation ...@@ -11,7 +11,6 @@ Compilation
There are several ways to compile cython code. There are several ways to compile cython code.
.. contents:: .. contents::
:depth: 2
:local: :local:
......
...@@ -7,7 +7,6 @@ Extention Types ...@@ -7,7 +7,6 @@ Extention Types
*************** ***************
.. contents:: .. contents::
:depth: 2
:local: :local:
========== ==========
......
...@@ -7,7 +7,6 @@ Interfacing with Other Code ...@@ -7,7 +7,6 @@ Interfacing with Other Code
*************************** ***************************
.. contents:: .. contents::
:depth: 2
:local: :local:
== ==
......
...@@ -17,35 +17,37 @@ Cython File Types ...@@ -17,35 +17,37 @@ Cython File Types
================= =================
There are three file types in cython: There are three file types in cython:
* Definition files carry the `.pxd` suffix
* Implementation files carry the `'.pyx suffix
* Include files which carry the `.pxi` suffix
* Definition files carry a `.pxd` suffix
* Implementation files carry a `.pyx` suffix
* Include files which carry a `.pxi` suffix
.. contents::
:local:
Definition Definition File
========== ===============
What can it contain? What can it contain?
-------------------- --------------------
* Any kind of C type declaration. * Any kind of C type declaration.
* `extern` C function or variable decarations. * `extern` C function or variable decarations.
* Module implementation declarations as well as definition parts of extension types. * Declarations for module implementations.
* This also is a convenient place to put all declarations of functions, etc., for an * The definition parts of **extension types**.
**external library** * All declarations of functions, etc., for an **external library**
What can't it contain? What can't it contain?
---------------------- ----------------------
* Any non-extern C variable declaration. * Any non-extern C variable declaration.
* Implementations of C or Python functions. * Implementations of C or Python functions.
* Python class definitions * Python class definitions
* Python executable statements. * Python executable statements.
* Any declaration that is defined as **public** to make it accessible to other Cython modules. * Any declaration that is defined as **public** to make it accessible to other Cython modules.
* This is not necessary, as it is automatic. * This is not necessary, as it is automatic.
* a **public** declaration is only needed to make it accessible to **external C code**. * a **public** declaration is only needed to make it accessible to **external C code**.
What else? What else?
---------- ----------
...@@ -68,8 +70,8 @@ compilation order ...@@ -68,8 +70,8 @@ compilation order
Implementation Implementation File
=============== ===================
What can it contain? What can it contain?
-------------------- --------------------
...@@ -83,8 +85,8 @@ What can't it contain? ...@@ -83,8 +85,8 @@ What can't it contain?
already defined else where... **more on this later** already defined else where... **more on this later**
Include Include File
======= ============
What can it contain? What can it contain?
-------------------- --------------------
...@@ -105,6 +107,9 @@ How do I use it? ...@@ -105,6 +107,9 @@ How do I use it?
Data Typing Data Typing
=========== ===========
.. contents::
:local:
Grouping Grouping
======== ========
...@@ -129,6 +134,9 @@ Statements and Expressions ...@@ -129,6 +134,9 @@ Statements and Expressions
Functions Functions
========= =========
.. contents::
:local:
Callable from Python Callable from Python
===================== =====================
......
...@@ -7,5 +7,4 @@ Limitations ...@@ -7,5 +7,4 @@ Limitations
*********** ***********
.. contents:: .. contents::
:depth: 2
:local: :local:
...@@ -7,7 +7,6 @@ Overview ...@@ -7,7 +7,6 @@ Overview
******** ********
.. contents:: .. contents::
:depth: 2
:local: :local:
=============== ===============
......
...@@ -8,5 +8,4 @@ Special Mention ...@@ -8,5 +8,4 @@ Special Mention
*************** ***************
.. contents:: .. contents::
:depth: 2
:local: :local:
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