core-typeof-syntax: push up
[nedit-bw.git] / extend_regex_size.patch
blobef4e6844172585fa3028a3e27b8b858fa3b5eca4
1 ---
3 source/regularExp.c | 4 ++--
4 1 files changed, 2 insertions(+), 2 deletions(-)
6 diff --quilt old/source/regularExp.c new/source/regularExp.c
7 --- old/source/regularExp.c
8 +++ new/source/regularExp.c
9 @@ -450,11 +450,11 @@ static const char CVSID[] = "$Id: regula
10 of the actual compiled regex code, i.e. skipping over the MAGIC number and
11 the two counters at the front. */
13 #define REGEX_START_OFFSET 3
15 -#define MAX_COMPILED_SIZE 32767UL /* Largest size a compiled regex can be.
16 +#define MAX_COMPILED_SIZE 65535UL /* Largest size a compiled regex can be.
17 Probably could be 65535UL. */
19 /* Global work variables for `CompileRE'. */
21 static unsigned char *Reg_Parse; /* Input scan ptr (scans user's regex) */
22 @@ -612,11 +612,11 @@ regexp * CompileRE (const char *exp, cha
23 if (Reg_Size >= MAX_COMPILED_SIZE) {
24 /* Too big for NEXT pointers NEXT_PTR_SIZE bytes long to span.
25 This is a real issue since the first BRANCH node usually points
26 to the end of the compiled regex code. */
28 - sprintf (Error_Text, "regexp > %lu bytes", MAX_COMPILED_SIZE);
29 + sprintf (Error_Text, "regexp > %lu bytes\n", MAX_COMPILED_SIZE);
30 REG_FAIL (Error_Text);
33 /* Allocate memory. */