From b5192759443afd456913c5fb971136a5123c33f1 Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 27 Jul 1999 22:05:43 +0000 Subject: popt: heavy dose of const. --- poptint.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'poptint.h') diff --git a/poptint.h b/poptint.h index 8fc6a84..62cc60a 100644 --- a/poptint.h +++ b/poptint.h @@ -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 #endif -- cgit v1.2.1