#include "system.h"
#include <math.h>
#include "findme.h"
#include "poptint.h"
Go to the source code of this file.
Defines | |
#define | _ABS(a) ((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a)) |
Functions | |
char * | strerror (int errno) |
void | poptSetExecPath (poptContext con, const char *path, int allowAbsolute) |
void | invokeCallbacksPRE (poptContext con, const struct poptOption *opt) |
void | invokeCallbacksPOST (poptContext con, const struct poptOption *opt) |
void | invokeCallbacksOPTION (poptContext con, const struct poptOption *opt, const struct poptOption *myOpt, const void *myData, int shorty) |
poptContext | poptGetContext (const char *name, int argc, const char **argv, const struct poptOption *options, int flags) |
void | cleanOSE (struct optionStackEntry *os) |
void | poptResetContext (poptContext con) |
int | handleExec (poptContext con, const char *longName, char shortName) |
int | handleAlias (poptContext con, const char *longName, char shortName, const char *nextCharArg) |
int | execCommand (poptContext con) |
const struct poptOption * | findOption (const struct poptOption *opt, const char *longName, char shortName, poptCallbackType *callback, const void **callbackData, int singleDash) |
const char * | findNextArg (poptContext con, unsigned argx, int delete_arg) |
const char * | expandNextArg (poptContext con, const char *s) |
void | poptStripArg (poptContext con, int which) |
int | poptSaveLong (long *arg, int argInfo, long aLong) |
Save a long, performing logical operation with value. | |
int | poptSaveInt (int *arg, int argInfo, long aLong) |
Save an integer, performing logical operation with value. | |
int | poptGetNextOpt (poptContext con) |
const char * | poptGetOptArg (poptContext con) |
const char * | poptGetArg (poptContext con) |
const char * | poptPeekArg (poptContext con) |
const char ** | poptGetArgs (poptContext con) |
poptContext | poptFreeContext (poptContext con) |
int | poptAddAlias (poptContext con, struct poptAlias alias, int flags) |
int | poptAddItem (poptContext con, poptItem newItem, int flags) |
const char * | poptBadOption (poptContext con, int flags) |
const char *const | poptStrerror (const int error) |
int | poptStuffArgs (poptContext con, const char **argv) |
const char * | poptGetInvocationName (poptContext con) |
int | poptStrippedArgv (poptContext con, int argc, char **argv) |
Definition in file popt.c.
|
|
|
Definition at line 200 of file popt.c. References _free(), optionStackEntry::argb, optionStackEntry::argv, optionStackEntry::nextArg, and PBM_FREE. Referenced by poptGetNextOpt(), and poptResetContext(). |
|
Definition at line 362 of file popt.c. References alloca(), poptItem_s::argc, poptItem_s::argv, argv, poptContext_s::doExec, poptContext_s::execAbsolute, poptContext_s::execPath, poptContext_s::finalArgv, poptContext_s::finalArgvCount, findProgramPath(), poptContext_s::leftovers, poptContext_s::numLeftovers, POPT_ERROR_ERRNO, POPT_ERROR_MALLOC, and POPT_ERROR_NOARG. Referenced by poptGetNextOpt(). |
|
Definition at line 559 of file popt.c. References findNextArg(). Referenced by poptGetNextOpt(). |
|
Definition at line 520 of file popt.c. References optionStackEntry::argb, optionStackEntry::argc, optionStackEntry::argv, optionStackEntry::next, poptContext_s::optionStack, poptContext_s::os, PBM_ALLOC, PBM_ISSET, and PBM_SET. Referenced by expandNextArg(). |
|
Definition at line 453 of file popt.c. References poptOption::arg, poptOption::argInfo, poptOption::descrip, poptOption::longName, POPT_ARG_CALLBACK, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_ARGFLAG_ONEDASH, POPT_CBFLAG_INC_DATA, and poptOption::shortName. Referenced by poptGetNextOpt(). |
|
|
Definition at line 247 of file popt.c. References poptContext_s::doExec, poptContext_s::execs, poptContext_s::finalArgv, poptContext_s::finalArgvAlloced, poptContext_s::finalArgvCount, poptContext_s::flags, poptOption::longName, poptContext_s::numExecs, poptItem_s::option, POPT_CONTEXT_NO_EXEC, and poptOption::shortName. Referenced by poptGetNextOpt(). |
|
Definition at line 108 of file popt.c. References poptOption::arg, poptOption::argInfo, poptOption::descrip, poptOption::longName, optionStackEntry::nextArg, poptContext_s::os, POPT_ARG_CALLBACK, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_CALLBACK_REASON_OPTION, POPT_CBFLAG_CONTINUE, POPT_CBFLAG_SKIPOPTION, poptCallbackType, and poptOption::shortName. Referenced by poptGetNextOpt(). |
|
Definition at line 85 of file popt.c. References poptOption::arg, poptOption::argInfo, poptOption::descrip, poptOption::longName, POPT_ARG_CALLBACK, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_CALLBACK_REASON_POST, POPT_CBFLAG_POST, poptCallbackType, and poptOption::shortName. Referenced by poptGetNextOpt(). |
|
Definition at line 62 of file popt.c. References poptOption::arg, poptOption::argInfo, poptOption::descrip, poptOption::longName, POPT_ARG_CALLBACK, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_CALLBACK_REASON_PRE, POPT_CBFLAG_PRE, poptCallbackType, and poptOption::shortName. Referenced by poptGetContext(). |
|
Save an integer, performing logical operation with value.
Definition at line 652 of file popt.c. References POPT_ARGFLAG_AND, POPT_ARGFLAG_LOGICALOPS, POPT_ARGFLAG_NOT, POPT_ARGFLAG_OR, POPT_ARGFLAG_XOR, POPT_ERROR_BADOPERATION, and POPT_ERROR_NULLARG. Referenced by db3New(), and poptGetNextOpt(). |
|
Save a long, performing logical operation with value.
Definition at line 624 of file popt.c. References POPT_ARGFLAG_AND, POPT_ARGFLAG_LOGICALOPS, POPT_ARGFLAG_NOT, POPT_ARGFLAG_OR, POPT_ARGFLAG_XOR, POPT_ERROR_BADOPERATION, and POPT_ERROR_NULLARG. Referenced by db3New(), and poptGetNextOpt(). |
|
Definition at line 608 of file popt.c. References poptContext_s::arg_strip, optionStackEntry::argc, poptContext_s::optionStack, PBM_ALLOC, and PBM_SET. Referenced by poptGetNextOpt(). |
|