diff options
author | ewt <ewt> | 1997-02-17 20:20:59 +0000 |
---|---|---|
committer | ewt <ewt> | 1997-02-17 20:20:59 +0000 |
commit | 272ecab3ef6521cc2f6523126656db4c01db2390 (patch) | |
tree | fc0324842e6826e8a321649d2857145de44b429a | |
parent | 833c127b450efac952c1490d4619dcdf66ad3534 (diff) | |
download | libpopt-272ecab3ef6521cc2f6523126656db4c01db2390.tar.gz |
1) added poptStuffArgs()
2) added shortName to popt aliases
-rw-r--r-- | popt.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -25,9 +25,10 @@ struct poptOption { }; struct poptAlias { - const char * longName; + char * longName; /* may be NULL */ + char shortName; /* may be '\0' */ int argc; - char ** argv; + char ** argv; /* must be free()able */ }; typedef struct poptContext_s * poptContext; @@ -47,6 +48,7 @@ char ** poptGetArgs(poptContext con); /* returns the option which caused the most recent error */ char * poptBadOption(poptContext con, int flags); void poptFreeContext(poptContext con); +int poptStuffArgs(poptContext con, char ** argv); int poptAddAlias(poptContext con, struct poptAlias alias, int flags); int poptReadConfigFile(poptContext con, char * fn); /* like above, but reads /etc/popt and $HOME/.popt along with environment |