common/gnu_getopt.h File Reference

#include <ctype.h>

Include dependency graph for gnu_getopt.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  option

Defines

#define GNU_GETOPT_INTERFACE_VERSION   2
#define no_argument   0
#define required_argument   1
#define optional_argument   2

Functions

int gnu_getopt_internal_ (int, char *const *, const char *, const struct option *, int *, int)
int gnu_getopt (int argc_, char *const *argv_, const char *shortopts_)
int gnu_getopt_long (int argc_, char *const *argv_, const char *shortopts_, const struct option *longopts_, int *optind_)
int gnu_getopt_long_only (int argc_, char *const *argv_, const char *shortopts_, const struct option *longopts_, int *optind_)

Variables

char * optarg
int optind
int opterr
int optopt


Define Documentation

#define GNU_GETOPT_INTERFACE_VERSION   2

Definition at line 30 of file gnu_getopt.h.

#define no_argument   0

Definition at line 73 of file gnu_getopt.h.

Referenced by main(), and test_driver::parse_command_line().

#define required_argument   1

Definition at line 74 of file gnu_getopt.h.

Referenced by main().

#define optional_argument   2

Definition at line 75 of file gnu_getopt.h.


Function Documentation

int gnu_getopt_internal_ ( int  ,
char *const *  ,
const char *  ,
const struct option ,
int *  ,
int   
)

Definition at line 343 of file getopt.cc.

References __getopt_initialized, _getopt_initialize(), exchange(), first_nonopt, if(), last_nonopt, option::name, nextchar, NONOPTION_P, optarg, opterr, optind, ordering, PERMUTE, and REQUIRE_ORDER.

Referenced by gnu_getopt(), gnu_getopt_long(), and gnu_getopt_long_only().

int gnu_getopt ( int  argc_,
char *const *  argv_,
const char *  shortopts_ 
) [inline]

Definition at line 83 of file gnu_getopt.h.

References gnu_getopt_internal_().

Referenced by main().

int gnu_getopt_long ( int  argc_,
char *const *  argv_,
const char *  shortopts_,
const struct option longopts_,
int *  optind_ 
) [inline]

Definition at line 90 of file gnu_getopt.h.

References gnu_getopt_internal_().

Referenced by main(), and test_driver::parse_command_line().

int gnu_getopt_long_only ( int  argc_,
char *const *  argv_,
const char *  shortopts_,
const struct option longopts_,
int *  optind_ 
) [inline]

Definition at line 96 of file gnu_getopt.h.

References gnu_getopt_internal_().


Variable Documentation

char* optarg

Definition at line 84 of file getopt.cc.

Referenced by gnu_getopt_internal_(), main(), and test_driver::parse_command_line().

int optind

Definition at line 99 of file getopt.cc.

Referenced by _getopt_initialize(), exchange(), gnu_getopt_internal_(), main(), and test_driver::parse_command_line().

int opterr

Definition at line 119 of file getopt.cc.

Referenced by gnu_getopt_internal_().

int optopt

Definition at line 125 of file getopt.cc.


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.