# HG changeset patch # User malcolmp # Date 1143286069 0 # Node ID a034c4bd78773f6e54ac31d849bc3125ce6ea2a9 # Parent b593e47979a53c08ad6cd0054f1d4dce900cbc33 [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. diff -r b593e47979a5 -r a034c4bd7877 src/ChangeLog --- 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 + + * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the + current values found in GNU Emacs. + 2006-03-20 Marcus Crestani * dynarr.c (Dynarr_realloc): Malloc correct size. diff -r b593e47979a5 -r a034c4bd7877 src/regex.c --- 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