| 2614 | } |
| 2615 | |
| 2616 | static int is_command(enum todo_command command, const char **bol) |
| 2617 | { |
| 2618 | const char *str = todo_command_info[command].str; |
| 2619 | const char nick = todo_command_info[command].c; |
| 2620 | const char *p = *bol; |
| 2621 | |
| 2622 | if ((skip_prefix(p, str, &p) || (nick && *p++ == nick)) && |
| 2623 | (*p == ' ' || *p == '\t' || *p == '\n' || *p == '\r' || !*p)) { |
| 2624 | *bol = p; |
| 2625 | return 1; |
| 2626 | } |
| 2627 | return 0; |
| 2628 | } |
| 2629 | |
| 2630 | static int check_label_or_ref_arg(enum todo_command command, const char *arg) |
| 2631 | { |
no outgoing calls
no test coverage detected