[pypy-svn] r12724 - pypy/dist/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Sun May 22 21:47:58 CEST 2005


Author: arigo
Date: Sun May 22 21:47:58 2005
New Revision: 12724

Removed:
   pypy/dist/pypy/translator/c/repr.py
   pypy/dist/pypy/translator/c/struct.py
Log:
Old tentatives, no longer relevant.


Deleted: /pypy/dist/pypy/translator/c/repr.py
==============================================================================
--- /pypy/dist/pypy/translator/c/repr.py	Sun May 22 21:47:58 2005
+++ (empty file)
@@ -1,17 +0,0 @@
-
-class Repr:
-    """Base class: a representation of a constant value of a specific type.
-    Each Repr instance knows how to generate C code that defines the
-    corresponding value, and which C expression can be used to read it.
-    """
-    def __init__(self, db, lowleveltype, value):
-        self.db = db
-        self.lowleveltype = lowleveltype
-        self.value = value
-
-    def follow_references(self):
-        pass
-
-    def follow_type_references(db, lowleveltype):
-        pass
-    follow_type_references = staticmethod(follow_type_references)

Deleted: /pypy/dist/pypy/translator/c/struct.py
==============================================================================
--- /pypy/dist/pypy/translator/c/struct.py	Sun May 22 21:47:58 2005
+++ (empty file)
@@ -1,12 +0,0 @@
-from pypy.rpython.lltypes import *
-from pypy.translator.c.repr import Repr
-
-
-class ReprStruct(Repr):
-
-    def follow_type_references(db, lowleveltype):
-        T = lowleveltype.TO
-        assert isinstance(T, Struct)
-        for name in T._names:
-            db.getlltype(T._flds[name])
-    follow_type_references = staticmethod(follow_type_references)



More information about the Pypy-commit mailing list