[pypy-svn] r23674 - pypy/branch/njriley-trans/pypy/translator/c

njriley at codespeak.net njriley at codespeak.net
Sun Feb 26 06:05:26 CET 2006


Author: njriley
Date: Sun Feb 26 06:05:21 2006
New Revision: 23674

Modified:
   pypy/branch/njriley-trans/pypy/translator/c/gc.py
Log:
Replaced another direct exception access with _RPySetException.


Modified: pypy/branch/njriley-trans/pypy/translator/c/gc.py
==============================================================================
--- pypy/branch/njriley-trans/pypy/translator/c/gc.py	(original)
+++ pypy/branch/njriley-trans/pypy/translator/c/gc.py	Sun Feb 26 06:05:21 2006
@@ -223,8 +223,7 @@
     def OP_GC_FETCH_EXCEPTION(self, funcgen, op, err):
         result = funcgen.expr(op.result)
         return ('%s = rpython_exc_value;\n'
-                'rpython_exc_type = NULL;\n'
-                'rpython_exc_value = NULL;') % (result, )
+                '_RPySetException(NULL, NULL)') % (result, )
 
     def OP_GC_RESTORE_EXCEPTION(self, funcgen, op, err):
         argh = funcgen.expr(op.args[0])



More information about the Pypy-commit mailing list