[pypy-commit] cffi default: Fixes.

arigo noreply at buildbot.pypy.org
Thu Jun 14 19:07:42 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r350:98cc7a3136ec
Date: 2012-06-14 19:07 +0200
http://bitbucket.org/cffi/cffi/changeset/98cc7a3136ec/

Log:	Fixes.

diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -2,3 +2,5 @@
 *.py[co]
 *~
 .*.swp
+testing/__pycache__
+doc/build
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -31,32 +31,31 @@
 .. _`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()
@@ -80,7 +79,7 @@
 Struct/Array Example
 --------------------
 
-.. Python::
+.. code-block:: python
 
     from cffi import FFI
     ffi = FFI()


More information about the pypy-commit mailing list