* Check whether given option is a group separator. * * @return index of the group definition that matched or -1 if none */
| 640 | * @return index of the group definition that matched or -1 if none |
| 641 | */ |
| 642 | static int match_group_separator(const OptionGroupDef *groups, int nb_groups, |
| 643 | const char *opt) |
| 644 | { |
| 645 | int i; |
| 646 | |
| 647 | for (i = 0; i < nb_groups; i++) { |
| 648 | const OptionGroupDef *p = &groups[i]; |
| 649 | if (p->sep && !strcmp(p->sep, opt)) |
| 650 | return i; |
| 651 | } |
| 652 | |
| 653 | return -1; |
| 654 | } |
| 655 | |
| 656 | /* |
| 657 | * Finish parsing an option group. |