User: vins
Date: 06/03/31 03:29:06
Branch: xemacs/src release-21-4
Modified: xemacs/src ChangeLog regex.c
Log:
Bump INIT_FAILURE_ALLOC and re_max_failures to the current values found
in GNU Emacs.
Revision Changes Path
1.290.2.109 +5 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.290.2.108
retrieving revision 1.290.2.109
diff -u -p -r1.290.2.108 -r1.290.2.109
--- ChangeLog 2006/03/21 03:12:29 1.290.2.108
+++ ChangeLog 2006/03/31 01:28:57 1.290.2.109
@@ -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-17 Vin Shelton <acs(a)xemacs.org>
* dialog-msw.c (handle_directory_dialog_box): Don't declare
1.25.2.14 +3 -3 XEmacs/xemacs/src/regex.c
Index: regex.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/regex.c,v
retrieving revision 1.25.2.13
retrieving revision 1.25.2.14
diff -u -p -r1.25.2.13 -r1.25.2.14
--- regex.c 2005/01/31 02:55:30 1.25.2.13
+++ regex.c 2006/03/31 01:29:00 1.25.2.14
@@ -1145,7 +1145,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
@@ -1155,9 +1155,9 @@ static const char *re_error_msgid[] =
#if defined (MATCH_MAY_ALLOCATE) || defined (REGEX_MALLOC)
/* 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