Mixes for Privacy and Anonymity in the Internet
Macros | Functions
popt.cpp File Reference

Macros

#define POPT_ERROR_NOARG   -10
 
#define POPT_ERROR_BADOPT   -11
 
#define POPT_ERROR_OPTSTOODEEP   -13
 
#define POPT_ERROR_BADQUOTE   -15 /* only from poptParseArgString() */
 
#define POPT_ERROR_ERRNO   -16 /* only from poptParseArgString() */
 

Functions

static char * strerror (int errno)
 
void poptSetExecPath (poptContext con, const char *path, int allowAbsolute)
 
static void invokeCallbacks (poptContext con, const struct poptOption *table, int post)
 
poptContext poptGetContext (const char *name, int argc, const char **argv, const struct poptOption *options, int flags)
 
static void cleanOSE (struct optionStackEntry *os)
 
void poptResetContext (poptContext con)
 
static int handleExec (poptContext con, char *longName, char shortName)
 
static int handleAlias (poptContext con, const char *longName, char shortName, const char *nextCharArg)
 
static const struct poptOptionfindOption (const struct poptOption *table, const char *longName, char shortName, poptCallbackType *callback, const void **callbackData, int singleDash)
 
static const char * findNextArg (poptContext con, unsigned argx, int deletE)
 
static const char * expandNextArg (poptContext con, const char *s)
 
static void poptStripArg (poptContext con, int which)
 
int poptGetNextOpt (poptContext con)
 
const char * poptGetOptArg (poptContext con)
 
const char * poptGetArg (poptContext con)
 
const char * poptPeekArg (poptContext con)
 
const char ** poptGetArgs (poptContext con)
 
void poptFreeContext (poptContext con)
 
int poptAddAlias (poptContext con, struct poptAlias newAlias, int flags)
 
const char * poptBadOption (poptContext con, int flags)
 
const char * poptStrerror (const int error)
 
int poptStuffArgs (poptContext con, const char **argv)
 
const char * poptGetInvocationName (poptContext con)
 
int poptStrippedArgv (poptContext con, int argc, char **argv)
 

Macro Definition Documentation

◆ POPT_ERROR_BADOPT

#define POPT_ERROR_BADOPT   -11

◆ POPT_ERROR_BADQUOTE

#define POPT_ERROR_BADQUOTE   -15 /* only from poptParseArgString() */

◆ POPT_ERROR_ERRNO

#define POPT_ERROR_ERRNO   -16 /* only from poptParseArgString() */

◆ POPT_ERROR_NOARG

#define POPT_ERROR_NOARG   -10

◆ POPT_ERROR_OPTSTOODEEP

#define POPT_ERROR_OPTSTOODEEP   -13

Function Documentation

◆ cleanOSE()

static void cleanOSE ( struct optionStackEntry os)
static

◆ expandNextArg()

static const char* expandNextArg ( poptContext  con,
const char *  s 
)
static

References findNextArg().

Referenced by poptGetNextOpt().

◆ findNextArg()

static const char* findNextArg ( poptContext  con,
unsigned  argx,
int  deletE 
)
static

◆ findOption()

static const struct poptOption* findOption ( const struct poptOption table,
const char *  longName,
char  shortName,
poptCallbackType callback,
const void **  callbackData,
int  singleDash 
)
static

◆ handleAlias()

static int handleAlias ( poptContext  con,
const char *  longName,
char  shortName,
const char *  nextCharArg 
)
static

◆ handleExec()

static int handleExec ( poptContext  con,
char *  longName,
char  shortName 
)
static

◆ invokeCallbacks()

static void invokeCallbacks ( poptContext  con,
const struct poptOption table,
int  post 
)
static

◆ poptAddAlias()

int poptAddAlias ( poptContext  con,
struct poptAlias  newAlias,
int  flags 
)

◆ poptBadOption()

const char* poptBadOption ( poptContext  con,
int  flags 
)

◆ poptFreeContext()

void poptFreeContext ( poptContext  con)

◆ poptGetArg()

const char* poptGetArg ( poptContext  con)

◆ poptGetArgs()

const char** poptGetArgs ( poptContext  con)

◆ poptGetContext()

poptContext poptGetContext ( const char *  name,
int  argc,
const char **  argv,
const struct poptOption options,
int  flags 
)

◆ poptGetInvocationName()

const char* poptGetInvocationName ( poptContext  con)

◆ poptGetNextOpt()

int poptGetNextOpt ( poptContext  con)

◆ poptGetOptArg()

const char* poptGetOptArg ( poptContext  con)

◆ poptPeekArg()

const char* poptPeekArg ( poptContext  con)

◆ poptResetContext()

void poptResetContext ( poptContext  con)

◆ poptSetExecPath()

void poptSetExecPath ( poptContext  con,
const char *  path,
int  allowAbsolute 
)

◆ poptStrerror()

const char* poptStrerror ( const int  error)

◆ poptStripArg()

static void poptStripArg ( poptContext  con,
int  which 
)
static

◆ poptStrippedArgv()

int poptStrippedArgv ( poptContext  con,
int  argc,
char **  argv 
)

◆ poptStuffArgs()

int poptStuffArgs ( poptContext  con,
const char **  argv 
)

◆ strerror()

static char* strerror ( int  errno)
static