Link Here
|
|
|
1 |
# |
2 |
# Required for gcc 2.95 since it is pre-C99 |
3 |
# and doesn't handle the 'bool' datatype properly. |
4 |
# |
5 |
--- lib/regexec.c.orig Sat Apr 15 20:53:36 2006 |
6 |
+++ lib/regexec.c Sat Apr 15 21:17:03 2006 |
7 |
@@ -3296,8 +3296,7 @@ |
8 |
reg_errcode_t err; |
9 |
int i, j, ch, need_word_trtable = 0; |
10 |
bitset_word_t elem, mask; |
11 |
- bool dests_node_malloced = false; |
12 |
- bool dest_states_malloced = false; |
13 |
+ int dests_node_malloced = 0, dest_states_malloced = 0; |
14 |
int ndests; /* Number of the destination states from `state'. */ |
15 |
re_dfastate_t **trtable; |
16 |
re_dfastate_t **dest_states = NULL, **dest_states_word, **dest_states_nl; |
17 |
@@ -3322,7 +3321,7 @@ |
18 |
dests_alloc = re_malloc (struct dests_alloc, 1); |
19 |
if (BE (dests_alloc == NULL, 0)) |
20 |
return 0; |
21 |
- dests_node_malloced = true; |
22 |
+ dests_node_malloced = 1; |
23 |
} |
24 |
dests_node = dests_alloc->dests_node; |
25 |
dests_ch = dests_alloc->dests_ch; |
26 |
@@ -3371,7 +3370,7 @@ |
27 |
free (dests_alloc); |
28 |
return 0; |
29 |
} |
30 |
- dest_states_malloced = true; |
31 |
+ dest_states_malloced = 1; |
32 |
} |
33 |
dest_states_word = dest_states + ndests; |
34 |
dest_states_nl = dest_states_word + ndests; |
35 |
@@ -3576,7 +3575,7 @@ |
36 |
{ |
37 |
if (constraint & NEXT_NEWLINE_CONSTRAINT) |
38 |
{ |
39 |
- bool accepts_newline = bitset_contain (accepts, NEWLINE_CHAR); |
40 |
+ int accepts_newline = bitset_contain (accepts, NEWLINE_CHAR); |
41 |
bitset_empty (accepts); |
42 |
if (accepts_newline) |
43 |
bitset_set (accepts, NEWLINE_CHAR); |