| 718 | } |
| 719 | |
| 720 | static void |
| 721 | regexp_error (struct control *p, intmax_t repetition, bool ignore) |
| 722 | { |
| 723 | fprintf (stderr, _("%s: %s: match not found"), |
| 724 | program_name, quote (global_argv[p->argnum])); |
| 725 | |
| 726 | if (repetition) |
| 727 | fprintf (stderr, _(" on repetition %jd\n"), repetition); |
| 728 | else |
| 729 | fprintf (stderr, "\n"); |
| 730 | |
| 731 | if (!ignore) |
| 732 | { |
| 733 | dump_rest_of_file (); |
| 734 | close_output_file (); |
| 735 | } |
| 736 | cleanup_fatal (); |
| 737 | } |
| 738 | |
| 739 | /* Read the input until a line matches the regexp in P, outputting |
| 740 | it unless P->IGNORE is true. |
no test coverage detected