jigdo API
util/glibc-getopt.c File Reference
#include <glibc-getopt.h>
#include <stdio.h>
#include <strings.h>
Defines | |
#define | GETOPT_INTERFACE_VERSION 2 |
#define | _(msgid) (msgid) |
#define | SWAP_FLAGS(ch1, ch2) |
#define | NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
Enumerations | |
enum | { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } |
Functions | |
char * | getenv () |
static char * | my_index (char *str, int chr) const |
static void | exchange (char **argv) |
static const char * | _getopt_initialize (int argc, char *const *argv, const char *optstring) |
int | _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) |
int | getopt (int argc, char *const *argv, const char *optstring) |
Variables | |
char * | optarg |
int | optind = 1 |
int | __getopt_initialized |
static char * | nextchar |
int | opterr = 1 |
int | optopt = '?' |
static enum { ... } | ordering |
static char * | posixly_correct |
static int | first_nonopt |
static int | last_nonopt |
Define Documentation
#define _ | ( | msgid | ) | (msgid) |
#define GETOPT_INTERFACE_VERSION 2 |
Referenced by _getopt_internal().
#define SWAP_FLAGS | ( | ch1, | |||
ch2 | ) |
Referenced by exchange().
Enumeration Type Documentation
Function Documentation
static const char* _getopt_initialize | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring | |||
) | [static] |
References first_nonopt, getenv(), last_nonopt, nextchar, NULL, optind, ordering, PERMUTE, posixly_correct, REQUIRE_ORDER, and RETURN_IN_ORDER.
Referenced by _getopt_internal().
int _getopt_internal | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring, | |||
const struct option * | longopts, | |||
int * | longind, | |||
int | long_only | |||
) |
References _, __getopt_initialized, _getopt_initialize(), c, exchange(), first_nonopt, last_nonopt, my_index(), nextchar, NONOPTION_P, NULL, optarg, opterr, optind, optopt, ordering, PERMUTE, posixly_correct, and REQUIRE_ORDER.
Referenced by getopt(), getopt_long(), and getopt_long_only().
static void exchange | ( | char ** | argv | ) | [static] |
References first_nonopt, last_nonopt, NULL, optind, and SWAP_FLAGS.
Referenced by _getopt_internal().
char* getenv | ( | ) |
Referenced by _getopt_initialize(), main(), and proxyGuess().
int getopt | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring | |||
) |
References _getopt_internal().
static char* my_index | ( | char * | str, | |
int | chr | |||
) | const [static] |
Referenced by _getopt_internal().
Variable Documentation
Referenced by _getopt_internal().
int first_nonopt [static] |
Referenced by _getopt_initialize(), _getopt_internal(), and exchange().
int last_nonopt [static] |
Referenced by _getopt_initialize(), _getopt_internal(), and exchange().
char* nextchar [static] |
Referenced by _getopt_initialize(), and _getopt_internal().
char* optarg |
Referenced by _getopt_internal(), and cmdOptions().
int opterr = 1 |
Referenced by _getopt_internal().
int optind = 1 |
Referenced by _getopt_initialize(), _getopt_internal(), cmdOptions(), and exchange().
int optopt = '?' |
Referenced by _getopt_internal().
enum { ... } ordering [static] |
Referenced by _getopt_initialize(), and _getopt_internal().
char* posixly_correct [static] |
Referenced by _getopt_initialize(), and _getopt_internal().
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
