Mixe for Privacy and Anonymity in the Internet
|
Go to the source code of this file.
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 | |
void | poptSetExecPath (poptContext con, const char *path, int allowAbsolute) |
poptContext | poptGetContext (const char *name, int argc, const char **argv, const struct poptOption *options, int flags) |
void | poptResetContext (poptContext con) |
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) |
#define POPT_ERROR_BADQUOTE -15 /* only from poptParseArgString() */ |
#define POPT_ERROR_ERRNO -16 /* only from poptParseArgString() */ |
int poptAddAlias | ( | poptContext | con, |
struct poptAlias | newAlias, | ||
int | flags | ||
) |
Definition at line 682 of file popt.cpp.
References poptContext_s::aliases, poptAlias::argc, poptAlias::argv, poptAlias::longName, poptContext_s::numAliases, and poptAlias::shortName.
const char* poptBadOption | ( | poptContext | con, |
int | flags | ||
) |
Definition at line 706 of file popt.cpp.
References optionStackEntry::argv, flags, optionStackEntry::next, poptContext_s::optionStack, poptContext_s::os, and POPT_BADOPTION_NOALIAS.
void poptFreeContext | ( | poptContext | con | ) |
Definition at line 654 of file popt.cpp.
References poptContext_s::aliases, poptContext_s::appName, poptContext_s::arg_strip, optionStackEntry::argb, poptAlias::argv, poptContext_s::execPath, poptContext_s::execs, poptContext_s::finalArgv, poptContext_s::leftovers, poptAlias::longName, execEntry::longName, poptContext_s::numAliases, poptContext_s::numExecs, poptContext_s::os, poptContext_s::otherHelp, PBM_FREE, poptResetContext(), execEntry::script, and xfree.
Referenced by CACmdLnOptions::parse().
const char* poptGetArg | ( | poptContext | con | ) |
Definition at line 635 of file popt.cpp.
References poptContext_s::leftovers, poptContext_s::nextLeftover, and poptContext_s::numLeftovers.
const char** poptGetArgs | ( | poptContext | con | ) |
Definition at line 645 of file popt.cpp.
References poptContext_s::leftovers, poptContext_s::nextLeftover, and poptContext_s::numLeftovers.
poptContext poptGetContext | ( | const char * | name, |
int | argc, | ||
const char ** | argv, | ||
const struct poptOption * | options, | ||
int | flags | ||
) |
Definition at line 51 of file popt.cpp.
References poptContext_s::aliases, poptContext_s::appName, poptContext_s::arg_strip, optionStackEntry::argb, optionStackEntry::argc, optionStackEntry::argv, poptContext_s::execAbsolute, poptContext_s::execs, poptContext_s::finalArgv, poptContext_s::finalArgvAlloced, poptContext_s::flags, flags, poptContext_s::leftovers, optionStackEntry::next, poptContext_s::numAliases, poptContext_s::numExecs, poptContext_s::options, poptContext_s::optionStack, poptContext_s::os, POPT_CONTEXT_KEEP_FIRST, and POPT_CONTEXT_POSIXMEHARDER.
Referenced by CACmdLnOptions::parse().
const char* poptGetInvocationName | ( | poptContext | con | ) |
Definition at line 765 of file popt.cpp.
References optionStackEntry::argv, and poptContext_s::os.
int poptGetNextOpt | ( | poptContext | con | ) |
Definition at line 407 of file popt.cpp.
References optionStackEntry::argc, optionStackEntry::next, optionStackEntry::nextCharArg, poptContext_s::optionStack, and poptContext_s::os.
Referenced by CACmdLnOptions::parse().
const char* poptGetOptArg | ( | poptContext | con | ) |
Definition at line 629 of file popt.cpp.
References optionStackEntry::nextArg, and poptContext_s::os.
const char* poptPeekArg | ( | poptContext | con | ) |
Definition at line 640 of file popt.cpp.
References poptContext_s::leftovers, poptContext_s::nextLeftover, and poptContext_s::numLeftovers.
void poptResetContext | ( | poptContext | con | ) |
Definition at line 104 of file popt.cpp.
References poptContext_s::optionStack, and poptContext_s::os.
Referenced by poptFreeContext().
void poptSetExecPath | ( | poptContext | con, |
const char * | path, | ||
int | allowAbsolute | ||
) |
Definition at line 25 of file popt.cpp.
References poptContext_s::execAbsolute, poptContext_s::execPath, xfree, and xstrdup().
const char* poptStrerror | ( | const int | error | ) |
Definition at line 723 of file popt.cpp.
References POPT_, POPT_ERROR_BADNUMBER, POPT_ERROR_BADOPT, POPT_ERROR_BADQUOTE, POPT_ERROR_ERRNO, POPT_ERROR_NOARG, POPT_ERROR_OPTSTOODEEP, and POPT_ERROR_OVERFLOW.
int poptStrippedArgv | ( | poptContext | con, |
int | argc, | ||
char ** | argv | ||
) |
Definition at line 769 of file popt.cpp.
References poptContext_s::arg_strip, optionStackEntry::argc, optionStackEntry::argv, and PBM_ISSET.
int poptStuffArgs | ( | poptContext | con, |
const char ** | argv | ||
) |
Definition at line 744 of file popt.cpp.
References optionStackEntry::argb, optionStackEntry::argc, optionStackEntry::argv, optionStackEntry::currAlias, optionStackEntry::next, optionStackEntry::nextArg, optionStackEntry::nextCharArg, poptContext_s::optionStack, poptContext_s::os, POPT_ERROR_OPTSTOODEEP, POPT_OPTION_DEPTH, poptDupArgv(), and optionStackEntry::stuffed.