31 #if defined (HAVE_CONFIG_H)
41 static struct option *
45 struct option *retval = 0, *q = 0;
54 retval = (
struct option *)
malloc ((
n+1) *
sizeof (
struct option));
70 q->has_arg = required_argument;
74 q->has_arg = optional_argument;
78 q->has_arg = no_argument;
100 const char *shortopts,
104 struct option *lopts = make_option_struct (longopts);
106 int retval = getopt_long (argc, argv, shortopts, lopts, longind);
char * octave_optarg_wrapper(void)
int octave_getopt_long_wrapper(int argc, char **argv, const char *shortopts, const struct octave_getopt_options *longopts, int *longind)
int octave_get_opterr_wrapper(void)
int octave_optind_wrapper(void)
int octave_set_opterr_wrapper(int val)
#define octave_required_arg
#define octave_optional_arg