diff src/regex.c @ 3300:a034c4bd7877

[xemacs-hg @ 2006-03-25 11:27:43 by malcolmp] regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the current values found in GNU Emacs.
author malcolmp
date Sat, 25 Mar 2006 11:27:49 +0000
parents cd00e5eeb22a
children 8418d1ad4944
line wrap: on
line diff
--- a/src/regex.c	Sat Mar 25 11:20:51 2006 +0000
+++ b/src/regex.c	Sat Mar 25 11:27:49 2006 +0000
@@ -1314,7 +1314,7 @@
    when matching.  If this number is exceeded, we allocate more
    space, so it is not a hard limit.  */
 #ifndef INIT_FAILURE_ALLOC
-#define INIT_FAILURE_ALLOC 5
+#define INIT_FAILURE_ALLOC 20
 #endif
 
 /* Roughly the maximum number of failure points on the stack.  Would be
@@ -1324,9 +1324,9 @@
 #if defined (MATCH_MAY_ALLOCATE)
 /* 4400 was enough to cause a crash on Alpha OSF/1,
    whose default stack limit is 2mb.  */
-int re_max_failures = 20000;
+int re_max_failures = 40000;
 #else
-int re_max_failures = 2000;
+int re_max_failures = 4000;
 #endif
 
 union fail_stack_elt