[Python-checkins] python/dist/src/Python ceval.c,2.421,2.422
perky at users.sourceforge.net
perky at users.sourceforge.net
Mon Apr 4 17:49:13 CEST 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10544/Python
Modified Files:
ceval.c
Log Message:
Make a handy macro, Py_DEFAULT_RECURSION_LIMIT to allow to define
a default value of recursion limit from build systems. 1000 levels
are still too high for some 64bit systems.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.421
retrieving revision 2.422
diff -u -d -r2.421 -r2.422
--- ceval.c 18 Jan 2005 15:56:11 -0000 2.421
+++ ceval.c 4 Apr 2005 15:49:02 -0000 2.422
@@ -417,8 +417,11 @@
/* The interpreter's recursion limit */
-static int recursion_limit = 1000;
-int _Py_CheckRecursionLimit = 1000;
+#ifndef Py_DEFAULT_RECURSION_LIMIT
+#define Py_DEFAULT_RECURSION_LIMIT 1000
+#endif
+static int recursion_limit = Py_DEFAULT_RECURSION_LIMIT;
+int _Py_CheckRecursionLimit = Py_DEFAULT_RECURSION_LIMIT;
int
Py_GetRecursionLimit(void)
More information about the Python-checkins
mailing list