Commits

Armin Rigo  committed 98cc7a3

Fixes.

  • Participants
  • Parent commits bc6a21b

Comments (0)

Files changed (2)

 *.py[co]
 *~
 .*.swp
+testing/__pycache__
+doc/build

File doc/source/index.rst

 .. _`luajit FFI`: http://luajit.org/ext_ffi.html
 .. _`Cython`: http://www.cython.org
 .. _`SWIG`: http://www.swig.org/
-.. _`CPython native C extensions`_: http://docs.python.org/extending/extending.html
-.. _`native C extensions`_: http://docs.python.org/extending/extending.html
+.. _`CPython native C extensions`: http://docs.python.org/extending/extending.html
+.. _`native C extensions`: http://docs.python.org/extending/extending.html
 .. _`ctypes`: http://docs.python.org/library/ctypes.html
 
 
 Simple example (ABI level)
 --------------------------
 
-.. Python::
+.. code-block:: python
 
     >>> from cffi import FFI
     >>> ffi = FFI()
     >>> ffi.cdef("""
-    ...     int printf(const char *format, ...); // copy-pasted from the man page
+    ...     int printf(const char *format, ...);   // copy-pasted from the man page
     ... """)                                  
     >>> C = ffi.dlopen(None)                     # loads the entire C namespace
     >>> arg = ffi.new("char[]", "world")         # equivalent to C code: char arg[] = "world";
     >>> C.printf("hi there, %s!\n", arg);        # call printf
     hi there, world!
-    >>>
 
 
 Real example (API level)
 ------------------------
 
-.. Python::
+.. code-block:: python
 
     from cffi import FFI
     ffi = FFI()
 Struct/Array Example
 --------------------
 
-.. Python::
+.. code-block:: python
 
     from cffi import FFI
     ffi = FFI()