GCC Middle and Back End API Reference
|
#include <opts.h>
Data Fields | |
const char * | help |
const char * | unknown_error |
struct cl_enum_arg * | values |
size_t | var_size |
void(* | set )(void *var, int value) |
int(* | get )(const void *var) |
Structure describing an enumerated set of option arguments.
int(* cl_enum::get)(const void *var) |
Function to get the value of a variable of this type.
const char* cl_enum::help |
Help text, or NULL if the values should not be listed in –help output.
void(* cl_enum::set)(void *var, int value) |
Function to set a variable of this type.
Referenced by set_option().
const char* cl_enum::unknown_error |
Error message for unknown arguments, or NULL to use a generic error.
struct cl_enum_arg* cl_enum::values |
Array of possible values.
Referenced by enum_arg_to_value().
size_t cl_enum::var_size |
The size of the type used to store a value.