|
popt
1.14
|

Go to the source code of this file.
Data Structures | |
| struct | pbm_set |
| union | poptArg_u |
| A union to simplify opt->arg access without casting. More... | |
| struct | optionStackEntry |
| struct | poptContext_s |
Defines | |
| #define | POPT_fprintf fprintf |
| #define | __PBM_NBITS (8 * sizeof (__pbm_bits)) |
| #define | __PBM_IX(d) ((d) / __PBM_NBITS) |
| #define | __PBM_MASK(d) ((__pbm_bits) 1 << (((unsigned)(d)) % __PBM_NBITS)) |
| #define | __PBM_BITS(set) ((set)->bits) |
| #define | PBM_ALLOC(d) calloc(__PBM_IX (d) + 1, sizeof(__pbm_bits)) |
| #define | PBM_FREE(s) _free(s); |
| #define | PBM_SET(d, s) (__PBM_BITS (s)[__PBM_IX (d)] |= __PBM_MASK (d)) |
| #define | PBM_CLR(d, s) (__PBM_BITS (s)[__PBM_IX (d)] &= ~__PBM_MASK (d)) |
| #define | PBM_ISSET(d, s) ((__PBM_BITS (s)[__PBM_IX (d)] & __PBM_MASK (d)) != 0) |
| #define | poptArgType(_opt) ((_opt)->argInfo & POPT_ARG_MASK) |
| #define | F_ISSET(_opt, _FLAG) ((_opt)->argInfo & POPT_ARGFLAG_##_FLAG) |
| #define | LF_ISSET(_FLAG) (argInfo & POPT_ARGFLAG_##_FLAG) |
| #define | CBF_ISSET(_opt, _FLAG) ((_opt)->argInfo & POPT_CBFLAG_##_FLAG) |
| #define | poptSubstituteHelpI18N(opt) |
| #define | POPT_dgettext dgettext |
| #define | _(foo) foo |
| #define | D_(dom, str) str |
| #define | POPT_(foo) foo |
| #define | N_(foo) foo |
Typedefs | |
| typedef unsigned int | __pbm_bits |
| typedef const char * | poptString |
| Typedef's for string and array of strings. | |
| typedef poptString * | poptArgv |
| typedef union poptArg_u | poptArg |
| A union to simplify opt->arg access without casting. | |
Functions | |
| static void * | _free (const void *p) |
| Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. | |
| const char * | POPT_prev_char (const char *str) |
| const char * | POPT_next_char (const char *str) |
Definition in file poptint.h.
| #define __PBM_BITS | ( | set | ) | ((set)->bits) |
| #define __PBM_IX | ( | d | ) | ((d) / __PBM_NBITS) |
| #define __PBM_MASK | ( | d | ) | ((__pbm_bits) 1 << (((unsigned)(d)) % __PBM_NBITS)) |
| #define __PBM_NBITS (8 * sizeof (__pbm_bits)) |
| #define CBF_ISSET | ( | _opt, | |
| _FLAG | |||
| ) | ((_opt)->argInfo & POPT_CBFLAG_##_FLAG) |
Definition at line 78 of file poptint.h.
Referenced by findOption(), invokeCallbacksOPTION(), invokeCallbacksPOST(), and invokeCallbacksPRE().
| #define D_ | ( | dom, | |
| str | |||
| ) | str |
Definition at line 204 of file poptint.h.
Referenced by getArgDescrip(), singleOptionDefaultValue(), singleOptionHelp(), and singleTableHelp().
| #define F_ISSET | ( | _opt, | |
| _FLAG | |||
| ) | ((_opt)->argInfo & POPT_ARGFLAG_##_FLAG) |
Definition at line 76 of file poptint.h.
Referenced by findOption(), itemHelp(), itemUsage(), maxArgWidth(), poptGetNextOpt(), showShortOptions(), singleOptionHelp(), singleOptionUsage(), singleTableHelp(), and singleTableUsage().
| #define LF_ISSET | ( | _FLAG | ) | (argInfo & POPT_ARGFLAG_##_FLAG) |
Definition at line 77 of file poptint.h.
Referenced by poptSaveInt(), poptSaveLong(), and poptSaveLongLong().
| #define N_ | ( | foo | ) | foo |
Definition at line 208 of file poptint.h.
Referenced by getArgDescrip().
| #define PBM_ALLOC | ( | d | ) | calloc(__PBM_IX (d) + 1, sizeof(__pbm_bits)) |
Definition at line 42 of file poptint.h.
Referenced by findNextArg(), and poptStripArg().
| #define PBM_CLR | ( | d, | |
| s | |||
| ) | (__PBM_BITS (s)[__PBM_IX (d)] &= ~__PBM_MASK (d)) |
Definition at line 43 of file poptint.h.
Referenced by cleanOSE(), poptFreeContext(), and poptResetContext().
| #define PBM_ISSET | ( | d, | |
| s | |||
| ) | ((__PBM_BITS (s)[__PBM_IX (d)] & __PBM_MASK (d)) != 0) |
Definition at line 46 of file poptint.h.
Referenced by findNextArg(), poptGetNextOpt(), and poptStrippedArgv().
| #define PBM_SET | ( | d, | |
| s | |||
| ) | (__PBM_BITS (s)[__PBM_IX (d)] |= __PBM_MASK (d)) |
Definition at line 44 of file poptint.h.
Referenced by findNextArg(), and poptStripArg().
| #define POPT_ | ( | foo | ) | foo |
Definition at line 205 of file poptint.h.
Referenced by getArgDescrip(), poptGetNextOpt(), poptPrintHelp(), poptStrerror(), showHelpIntro(), and strerror().
| #define POPT_dgettext dgettext |
| #define POPT_fprintf fprintf |
Definition at line 13 of file poptint.h.
Referenced by poptPrintHelp(), showHelpIntro(), singleOptionHelp(), and singleTableHelp().
| #define poptArgType | ( | _opt | ) | ((_opt)->argInfo & POPT_ARG_MASK) |
Definition at line 75 of file poptint.h.
Referenced by findOption(), getArgDescrip(), invokeCallbacksOPTION(), invokeCallbacksPOST(), invokeCallbacksPRE(), itemUsage(), maxArgWidth(), poptGetNextOpt(), showShortOptions(), singleOptionDefaultValue(), singleOptionHelp(), singleTableHelp(), and singleTableUsage().
| #define poptSubstituteHelpI18N | ( | opt | ) |
{ /*@-observertrans@*/ \
if ((opt) == poptHelpOptions) (opt) = poptHelpOptionsI18N; \
/*@=observertrans@*/ }
Definition at line 81 of file poptint.h.
Referenced by findOption(), invokeCallbacksOPTION(), invokeCallbacksPOST(), and invokeCallbacksPRE().
| typedef unsigned int __pbm_bits |
| typedef poptString* poptArgv |
| typedef const char* poptString |
| static void* _free | ( | const void * | p | ) | [inline, static] |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
| p | memory to free |
| NULL | always |
Definition at line 21 of file poptint.h.
Referenced by cleanOSE(), poptFreeContext(), poptFreeItems(), poptGetNextOpt(), poptResetContext(), poptSetExecPath(), poptSetOtherOptionHelp(), singleOptionDefaultValue(), and singleOptionHelp().
| const char* POPT_next_char | ( | const char * | str | ) |
Definition at line 32 of file poptint.c.
Referenced by singleOptionHelp(), and stringDisplayWidth().
| const char* POPT_prev_char | ( | const char * | str | ) |
Definition at line 20 of file poptint.c.
Referenced by singleOptionHelp().
1.7.6.1