Mixes for Privacy and Anonymity in the Internet
Classes | Macros | Typedefs
poptint.h File Reference

Classes

struct  pbm_set
 
struct  optionStackEntry
 
struct  execEntry
 
struct  poptContext_s
 

Macros

#define __PBM_NBITS   (8 * sizeof (__pbm_bits))
 
#define __PBM_IX(d)   ((d) / __PBM_NBITS)
 
#define __PBM_MASK(d)   ((__pbm_bits) 1 << ((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 xfree(_a)   free((void *)_a)
 
#define _(foo)   (foo)
 
#define POPT_(foo)   (foo)
 
#define D_(dom, str)   (str)
 
#define N_(foo)   (foo)
 

Typedefs

typedef unsigned int __pbm_bits
 

Macro Definition Documentation

◆ _

#define _ (   foo)    (foo)

◆ __PBM_BITS

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

◆ __PBM_IX

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

◆ __PBM_MASK

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

◆ __PBM_NBITS

#define __PBM_NBITS   (8 * sizeof (__pbm_bits))

◆ D_

#define D_ (   dom,
  str 
)    (str)

◆ N_

#define N_ (   foo)    (foo)

◆ PBM_ALLOC

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

◆ PBM_CLR

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

◆ PBM_FREE

#define PBM_FREE (   s)    free(s);

◆ PBM_ISSET

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

◆ PBM_SET

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

◆ POPT_

#define POPT_ (   foo)    (foo)

◆ xfree

#define xfree (   _a)    free((void *)_a)

Typedef Documentation

◆ __pbm_bits

typedef unsigned int __pbm_bits