* Check whether given option is a group separator. * * @return index of the group definition that matched or -1 if none */
| 669 | * @return index of the group definition that matched or -1 if none |
| 670 | */ |
| 671 | static int match_group_separator(const OptionGroupDef *groups, int nb_groups, |
| 672 | const char *opt) |
| 673 | { |
| 674 | int i; |
| 675 | |
| 676 | for (i = 0; i < nb_groups; i++) { |
| 677 | const OptionGroupDef *p = &groups[i]; |
| 678 | if (p->sep && !strcmp(p->sep, opt)) |
| 679 | return i; |
| 680 | } |
| 681 | |
| 682 | return -1; |
| 683 | } |
| 684 | |
| 685 | /* |
| 686 | * Finish parsing an option group. |