Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

prog_prototypes.h File Reference

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

Included by dependency graph

Go to the source code of this file.

Functions

public int get_n_arguments_remaining (void)
public void initialize_argument_processing (int argc, char *argv[])
public BOOLEAN get_int_argument (int default_value, int *value)
public BOOLEAN get_real_argument (Real default_value, Real *value)
public BOOLEAN get_string_argument (STRING default_value, STRING *value)
public BOOLEAN get_prefix_argument (STRING prefix)
public Status input_globals_file (int n_globals_lookup, global_struct globals_lookup[], STRING filename)
public Status get_global_variable (int n_globals_lookup, global_struct globals_lookup[], STRING variable_name, STRING *value)
public Status set_global_variable (int n_globals_lookup, global_struct globals_lookup[], STRING variable_name, STRING value_to_set)
public Status set_or_get_global_variable (int n_globals_lookup, global_struct globals_lookup[], STRING input_str, STRING *variable_name, STRING *value_string)
public void delete_global_variables (int n_globals_lookup, global_struct globals_lookup[])
public void set_random_seed (int seed)
public int get_random_int (int n)
public Real get_random_0_to_1 (void)
public void start_timing (void)
public void end_timing (STRING title, int n)


Function Documentation

public void delete_global_variables int  n_globals_lookup,
global_struct  globals_lookup[]
 

Definition at line 555 of file globals.c.

References STRING_type.

public void end_timing STRING  title,
int  n
 

Definition at line 59 of file time.c.

References cpu_start_time, and real_start_time.

public Status get_global_variable int  n_globals_lookup,
global_struct  globals_lookup[],
STRING  variable_name,
STRING *  value
 

Definition at line 203 of file globals.c.

References BOOLEAN_type, Colour_type, convert_colour_to_string(), int_type, lookup_global(), Point_type, Real_type, STRING_type, Surfprop_type, Variable_types, and Vector_type.

Referenced by set_or_get_global_variable().

public BOOLEAN get_int_argument int  default_value,
int *  value
 

Definition at line 137 of file arguments.c.

References advance_argument(), arguments_remaining(), FALSE, get_current_argument_string(), and TRUE.

public int get_n_arguments_remaining void   ) 
 

Definition at line 50 of file arguments.c.

References arguments_struct::argc, arguments, and arguments_struct::current_arg.

public BOOLEAN get_prefix_argument STRING  prefix  ) 
 

Definition at line 249 of file arguments.c.

References advance_argument(), arguments, arguments_remaining(), arguments_struct::current_offset_within_arg, FALSE, get_current_argument_string(), and TRUE.

public Real get_random_0_to_1 void   ) 
 

Definition at line 126 of file random.c.

References get_random(), and MAX_RAND.

Referenced by get_prediction_weights_3d(), and get_random_level().

public int get_random_int int  n  ) 
 

Definition at line 107 of file random.c.

References get_random().

public BOOLEAN get_real_argument Real  default_value,
Real *  value
 

Definition at line 173 of file arguments.c.

References advance_argument(), arguments_remaining(), FALSE, get_current_argument_string(), and TRUE.

public BOOLEAN get_string_argument STRING  default_value,
STRING *  value
 

Definition at line 213 of file arguments.c.

References advance_argument(), arguments_remaining(), FALSE, get_current_argument_string(), and TRUE.

public void initialize_argument_processing int  argc,
char *  argv[]
 

Definition at line 112 of file arguments.c.

References arguments_struct::argc, arguments, arguments_struct::argv, arguments_struct::current_arg, and arguments_struct::current_offset_within_arg.

public Status input_globals_file int  n_globals_lookup,
global_struct  globals_lookup[],
STRING  filename
 

Definition at line 43 of file globals.c.

References FALSE.

public Status set_global_variable int  n_globals_lookup,
global_struct  globals_lookup[],
STRING  variable_name,
STRING  value_to_set
 

Definition at line 303 of file globals.c.

References BOOLEAN_type, Colour_type, convert_string_to_colour(), FALSE, int_type, lookup_global(), Point_type, Real_type, STRING_type, Surfprop_type, TRUE, Variable_types, and Vector_type.

Referenced by set_or_get_global_variable().

public Status set_or_get_global_variable int  n_globals_lookup,
global_struct  globals_lookup[],
STRING  input_str,
STRING *  variable_name,
STRING *  value_string
 

Definition at line 449 of file globals.c.

References get_global_variable(), and set_global_variable().

public void set_random_seed int  seed  ) 
 

Definition at line 40 of file random.c.

References initialized, and TRUE.

Referenced by check_initialized().

public void start_timing void   ) 
 

Definition at line 38 of file time.c.

References cpu_start_time, and real_start_time.


Generated on Wed Jul 28 09:11:15 2004 for BICPL by doxygen 1.3.7