| 1614 | } |
| 1615 | |
| 1616 | const char * poptBadOption(poptContext con, unsigned int flags) |
| 1617 | { |
| 1618 | struct optionStackEntry * os = NULL; |
| 1619 | const char *badOpt = NULL; |
| 1620 | |
| 1621 | if (con != NULL) { |
| 1622 | /* Stupid hack to return something semi-meaningful from exec failure */ |
| 1623 | if (con->execFail) { |
| 1624 | badOpt = con->execFail; |
| 1625 | } else { |
| 1626 | os = (flags & POPT_BADOPTION_NOALIAS) ? con->optionStack : con->os; |
| 1627 | badOpt = os->argv[os->next - 1]; |
| 1628 | } |
| 1629 | } |
| 1630 | |
| 1631 | return badOpt; |
| 1632 | } |
| 1633 | |
| 1634 | const char * poptStrerror(const int error) |
| 1635 | { |
no outgoing calls