User: malcolmp
Date: 06/03/25 12:27:53
Modified: xemacs/src ChangeLog regex.c
Log:
regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the current values
found in GNU Emacs.
Revision Changes Path
1.930 +5 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.929
retrieving revision 1.930
diff -u -p -r1.929 -r1.930
--- ChangeLog 2006/03/20 21:20:19 1.929
+++ ChangeLog 2006/03/25 11:27:43 1.930
@@ -1,3 +1,8 @@
+2006-03-21 Malcolm Purvis <malcolmp(a)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(a)xemacs.org>
* dynarr.c (Dynarr_realloc): Malloc correct size.
1.57 +3 -3 XEmacs/xemacs/src/regex.c
Index: regex.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/regex.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -p -r1.56 -r1.57
--- regex.c 2005/03/09 04:59:31 1.56
+++ regex.c 2006/03/25 11:27:49 1.57
@@ -1314,7 +1314,7 @@ static const char *re_error_msgid[] =
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 @@ static const char *re_error_msgid[] =
#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
Show replies by date