1408 |
suffix[process_options]); |
suffix[process_options]); |
1409 |
pattern_list[pattern_count] = |
pattern_list[pattern_count] = |
1410 |
pcre_compile(buffer, options, &error, &errptr, pcretables); |
pcre_compile(buffer, options, &error, &errptr, pcretables); |
1411 |
if (pattern_list[pattern_count++] != NULL) return TRUE; |
if (pattern_list[pattern_count] != NULL) |
1412 |
|
{ |
1413 |
|
pattern_count++; |
1414 |
|
return TRUE; |
1415 |
|
} |
1416 |
|
|
1417 |
/* Handle compile errors */ |
/* Handle compile errors */ |
1418 |
|
|
1494 |
int rc = 1; |
int rc = 1; |
1495 |
int pcre_options = 0; |
int pcre_options = 0; |
1496 |
int cmd_pattern_count = 0; |
int cmd_pattern_count = 0; |
1497 |
|
int hint_count = 0; |
1498 |
int errptr; |
int errptr; |
1499 |
BOOL only_one_at_top; |
BOOL only_one_at_top; |
1500 |
char *patterns[MAX_PATTERN_COUNT]; |
char *patterns[MAX_PATTERN_COUNT]; |
1947 |
fprintf(stderr, "pcregrep: Error while studying regex%s: %s\n", s, error); |
fprintf(stderr, "pcregrep: Error while studying regex%s: %s\n", s, error); |
1948 |
goto EXIT2; |
goto EXIT2; |
1949 |
} |
} |
1950 |
|
hint_count++; |
1951 |
} |
} |
1952 |
|
|
1953 |
/* If there are include or exclude patterns, compile them. */ |
/* If there are include or exclude patterns, compile them. */ |
2007 |
} |
} |
2008 |
if (hints_list != NULL) |
if (hints_list != NULL) |
2009 |
{ |
{ |
2010 |
for (i = 0; i < pattern_count; i++) free(hints_list[i]); |
for (i = 0; i < hint_count; i++) free(hints_list[i]); |
2011 |
free(hints_list); |
free(hints_list); |
2012 |
} |
} |
2013 |
return rc; |
return rc; |