[pypy-svn] r19528 - pypy/dist/pypy/doc

arigo at codespeak.net arigo at codespeak.net
Fri Nov 4 18:02:04 CET 2005


Author: arigo
Date: Fri Nov  4 18:02:03 2005
New Revision: 19528

Modified:
   pypy/dist/pypy/doc/draft-dynamic-language-translation.txt
   pypy/dist/pypy/doc/translation.txt
Log:
* use doctest-style blocks in translation.txt
* fix a broken link


Modified: pypy/dist/pypy/doc/draft-dynamic-language-translation.txt
==============================================================================
--- pypy/dist/pypy/doc/draft-dynamic-language-translation.txt	(original)
+++ pypy/dist/pypy/doc/draft-dynamic-language-translation.txt	Fri Nov  4 18:02:03 2005
@@ -2062,6 +2062,8 @@
 different problems (e.g. the graphs have unstructured control flow, so
 they are difficult to render in a language with no ``goto`` equivalent).
 
+.. _`Generating C code`:
+
 The C back-end works itself again in two steps:
 
 * it first collects recursively all functions (i.e. their low-level flow

Modified: pypy/dist/pypy/doc/translation.txt
==============================================================================
--- pypy/dist/pypy/doc/translation.txt	(original)
+++ pypy/dist/pypy/doc/translation.txt	Fri Nov  4 18:02:03 2005
@@ -578,12 +578,12 @@
 are allocated in the heap, and they are always manipulated via pointers.
 (There is no equivalent to the C notion of local variable of a ``struct`` type.)
 
-Here is a quick tour::
+Here is a quick tour:
 
     >>> from pypy.rpython.lltypesystem.lltype import *
 
 Here are a few primitive low-level types, and the typeOf() function to figure
-them out::
+them out:
 
     >>> Signed
     <Signed>
@@ -595,7 +595,7 @@
     <Char>
 
 Let's say that we want to build a type "point", which is a structure with two
-integer fields "x" and "y"::
+integer fields "x" and "y":
 
     >>> POINT = GcStruct('point', ('x', Signed), ('y', Signed))
     >>> POINT
@@ -628,13 +628,13 @@
 testing, interactive exploring, etc.
 
 The argument to ``malloc()`` is the structure type directly, but it returns a
-pointer to the structure, as ``typeOf()`` tells you::
+pointer to the structure, as ``typeOf()`` tells you:
 
     >>> typeOf(p)
     <* GcStruct point { x: Signed, y: Signed }>
 
 For the purpose of creating structures with pointers to other structures, we can
-declare pointer types explicitly::
+declare pointer types explicitly:
 
     >>> typeOf(p) == Ptr(POINT)
     True



More information about the Pypy-commit mailing list