summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-09 15:36:37 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-09 15:36:37 (GMT)
commitc87f5f4f7a4a548346877c043c68b62649963e27 (patch)
tree3bcaae6307224b16d7fe06701441557319154770 /PC
parentc03158bfc7056ad4ce48484183f0db7259dc9c8b (diff)
downloadcpython-c87f5f4f7a4a548346877c043c68b62649963e27.zip
cpython-c87f5f4f7a4a548346877c043c68b62649963e27.tar.gz
cpython-c87f5f4f7a4a548346877c043c68b62649963e27.tar.bz2
Set the max recursion limit to 5000 -- rather conservative (this uses
0.5 MB of the 1 MB available by default for stack on Win32 platforms).
Diffstat (limited to 'PC')
-rw-r--r--PC/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/PC/config.h b/PC/config.h
index 3b6e544..48c1179 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -229,6 +229,13 @@ typedef int pid_t;
#define SIZEOF_VOID_P 4
#endif
+/* Smaller stack size limit. (9500 would work too, but we're conservative.) */
+
+#ifndef MAX_RECURSION_DEPTH
+#define MAX_RECURSION_DEPTH 5000
+#endif
+
+
/* EXPERIMENTAL FEATURE: When CHECK_IMPORT_CASE is defined, check case of
imported modules against case of file; this causes "import String" to fail
with a NameError exception when it finds "string.py". Normally, you set