| 1007 | /* Return a new, initialized control record. */ |
| 1008 | |
| 1009 | static struct control * |
| 1010 | new_control_record (void) |
| 1011 | { |
| 1012 | static idx_t control_allocated = 0; /* Total space allocated. */ |
| 1013 | struct control *p; |
| 1014 | |
| 1015 | if (control_used == control_allocated) |
| 1016 | controls = xpalloc (controls, &control_allocated, 1, -1, sizeof *controls); |
| 1017 | p = &controls[control_used++]; |
| 1018 | p->regexpr = false; |
| 1019 | p->repeat = 0; |
| 1020 | p->repeat_forever = false; |
| 1021 | p->lines_required = 0; |
| 1022 | p->offset = 0; |
| 1023 | return p; |
| 1024 | } |
| 1025 | |
| 1026 | /* Check if there is a numeric offset after a regular expression. |
| 1027 | STR is the entire command line argument. |
no outgoing calls
no test coverage detected