[pypy-svn] r48835 - in pypy/branch/new-genc-tests-wrapper/pypy/translator: c c/test tool

rxe at codespeak.net rxe at codespeak.net
Tue Nov 20 14:07:24 CET 2007


Author: rxe
Date: Tue Nov 20 14:07:23 2007
New Revision: 48835

Removed:
   pypy/branch/new-genc-tests-wrapper/pypy/translator/c/test/test_wrapping.py
   pypy/branch/new-genc-tests-wrapper/pypy/translator/tool/raymond.py
Modified:
   pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py
Log:
(cfbolz, rxe) remove the raymond tool

Modified: pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py	(original)
+++ pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py	Tue Nov 20 14:07:23 2007
@@ -37,7 +37,7 @@
         self.libraries = libraries
         self.exports = {}
 
-    def build_database(self, exports=[], pyobj_options=None):
+    def build_database(self, pyobj_options=None):
         translator = self.translator
 
         gcpolicyclass = self.get_gcpolicyclass()
@@ -75,20 +75,6 @@
         pf = self.getentrypointptr()
         pfname = db.get(pf)
         self.exports[self.entrypoint.func_name] = pf
-        for obj in exports:
-            if type(obj) is tuple:
-                objname, obj = obj
-            elif hasattr(obj, '__name__'):
-                objname = obj.__name__
-            else:
-                objname = None
-            po = self.getentrypointptr(obj)
-            poname = db.get(po)
-            objname = objname or poname
-            if objname in self.exports:
-                raise NameError, 'duplicate name in export: %s is %s and %s' % (
-                    objname, db.get(self.exports[objname]), poname)
-            self.exports[objname] = po
         db.complete()
 
         # add library dependencies



More information about the Pypy-commit mailing list