source: trunk/third/pkgconfig/poptint.h @ 17209

Revision 17209, 1.2 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17208, which included commits to RCS files with non-trunk default branches.
Line 
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
8struct 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
18struct execEntry {
19    char * longName;
20    char shortName;
21    char * script;
22};
23
24struct 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_LIBINTL_H
47#include <libintl.h>
48#endif
49
50#ifdef HAVE_GETTEXT
51#define _(foo) gettext(foo)
52#else
53#define _(foo) (foo)
54#endif
55
56#ifdef HAVE_DGETTEXT
57#define POPT_(foo) dgettext("popt", foo)
58#else
59#define POPT_(foo) (foo)
60#endif
61
62#define N_(foo) (foo)
63
64#endif
Note: See TracBrowser for help on using the repository browser.