97
|
1 |
--- sed-4.1.5/lib/regcomp.c.patch02 2007-01-06 18:00:39.499812000 -0500
|
|
2 |
+++ sed-4.1.5/lib/regcomp.c 2007-01-06 18:01:39.082287000 -0500
|
|
3 |
@@ -558,7 +558,7 @@
|
|
4 |
static const bitset_t utf8_sb_map =
|
|
5 |
{
|
|
6 |
/* Set the first 128 bits. */
|
|
7 |
- [0 ... 0x80 / BITSET_WORD_BITS - 1] = BITSET_WORD_MAX
|
|
8 |
+ 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0,
|
|
9 |
};
|
|
10 |
#endif
|
|
11 |
|
|
12 |
--- sed-4.1.5/lib/regexec.c.patch02 2007-01-06 18:10:46.080694000 -0500
|
|
13 |
+++ sed-4.1.5/lib/regexec.c 2007-01-06 18:12:58.080470000 -0500
|
|
14 |
@@ -2894,7 +2894,7 @@
|
|
15 |
sizeof (re_dfastate_t *) * (path->alloc - old_alloc));
|
|
16 |
}
|
|
17 |
|
|
18 |
- str_idx = path->next_idx ?: top_str;
|
|
19 |
+ str_idx = path->next_idx ? path->next_idx : top_str;
|
|
20 |
|
|
21 |
/* Temporary modify MCTX. */
|
|
22 |
backup_state_log = mctx->state_log;
|
|
23 |
@@ -3286,6 +3288,10 @@
|
|
24 |
return REG_NOERROR;
|
|
25 |
}
|
|
26 |
|
|
27 |
+typedef int bool;
|
|
28 |
+#define false 0
|
|
29 |
+#define true 1
|
|
30 |
+
|
|
31 |
/* Build transition table for the state.
|
|
32 |
Return 1 if succeeded, otherwise return NULL. */
|
|
33 |
|