Go to the source code of this file.
Data Structures | |
struct | pbm_set |
struct | optionStackEntry |
struct | poptContext_s |
Defines | |
#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 | _(foo) foo |
#define | D_(dom, str) str |
#define | POPT_(foo) foo |
#define | N_(foo) foo |
Typedefs | |
typedef unsigned int | __pbm_bits |
Functions | |
static void * | _free (const void *p) |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. |
Definition in file poptint.h.
#define __PBM_MASK | ( | d | ) | ((__pbm_bits) 1 << (((unsigned)(d)) % __PBM_NBITS)) |
#define __PBM_NBITS (8 * sizeof (__pbm_bits)) |
#define D_ | ( | dom, | |||
str | ) | str |
Definition at line 110 of file poptint.h.
Referenced by getArgDescrip(), singleOptionDefaultValue(), singleOptionHelp(), and singleTableHelp().
#define PBM_ALLOC | ( | d | ) | calloc(__PBM_IX (d) + 1, sizeof(__pbm_bits)) |
#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 PBM_SET | ( | d, | |||
s | ) | (__PBM_BITS (s)[__PBM_IX (d)] |= __PBM_MASK (d)) |
#define POPT_ | ( | foo | ) | foo |
Definition at line 111 of file poptint.h.
Referenced by getArgDescrip(), poptGetNextOpt(), poptPrintHelp(), poptStrerror(), showHelpIntro(), and strerror().
typedef unsigned int __pbm_bits |
static void* _free | ( | const void * | p | ) | [inline, static] |