Editor: sync with new global config location (user menu and syntax files).
[midnight-commander.git] / src / poptint.h
blob65778f898430cf82a4e40794f2fc2295499c99d1
1 /* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
2 file accompanying popt source distributions, available from
3 ftp://ftp.redhat.com/pub/code/popt */
5 /** \file poptint.h
6 * \brief Header: a module (internal?) for popt
7 */
9 #ifndef MC_POPTINT_H
10 #define MC_POPTINT_H
12 struct optionStackEntry {
13 int argc;
14 char ** argv;
15 int next;
16 char * nextArg;
17 char * nextCharArg;
18 struct poptAlias * currAlias;
19 int stuffed;
22 struct execEntry {
23 char * longName;
24 char shortName;
25 char * script;
28 struct poptContext_s {
29 struct optionStackEntry optionStack[POPT_OPTION_DEPTH], * os;
30 char ** leftovers;
31 int numLeftovers;
32 int nextLeftover;
33 const struct poptOption * options;
34 int restLeftover;
35 char * appName;
36 struct poptAlias * aliases;
37 int numAliases;
38 int flags;
39 struct execEntry * execs;
40 int numExecs;
41 char ** finalArgv;
42 int finalArgvCount;
43 int finalArgvAlloced;
44 struct execEntry * doExec;
45 char * execPath;
46 int execAbsolute;
47 char * otherHelp;
50 #define D_(dom, str) _(str)
51 #define POPT_(foo) _(foo)
53 #endif