| 846 |
int i; |
int i; |
| 847 |
for (i = 0; i < pattern_count; i++) |
for (i = 0; i < pattern_count; i++) |
| 848 |
{ |
{ |
| 849 |
*mrc = pcre_exec(pattern_list[i], hints_list[i], matchptr, length, 0, 0, |
*mrc = pcre_exec(pattern_list[i], hints_list[i], matchptr, length, 0, |
| 850 |
offsets, OFFSET_SIZE); |
PCRE_NOTEMPTY, offsets, OFFSET_SIZE); |
| 851 |
if (*mrc >= 0) return TRUE; |
if (*mrc >= 0) return TRUE; |
| 852 |
if (*mrc == PCRE_ERROR_NOMATCH) continue; |
if (*mrc == PCRE_ERROR_NOMATCH) continue; |
| 853 |
fprintf(stderr, "pcregrep: pcre_exec() error %d while matching ", *mrc); |
fprintf(stderr, "pcregrep: pcre_exec() error %d while matching ", *mrc); |
| 1018 |
|
|
| 1019 |
|
|
| 1020 |
for (i = 0; i < jfriedl_XR; i++) |
for (i = 0; i < jfriedl_XR; i++) |
| 1021 |
match = (pcre_exec(pattern_list[0], hints_list[0], ptr, length, 0, 0, offsets, OFFSET_SIZE) >= 0); |
match = (pcre_exec(pattern_list[0], hints_list[0], ptr, length, 0, |
| 1022 |
|
PCRE_NOTEMPTY, offsets, OFFSET_SIZE) >= 0); |
| 1023 |
|
|
| 1024 |
if (gettimeofday(&end_time, &dummy) != 0) |
if (gettimeofday(&end_time, &dummy) != 0) |
| 1025 |
perror("bad gettimeofday"); |
perror("bad gettimeofday"); |