GCC Middle and Back End API Reference
cl_enum Struct Reference

#include <opts.h>

Collaboration diagram for cl_enum:

Data Fields

const char * help
const char * unknown_error
struct cl_enum_argvalues
size_t var_size
void(* set )(void *var, int value)
int(* get )(const void *var)

Detailed Description

   Structure describing an enumerated set of option arguments.  

Field Documentation

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
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
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.  

The documentation for this struct was generated from the following file: