popt 1.13
Data Structures | Defines | Typedefs | Functions
poptint.h File Reference
This graph shows which files directly or indirectly include this file:

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.
char * POPT_prev_char (const char *str)
char * POPT_next_char (const char *str)
int POPT_fprintf (FILE *stream, const char *format,...)

Define Documentation

#define _ (   foo)    foo

Definition at line 104 of file poptint.h.

#define __PBM_BITS (   set)    ((set)->bits)

Definition at line 37 of file poptint.h.

#define __PBM_IX (   d)    ((d) / __PBM_NBITS)

Definition at line 30 of file poptint.h.

#define __PBM_MASK (   d)    ((__pbm_bits) 1 << (((unsigned)(d)) % __PBM_NBITS))

Definition at line 31 of file poptint.h.

#define __PBM_NBITS   (8 * sizeof (__pbm_bits))

Definition at line 29 of file poptint.h.

#define D_ (   dom,
  str 
)    str
#define N_ (   foo)    foo

Definition at line 115 of file poptint.h.

Referenced by getArgDescrip().

#define PBM_ALLOC (   d)    calloc(__PBM_IX (d) + 1, sizeof(__pbm_bits))

Definition at line 39 of file poptint.h.

Referenced by findNextArg(), and poptStripArg().

#define PBM_CLR (   d,
 
)    (__PBM_BITS (s)[__PBM_IX (d)] &= ~__PBM_MASK (d))

Definition at line 42 of file poptint.h.

#define PBM_FREE (   s)    _free(s);

Definition at line 40 of file poptint.h.

Referenced by cleanOSE(), poptFreeContext(), and poptResetContext().

#define PBM_ISSET (   d,
 
)    ((__PBM_BITS (s)[__PBM_IX (d)] & __PBM_MASK (d)) != 0)

Definition at line 43 of file poptint.h.

Referenced by findNextArg(), poptGetNextOpt(), and poptStrippedArgv().

#define PBM_SET (   d,
 
)    (__PBM_BITS (s)[__PBM_IX (d)] |= __PBM_MASK (d))

Definition at line 41 of file poptint.h.

Referenced by findNextArg(), and poptStripArg().

#define POPT_ (   foo)    foo

Typedef Documentation

typedef unsigned int __pbm_bits

Definition at line 27 of file poptint.h.


Function Documentation

static void* _free ( const void *  p) [inline, static]

Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.

Parameters:
pmemory to free
Return values:
NULLalways

Definition at line 18 of file poptint.h.

Referenced by cleanOSE(), poptFreeContext(), poptGetNextOpt(), poptResetContext(), poptSetExecPath(), poptSetOtherOptionHelp(), singleOptionDefaultValue(), and singleOptionHelp().

int POPT_fprintf ( FILE *  stream,
const char *  format,
  ... 
)
char* POPT_next_char ( const char *  str)

Referenced by singleOptionHelp().

char* POPT_prev_char ( const char *  str)

Referenced by singleOptionHelp().


Generated for popt by  doxygen 1.7.4