15 #ifndef PANDA_GETOPT_IMPL_H 16 #define PANDA_GETOPT_IMPL_H 18 #include "dtoolbase.h" 24 #if defined(HAVE_GETOPT) && defined(HAVE_GETOPT_LONG_ONLY) 33 #define getopt panda_getopt 34 #define optind panda_optind 35 #define opterr panda_opterr 36 #define optopt panda_optopt 37 #define optarg panda_optarg 38 #define getopt_long panda_getopt_long 39 #define getopt_long_only panda_getopt_long_only 45 extern EXPCL_DTOOL
char *optarg;
46 extern EXPCL_DTOOL
int optind, opterr, optopt;
56 #define required_argument 1 57 #define optional_argument 2 59 extern EXPCL_DTOOL
int 60 getopt(
int argc,
char *
const argv[],
const char *optstring);
61 extern EXPCL_DTOOL
int 62 getopt_long(
int argc,
char *
const argv[],
const char *optstring,
63 const struct option *longopts,
int *longindex);
64 extern EXPCL_DTOOL
int 65 getopt_long_only(
int argc,
char *
const argv[],
const char *optstring,
66 const struct option *longopts,
int *longindex);
72 #endif // defined(HAVE_GETOPT) && defined(HAVE_GETOPT_LONG_ONLY)