diff options
author | jbj <jbj> | 1999-07-27 22:05:43 +0000 |
---|---|---|
committer | jbj <jbj> | 1999-07-27 22:05:43 +0000 |
commit | b5192759443afd456913c5fb971136a5123c33f1 (patch) | |
tree | 2fd97208d1f17bc59655a13bc4935aff80f35846 /poptint.h | |
parent | 7db9e0e430c82142c2db1eabe335708e68ff3bc4 (diff) | |
download | libpopt-b5192759443afd456913c5fb971136a5123c33f1.tar.gz |
popt: heavy dose of const.
Diffstat (limited to 'poptint.h')
-rw-r--r-- | poptint.h | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -7,42 +7,44 @@ struct optionStackEntry { int argc; - char ** argv; + const char ** argv; int next; - char * nextArg; - char * nextCharArg; + const char * nextArg; + const char * nextCharArg; struct poptAlias * currAlias; int stuffed; }; struct execEntry { - char * longName; + const char * longName; char shortName; - char * script; + const char * script; }; struct poptContext_s { struct optionStackEntry optionStack[POPT_OPTION_DEPTH], * os; - char ** leftovers; + const char ** leftovers; int numLeftovers; int nextLeftover; const struct poptOption * options; int restLeftover; - char * appName; + const char * appName; struct poptAlias * aliases; int numAliases; int flags; struct execEntry * execs; int numExecs; - char ** finalArgv; + const char ** finalArgv; int finalArgvCount; int finalArgvAlloced; struct execEntry * doExec; - char * execPath; + const char * execPath; int execAbsolute; - char * otherHelp; + const char * otherHelp; }; +#define xfree(_a) free((void *)_a) + #ifdef HAVE_LIBINTL_H #include <libintl.h> #endif |