1451 |
{ |
{ |
1452 |
pcre_study_data *rsd = (pcre_study_data *)(extra->study_data); |
pcre_study_data *rsd = (pcre_study_data *)(extra->study_data); |
1453 |
rsd->size = byteflip(rsd->size, sizeof(rsd->size)); |
rsd->size = byteflip(rsd->size, sizeof(rsd->size)); |
1454 |
rsd->options = byteflip(rsd->options, sizeof(rsd->options)); |
rsd->flags = byteflip(rsd->flags, sizeof(rsd->flags)); |
1455 |
|
rsd->minlength = byteflip(rsd->minlength, sizeof(rsd->minlength)); |
1456 |
} |
} |
1457 |
} |
} |
1458 |
|
|
1629 |
else |
else |
1630 |
{ |
{ |
1631 |
uschar *start_bits = NULL; |
uschar *start_bits = NULL; |
1632 |
|
int minlength; |
1633 |
|
|
1634 |
|
new_info(re, extra, PCRE_INFO_MINLENGTH, &minlength); |
1635 |
|
fprintf(outfile, "Subject length lower bound = %d\n", minlength); |
1636 |
|
|
1637 |
new_info(re, extra, PCRE_INFO_FIRSTTABLE, &start_bits); |
new_info(re, extra, PCRE_INFO_FIRSTTABLE, &start_bits); |
|
|
|
1638 |
if (start_bits == NULL) |
if (start_bits == NULL) |
1639 |
fprintf(outfile, "No starting byte set\n"); |
fprintf(outfile, "No set of starting bytes\n"); |
1640 |
else |
else |
1641 |
{ |
{ |
1642 |
int i; |
int i; |
2155 |
{ |
{ |
2156 |
int workspace[1000]; |
int workspace[1000]; |
2157 |
for (i = 0; i < timeitm; i++) |
for (i = 0; i < timeitm; i++) |
2158 |
count = pcre_dfa_exec(re, NULL, (char *)bptr, len, start_offset, |
count = pcre_dfa_exec(re, extra, (char *)bptr, len, start_offset, |
2159 |
options | g_notempty, use_offsets, use_size_offsets, workspace, |
options | g_notempty, use_offsets, use_size_offsets, workspace, |
2160 |
sizeof(workspace)/sizeof(int)); |
sizeof(workspace)/sizeof(int)); |
2161 |
} |
} |
2218 |
else if (all_use_dfa || use_dfa) |
else if (all_use_dfa || use_dfa) |
2219 |
{ |
{ |
2220 |
int workspace[1000]; |
int workspace[1000]; |
2221 |
count = pcre_dfa_exec(re, NULL, (char *)bptr, len, start_offset, |
count = pcre_dfa_exec(re, extra, (char *)bptr, len, start_offset, |
2222 |
options | g_notempty, use_offsets, use_size_offsets, workspace, |
options | g_notempty, use_offsets, use_size_offsets, workspace, |
2223 |
sizeof(workspace)/sizeof(int)); |
sizeof(workspace)/sizeof(int)); |
2224 |
if (count == 0) |
if (count == 0) |