[pypy-svn] r7463 - pypy/trunk/src/pypy/translator

arigo at codespeak.net arigo at codespeak.net
Fri Nov 19 18:57:21 CET 2004


Author: arigo
Date: Fri Nov 19 18:57:20 2004
New Revision: 7463

Modified:
   pypy/trunk/src/pypy/translator/genc.h
Log:
Made the C code compatible with old compilers.


Modified: pypy/trunk/src/pypy/translator/genc.h
==============================================================================
--- pypy/trunk/src/pypy/translator/genc.h	(original)
+++ pypy/trunk/src/pypy/translator/genc.h	Fri Nov 19 18:57:20 2004
@@ -215,7 +215,7 @@
 		Py_XDECREF(locals_lineno); \
 		locals = NULL; \
 	} \
-	PyThreadState *tstate = PyThreadState_GET(); \
+	{ PyThreadState *tstate = PyThreadState_GET(); \
 	PyFrameObject *f; \
 	if (c == NULL || locals == NULL) { \
 		r = NULL; \
@@ -256,7 +256,7 @@
 	Py_DECREF(f); \
 	if (r == NULL) { \
 		goto err; \
-	} \
+	} } \
 } while (0);
 
 #else



More information about the Pypy-commit mailing list