summaryrefslogtreecommitdiff
path: root/poptint.h
diff options
context:
space:
mode:
authorjbj <jbj>1999-07-27 22:05:43 +0000
committerjbj <jbj>1999-07-27 22:05:43 +0000
commitb5192759443afd456913c5fb971136a5123c33f1 (patch)
tree2fd97208d1f17bc59655a13bc4935aff80f35846 /poptint.h
parent7db9e0e430c82142c2db1eabe335708e68ff3bc4 (diff)
downloadlibpopt-b5192759443afd456913c5fb971136a5123c33f1.tar.gz
popt: heavy dose of const.
Diffstat (limited to 'poptint.h')
-rw-r--r--poptint.h22
1 files changed, 12 insertions, 10 deletions
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 <libintl.h>
#endif