changeset 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 b593e47979a5
children abb6e10c1d05
files src/ChangeLog src/regex.c
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Mar 25 11:20:51 2006 +0000
+++ b/src/ChangeLog	Sat Mar 25 11:27:49 2006 +0000
@@ -1,3 +1,8 @@
+2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
+
+	* regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
+	current values found in GNU Emacs.
+
 2006-03-20  Marcus Crestani  <crestani@xemacs.org>
 
 	* dynarr.c (Dynarr_realloc): Malloc correct size.
--- 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