| 296 |
|
|
| 297 |
|
|
| 298 |
/************************************************* |
/************************************************* |
| 299 |
|
* Exit from the program * |
| 300 |
|
*************************************************/ |
| 301 |
|
|
| 302 |
|
/* If there has been a resource error, give a suitable message. |
| 303 |
|
|
| 304 |
|
Argument: the return code |
| 305 |
|
Returns: does not return |
| 306 |
|
*/ |
| 307 |
|
|
| 308 |
|
static void |
| 309 |
|
pcregrep_exit(int rc) |
| 310 |
|
{ |
| 311 |
|
if (resource_error) |
| 312 |
|
{ |
| 313 |
|
fprintf(stderr, "pcregrep: Error %d or %d means that a resource limit " |
| 314 |
|
"was exceeded.\n", PCRE_ERROR_MATCHLIMIT, PCRE_ERROR_RECURSIONLIMIT); |
| 315 |
|
fprintf(stderr, "pcregrep: Check your regex for nested unlimited loops.\n"); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
exit(rc); |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
|
| 322 |
|
/************************************************* |
| 323 |
* OS-specific functions * |
* OS-specific functions * |
| 324 |
*************************************************/ |
*************************************************/ |
| 325 |
|
|
| 589 |
|
|
| 590 |
|
|
| 591 |
/************************************************* |
/************************************************* |
|
* Exit from the program * |
|
|
*************************************************/ |
|
|
|
|
|
/* If there has been a resource error, give a suitable message. |
|
|
|
|
|
Argument: the return code |
|
|
Returns: does not return |
|
|
*/ |
|
|
|
|
|
static void |
|
|
pcregrep_exit(int rc) |
|
|
{ |
|
|
if (resource_error) |
|
|
{ |
|
|
fprintf(stderr, "pcregrep: Error %d or %d means that a resource limit " |
|
|
"was exceeded.\n", PCRE_ERROR_MATCHLIMIT, PCRE_ERROR_RECURSIONLIMIT); |
|
|
fprintf(stderr, "pcregrep: Check your regex for nested unlimited loops.\n"); |
|
|
} |
|
|
|
|
|
exit(rc); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/************************************************* |
|
| 592 |
* Read one line of input * |
* Read one line of input * |
| 593 |
*************************************************/ |
*************************************************/ |
| 594 |
|
|