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

mwh at codespeak.net mwh at codespeak.net
Wed May 17 17:59:48 CEST 2006


Author: mwh
Date: Wed May 17 17:59:47 2006
New Revision: 27372

Modified:
   pypy/dist/pypy/translator/c/primitive.py
Log:
argh!  i only made the least important of the three needed changes to
primitive.py :(


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 17:59:47 2006
@@ -113,7 +113,7 @@
 def name_weakgcaddress(value, db):
     assert isinstance(value, fakeweakaddress)
     assert value.ref is None # only weak NULL supported
-    return 'NULL'
+    return 'HIDE_POINTER(NULL)'
 
 
 PrimitiveName = {
@@ -141,7 +141,7 @@
     Bool:     'char @',
     Void:     'void @',
     Address:  'void* @',
-    WeakGcAddress:  'void* @',
+    WeakGcAddress:  'GC_hidden_pointer @',
     }
 
 PrimitiveErrorValue = {



More information about the Pypy-commit mailing list