Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# poptContext_s Struct Reference

`#include <poptint.h>`

## Data Fields
optionStackEntry | optionStack [POPT_OPTION_DEPTH]
optionStackEntry * | os
const char ** | leftovers
int | numLeftovers
int | nextLeftover
const struct poptOption * | options
int | restLeftover
const char * | appName
poptItem | aliases
int | numAliases
int | flags
poptItem | execs
int | numExecs
const char ** | finalArgv
int | finalArgvCount
int | finalArgvAlloced
poptItem | doExec
const char * | execPath
int | execAbsolute
const char * | otherHelp
pbm_set * | arg_strip

## Field Documentation

poptItem poptContext_s::aliases

| Definition at line 61 of file poptint.h. Referenced by handleAlias(), poptAddItem(), poptFreeContext(), poptGetContext(), poptPrintUsage(), and singleTableHelp().

const char* poptContext_s::appName

| Definition at line 60 of file poptint.h. Referenced by configLine(), poptFreeContext(), poptGetContext(), and poptReadDefaultConfig().

pbm_set* poptContext_s::arg_strip

| Definition at line 73 of file poptint.h. Referenced by poptFreeContext(), poptGetContext(), poptResetContext(), poptStripArg(), and poptStrippedArgv().

poptItem poptContext_s::doExec

| Definition at line 69 of file poptint.h. Referenced by execCommand(), handleExec(), poptGetNextOpt(), and poptResetContext().

int poptContext_s::execAbsolute

| Definition at line 71 of file poptint.h. Referenced by execCommand(), and poptGetContext().

const char* poptContext_s::execPath

| Definition at line 70 of file poptint.h. Referenced by execCommand(), and poptFreeContext().

poptItem poptContext_s::execs

| Definition at line 64 of file poptint.h. Referenced by handleExec(), poptAddItem(), poptFreeContext(), poptGetContext(), poptPrintUsage(), and singleTableHelp().

const char** poptContext_s::finalArgv

| Definition at line 66 of file poptint.h. Referenced by execCommand(), handleExec(), poptFreeContext(), poptGetContext(), poptGetNextOpt(), and poptResetContext().

int poptContext_s::finalArgvAlloced

| Definition at line 68 of file poptint.h. Referenced by handleExec(), poptGetContext(), and poptGetNextOpt().

int poptContext_s::finalArgvCount

| Definition at line 67 of file poptint.h. Referenced by execCommand(), handleExec(), poptGetNextOpt(), and poptResetContext().

int poptContext_s::flags

| Definition at line 63 of file poptint.h. Referenced by handleExec(), poptGetContext(), poptGetNextOpt(), and showHelpIntro().

const char** poptContext_s::leftovers

| Definition at line 55 of file poptint.h. Referenced by execCommand(), poptFreeContext(), poptGetArg(), poptGetArgs(), poptGetContext(), poptGetNextOpt(), and poptPeekArg().

int poptContext_s::nextLeftover

| Definition at line 57 of file poptint.h. Referenced by poptGetArg(), poptGetArgs(), poptPeekArg(), and poptResetContext().

int poptContext_s::numAliases

| Definition at line 62 of file poptint.h. Referenced by handleAlias(), poptAddItem(), poptGetContext(), poptPrintUsage(), and singleTableHelp().

int poptContext_s::numExecs

| Definition at line 65 of file poptint.h. Referenced by handleExec(), poptAddItem(), poptGetContext(), poptPrintUsage(), and singleTableHelp().

int poptContext_s::numLeftovers

| Definition at line 56 of file poptint.h. Referenced by execCommand(), poptGetArg(), poptGetArgs(), poptGetNextOpt(), poptPeekArg(), and poptResetContext().

const struct poptOption* poptContext_s::options

| Definition at line 58 of file poptint.h. Referenced by poptGetContext(), poptGetNextOpt(), poptPrintHelp(), and poptPrintUsage().

struct optionStackEntry poptContext_s::optionStack[POPT_OPTION_DEPTH]

| Definition at line 53 of file poptint.h. Referenced by findNextArg(), handleAlias(), poptBadOption(), poptGetContext(), poptGetNextOpt(), poptResetContext(), poptStripArg(), poptStuffArgs(), and showHelpIntro().

struct optionStackEntry* poptContext_s::os

| Definition at line 54 of file poptint.h. Referenced by findNextArg(), handleAlias(), invokeCallbacksOPTION(), poptBadOption(), poptFreeContext(), poptGetContext(), poptGetInvocationName(), poptGetNextOpt(), poptGetOptArg(), poptResetContext(), and poptStuffArgs().

const char* poptContext_s::otherHelp

| Definition at line 72 of file poptint.h. Referenced by poptFreeContext(), poptPrintHelp(), poptPrintUsage(), and poptSetOtherOptionHelp().

int poptContext_s::restLeftover

| Definition at line 59 of file poptint.h. Referenced by poptGetNextOpt(), and poptResetContext().

The documentation for this struct was generated from the following file:

- popt/poptint.h