| 665 | } |
| 666 | |
| 667 | int wrong_num_args(const char *name, leftv arg, int n) { |
| 668 | for (int i=1; i<=n; i++) { |
| 669 | if (!arg) { |
| 670 | report("%s: too few arguments", name); |
| 671 | return TRUE; |
| 672 | } |
| 673 | arg = arg->next; |
| 674 | } |
| 675 | if (arg) { |
| 676 | report("%s: too many arguments", name); |
| 677 | return TRUE; |
| 678 | } |
| 679 | return FALSE; |
| 680 | } |
| 681 | |
| 682 | int not_a_uri(const char *name, leftv arg) { |
| 683 | if (arg->Typ() != STRING_CMD) { |
no test coverage detected