| 1664 | } |
| 1665 | |
| 1666 | int poptStuffArgs(poptContext con, const char ** argv) |
| 1667 | { |
| 1668 | int argc; |
| 1669 | int rc; |
| 1670 | |
| 1671 | if ((con->os - con->optionStack) == POPT_OPTION_DEPTH) |
| 1672 | return POPT_ERROR_OPTSTOODEEP; |
| 1673 | |
| 1674 | for (argc = 0; argv[argc]; argc++) |
| 1675 | {}; |
| 1676 | |
| 1677 | con->os++; |
| 1678 | con->os->next = 0; |
| 1679 | con->os->nextArg = NULL; |
| 1680 | con->os->nextCharArg = NULL; |
| 1681 | con->os->currAlias = NULL; |
| 1682 | rc = poptDupArgv(argc, argv, &con->os->argc, &con->os->argv); |
| 1683 | con->os->argb = NULL; |
| 1684 | con->os->stuffed = 1; |
| 1685 | |
| 1686 | return rc; |
| 1687 | } |
| 1688 | |
| 1689 | const char * poptGetInvocationName(poptContext con) |
| 1690 | { |
nothing calls this directly
no test coverage detected