Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / lib-popt / poptint.h
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 */
4
5 #ifndef H_POPTINT
6 #define H_POPTINT
7
8 struct optionStackEntry {
9     int argc;
10     char ** argv;
11     int next;
12     char * nextArg;
13     char * nextCharArg;
14     struct poptAlias * currAlias;
15     int stuffed;
16 };
17
18 struct execEntry {
19     char * longName;
20     char shortName;
21     char * script;
22 };
23
24 struct poptContext_s {
25     struct optionStackEntry optionStack[POPT_OPTION_DEPTH], * os;
26     char ** leftovers;
27     int numLeftovers;
28     int nextLeftover;
29     const struct poptOption * options;
30     int restLeftover;
31     char * appName;
32     struct poptAlias * aliases;
33     int numAliases;
34     int flags;
35     struct execEntry * execs;
36     int numExecs;
37     char ** finalArgv;
38     int finalArgvCount;
39     int finalArgvAlloced;
40     struct execEntry * doExec;
41     char * execPath;
42     int execAbsolute;
43     char * otherHelp;
44 };
45
46 #ifdef HAVE_DGETTEXT
47 #define D_(dom, str) dgettext(dom, str)
48 #define POPT_(foo) D_("popt", foo)
49 #else
50 #define POPT_(foo) (foo)
51 #define D_(dom, str) (str)
52 #endif
53
54 #endif