GDB (xrefs)
Loading...
Searching...
No Matches
Functions
mi-getopt.c File Reference
#include "defs.h"
#include "mi-getopt.h"

Go to the source code of this file.

Functions

static int mi_getopt_1 (const char *prefix, int argc, char **argv, const struct mi_opt *opts, int *oind, char **oarg, int error_on_unknown)
 
int mi_getopt (const char *prefix, int argc, char **argv, const struct mi_opt *opts, int *oind, char **oarg)
 
int mi_getopt_allow_unknown (const char *prefix, int argc, char **argv, const struct mi_opt *opts, int *oind, char **oarg)
 
int mi_valid_noargs (const char *prefix, int argc, char **argv)
 

Function Documentation

◆ mi_getopt()

int mi_getopt ( const char *  prefix,
int  argc,
char **  argv,
const struct mi_opt opts,
int *  oind,
char **  oarg 
)

◆ mi_getopt_1()

static int mi_getopt_1 ( const char *  prefix,
int  argc,
char **  argv,
const struct mi_opt opts,
int *  oind,
char **  oarg,
int  error_on_unknown 
)
static

Definition at line 27 of file mi-getopt.c.

References mi_opt::arg_p, mi_opt::index, mi_opt::name, and prefix.

Referenced by mi_getopt(), and mi_getopt_allow_unknown().

◆ mi_getopt_allow_unknown()

int mi_getopt_allow_unknown ( const char *  prefix,
int  argc,
char **  argv,
const struct mi_opt opts,
int *  oind,
char **  oarg 
)

Definition at line 91 of file mi-getopt.c.

References mi_getopt_1(), and prefix.

Referenced by mi_cmd_stack_list_args().

◆ mi_valid_noargs()

int mi_valid_noargs ( const char *  prefix,
int  argc,
char **  argv 
)

Definition at line 98 of file mi-getopt.c.

References mi_getopt(), and prefix.

Referenced by mi_cmd_file_list_exec_source_file(), and mi_cmd_inferior_tty_show().