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

arigo at codespeak.net arigo at codespeak.net
Wed May 17 18:06:44 CEST 2006


Author: arigo
Date: Wed May 17 18:06:43 2006
New Revision: 27373

Modified:
   pypy/dist/pypy/translator/c/primitive.py
Log:
(pedronis, arigo)

The nice helper function above was intended to be used.


Modified: pypy/dist/pypy/translator/c/primitive.py
==============================================================================
--- pypy/dist/pypy/translator/c/primitive.py	(original)
+++ pypy/dist/pypy/translator/c/primitive.py	Wed May 17 18:06:43 2006
@@ -185,9 +185,4 @@
                             (rcarith.CULong, 'unsigned long'),
                             (rcarith.CLonglong, 'long long'),
                             (rcarith.CULonglong, 'unsigned long long')]:
-        if ll_type in PrimitiveName:
-            continue
-        PrimitiveName[ll_type] = lambda value, db, c_name=c_name: '((%s) %dULL)' % (c_name, value)
-        PrimitiveType[ll_type] = '%s @'% c_name
-        PrimitiveErrorValue[ll_type] = '((%s) -1)'% c_name
-    
+        define_c_primitive(ll_type, c_name)



More information about the Pypy-commit mailing list