COOPY » Guide
version 0.6.5
|
Go to the source code of this file.
Data Structures | |
struct | _getopt_data |
Defines | |
#define | _GETOPT_DATA_INITIALIZER { 1, 1 } |
Enumerations | |
enum | __ord { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } |
Functions | |
int | gnulib_getopt_internal (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, int __posixly_correct) |
int | _getopt_internal_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, struct _getopt_data *__data, int __posixly_correct) |
int | _getopt_long_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data) |
int | _getopt_long_only_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data) |
#define _GETOPT_DATA_INITIALIZER { 1, 1 } |
Definition at line 114 of file getopt_int.h.
enum __ord |
Definition at line 60 of file getopt_int.h.
int _getopt_internal_r | ( | int | ___argc, |
char ** | ___argv, | ||
const char * | __shortopts, | ||
const struct option * | __longopts, | ||
int * | __longind, | ||
int | __long_only, | ||
struct _getopt_data * | __data, | ||
int | __posixly_correct | ||
) |
Definition at line 345 of file getopt.c.
References _, _getopt_data::__first_nonopt, _getopt_data::__initialized, _getopt_data::__last_nonopt, _getopt_data::__nextchar, _getopt_data::__ordering, _getopt_initialize(), exchange(), option::flag, option::has_arg, option::name, NONOPTION_P, NULL, _getopt_data::optarg, _getopt_data::opterr, _getopt_data::optind, _getopt_data::optopt, PERMUTE, REQUIRE_ORDER, and option::val.
Referenced by _getopt_long_only_r(), _getopt_long_r(), and gnulib_getopt_internal().
int _getopt_long_only_r | ( | int | ___argc, |
char ** | ___argv, | ||
const char * | __shortopts, | ||
const struct option * | __longopts, | ||
int * | __longind, | ||
struct _getopt_data * | __data | ||
) |
Definition at line 66 of file getopt1.c.
References _getopt_internal_r().
int _getopt_long_r | ( | int | ___argc, |
char ** | ___argv, | ||
const char * | __shortopts, | ||
const struct option * | __longopts, | ||
int * | __longind, | ||
struct _getopt_data * | __data | ||
) |
Definition at line 43 of file getopt1.c.
References _getopt_internal_r().
int gnulib_getopt_internal | ( | int | ___argc, |
char ** | ___argv, | ||
const char * | __shortopts, | ||
const struct option * | __longopts, | ||
int * | __longind, | ||
int | __long_only, | ||
int | __posixly_correct | ||
) |
Definition at line 1127 of file getopt.c.
References _getopt_internal_r(), getopt_data, _getopt_data::optarg, optarg, opterr, _getopt_data::opterr, optind, _getopt_data::optind, _getopt_data::optopt, and optopt.
Referenced by getopt(), getopt_long_only(), and gnulib_getopt_long().