osprey/common/util/flags.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

type  option_list
type  option_desc
type  option_group

Defines

#define OLIST_next(o)   ((o)->next)
#define OLIST_opt(o)   ((o)->opt)
#define OLIST_val(o)   ((o)->val)
#define ODESC_kind(o)   ((o)->kind)
#define ODESC_visibility(o)   ((o)->visibility)
#define ODESC_can_change_by_pragma(o)   ((o)->can_change_by_pragma)
#define ODESC_name(o)   ((o)->name)
#define ODESC_abbrev(o)   ((o)->abbrev)
#define ODESC_def_val(o)   ((o)->def_val)
#define ODESC_min_val(o)   ((o)->min_val)
#define ODESC_max_val(o)   ((o)->max_val)
#define ODESC_variable(o)   ((o)->variable)
#define ODESC_description(o)   ((o)->description)
#define OGROUP_name(o)   ((o)->name)
#define OGROUP_options(o)   ((o)->options)
#define OGROUP_separator(o)   ((o)->separator)
#define OGROUP_valmarker(o)   ((o)->valmarker)
#define OGROUP_description(o)   ((o)->description)

Typedefs

typedef struct option_list OPTION_LIST
typedef struct option_desc OPTION_DESC
typedef struct option_group OPTION_GROUP

Enumerations

enum  OPTION_KIND {
  OVK_INVALID, OVK_NONE, OVK_BOOL, OVK_INT32,
  OVK_INT64, OVK_UINT32, OVK_UINT64, OVK_NAME,
  OVK_SELF, OVK_LIST, OVK_OBSOLETE, OVK_OLD_COUNT,
  OVK_REPLACED, OVK_UNIMPLEMENTED, OVK_COUNT = 63
}
enum  OPTION_VISIBILITY { OV_VISIBLE, OV_SHY, OV_INTERNAL }

Functions/Subroutines

INT64 Get_Numeric_Flag (char **cp, INT64 min, INT64 max, INT64 def, char *flag)
BOOL Atoi_KMG (const char *s, INT64 *val, BOOL suffix_required)
void Initialize_Option_Groups (OPTION_GROUP *ogroups)
void Set_Option_Internal (OPTION_GROUP *ogroup, const char *name)
BOOL Process_Command_Line_Group (char *flag, OPTION_GROUP *opt_groups)
void Print_Option_Group (FILE *tf, OPTION_GROUP *opt_group, const char *prefix, BOOL internal, BOOL full, BOOL update)
void Trace_Option_Group (FILE *tf, OPTION_GROUP *opt_group, BOOL full)
void Print_Option_Groups (FILE *tf, OPTION_GROUP *opt_group, const char *prefix, BOOL internal, BOOL full, BOOL update)
void Trace_Option_Groups (FILE *tf, OPTION_GROUP *opt_group, BOOL full)
OPTION_GROUPGet_Command_Line_Group (OPTION_GROUP *og, const char *name)
void Trace_Command_Line_Group (FILE *, OPTION_GROUP *)
void Save_or_restore_options (char *, INT32, BOOL)

Variables

char Cmdname []
OPTION_GROUP Common_Option_Groups []


Define Documentation

#define ODESC_abbrev ( o   )     ((o)->abbrev)

Definition at line 361 of file flags.h.

Referenced by Process_Command_Line_Group().

#define ODESC_can_change_by_pragma ( o   )     ((o)->can_change_by_pragma)

Definition at line 359 of file flags.h.

Referenced by Copy_option(), and Save_or_restore_options().

#define ODESC_def_val ( o   )     ((o)->def_val)

Definition at line 362 of file flags.h.

Referenced by Process_Command_Line_Group().

#define ODESC_description ( o   )     ((o)->description)

Definition at line 366 of file flags.h.

Referenced by Print_Option_Group().

#define ODESC_kind ( o   )     ((o)->kind)

#define ODESC_max_val ( o   )     ((o)->max_val)

Definition at line 364 of file flags.h.

Referenced by Process_Command_Line_Group().

#define ODESC_min_val ( o   )     ((o)->min_val)

Definition at line 363 of file flags.h.

Referenced by Process_Command_Line_Group().

#define ODESC_name ( o   )     ((o)->name)

#define ODESC_variable ( o   )     ((o)->variable)

#define ODESC_visibility ( o   )     ((o)->visibility)

Definition at line 358 of file flags.h.

Referenced by Print_Option_Group(), and Set_Option_Internal().

#define OGROUP_description ( o   )     ((o)->description)

Definition at line 382 of file flags.h.

Referenced by Print_Option_Group().

#define OGROUP_name ( o   )     ((o)->name)

#define OGROUP_options ( o   )     ((o)->options)

#define OGROUP_separator ( o   )     ((o)->separator)

Definition at line 380 of file flags.h.

Referenced by Print_Option_Group(), and Process_Command_Line_Group().

#define OGROUP_valmarker ( o   )     ((o)->valmarker)

Definition at line 381 of file flags.h.

Referenced by Print_Option_Group(), and Process_Command_Line_Group().

#define OLIST_next ( o   )     ((o)->next)

#define OLIST_opt ( o   )     ((o)->opt)

#define OLIST_val ( o   )     ((o)->val)


Typedef Documentation


Enumeration Type Documentation

Enumerator:
OVK_INVALID 
OVK_NONE 
OVK_BOOL 
OVK_INT32 
OVK_INT64 
OVK_UINT32 
OVK_UINT64 
OVK_NAME 
OVK_SELF 
OVK_LIST 
OVK_OBSOLETE 
OVK_OLD_COUNT 
OVK_REPLACED 
OVK_UNIMPLEMENTED 
OVK_COUNT 

Definition at line 302 of file flags.h.

Enumerator:
OV_VISIBLE 
OV_SHY 
OV_INTERNAL 

Definition at line 325 of file flags.h.


Function Documentation

BOOL Atoi_KMG ( const char *  s,
INT64 val,
BOOL  suffix_required 
)

Definition at line 179 of file flags.c.

References BOOL, c, FALSE, INT64, and TRUE.

Referenced by LNO_Configure().

OPTION_GROUP* Get_Command_Line_Group ( OPTION_GROUP og,
const char *  name 
)

Definition at line 1284 of file flags.c.

References i, INT32, NULL, OGROUP_name, and strcmp().

Referenced by Preconfigure(), and OPTIONS_STACK::Process_Pragma_Options().

INT64 Get_Numeric_Flag ( char **  cp,
INT64  min,
INT64  max,
INT64  def,
char *  flag 
)

void Initialize_Option_Groups ( OPTION_GROUP ogroups  ) 

Definition at line 583 of file flags.c.

References Initialize_Option_Group(), NULL, OGROUP_name, and OGROUP_options.

Referenced by Preconfigure(), and Process_Command_Line_Group().

void Print_Option_Group ( FILE tf,
OPTION_GROUP opt_group,
const char *  prefix,
BOOL  internal,
BOOL  full,
BOOL  update 
)

void Print_Option_Groups ( FILE tf,
OPTION_GROUP opt_group,
const char *  prefix,
BOOL  internal,
BOOL  full,
BOOL  update 
)

Definition at line 1255 of file flags.c.

References NULL, OGROUP_name, and Print_Option_Group().

Referenced by List_Compile_Options(), and Trace_Option_Groups().

BOOL Process_Command_Line_Group ( char *  flag,
OPTION_GROUP opt_groups 
)

void Save_or_restore_options ( char *  ,
INT32  ,
BOOL   
)

void Set_Option_Internal ( OPTION_GROUP ogroup,
const char *  name 
)

void Trace_Command_Line_Group ( FILE ,
OPTION_GROUP  
)

Definition at line 1240 of file flags.c.

References FALSE, Print_Option_Group(), and TRUE.

Referenced by OPTIONS_STACK::Process_Pragma_Options().

void Trace_Option_Group ( FILE tf,
OPTION_GROUP opt_group,
BOOL  full 
)

Definition at line 1232 of file flags.c.

References Print_Option_Group(), and TRUE.

void Trace_Option_Groups ( FILE tf,
OPTION_GROUP opt_group,
BOOL  full 
)

Definition at line 1267 of file flags.c.

References Print_Option_Groups(), and TRUE.

Referenced by Configure_Source(), and Process_IPA_Options().


Variable Documentation

char Cmdname[]


Generated on Wed Apr 8 14:43:04 2009 for Open64 by  doxygen 1.5.6