atlas  0.6
Classes | Macros | Typedefs | Functions | Variables
common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  id_info
 
struct  mod_info
 
struct  f
 

Macros

#define max_file_name_length   256
 
#define cur_file   file[include_depth].file /* current file */
 
#define cur_file_name   file[include_depth].name /* current file name */
 
#define cur_line   file[include_depth].line
 
#define web_file   file[0].file
 
#define change_file   change.file
 
#define change_line   change.line
 
#define mark_section_as_changed(n)   (changed_section[(n)>>3]|=1<<((n)&7))
 
#define section_changed(n)   ((changed_section[(n)>>3]&(1<<((n)&7)))!=0)
 
#define hash_end   (&hash[hash_size]) /* end of |hash| */
 
#define mod_text_end   (&mod_text[longest_name+1]) /* end of |mod_text| */
 

Typedefs

typedef char boolean
 
typedef unsigned char eight_bits
 
typedef unsigned short sixteen_bits
 
typedef struct id_info id_info
 
typedef struct id_infoid_pointer
 
typedef struct mod_info mod_info
 
typedef struct mod_infomod_pointer
 

Functions

void common_init (int argc, char **argv, char *version)
 
boolean locate_file_name ()
 
boolean push_input_file (boolean, boolean)
 
boolean get_line (void)
 
void reset_input (void)
 
void check_complete (void)
 
id_pointer id_lookup (char *, char *, int)
 
mod_pointer get_module_name (void)
 
boolean get_control_text (void)
 
void get_string (void)
 
void err_print (char *)
 
void wrap_up (void)
 
void print_stats (void)
 
void fatal (char *,...)
 
void open_output_file (void)
 
void print (char *,...)
 
void print_progress (char *)
 
void print_section_progress (void)
 

Variables

int program
 
int phase
 
char buffer []
 
char * loc
 
char * limit
 
struct f file []
 
struct f change []
 
int include_depth
 
boolean input_has_ended
 
boolean changing
 
boolean web_file_open
 
boolean print_where
 
boolean including_header_file
 
sixteen_bits section_count
 
eight_bits changed_section []
 
char byte_mem []
 
char * byte_ptr
 
id_info id_table []
 
id_infoid_ptr
 
mod_info mod_table []
 
mod_infomod_ptr
 
id_pointer hash []
 
mod_pointer root
 
char mod_text []
 
char * id_first
 
char * id_loc
 
 history
 
boolean flags []
 
char C_file_name []
 
char idx_file_name []
 
char scn_file_name []
 
FILE * C_file
 
FILE * tex_file
 

Macro Definition Documentation

#define change_file   change.file
#define change_line   change.line
#define cur_file   file[include_depth].file /* current file */
#define cur_file_name   file[include_depth].name /* current file name */
#define cur_line   file[include_depth].line
#define hash_end   (&hash[hash_size]) /* end of |hash| */
#define mark_section_as_changed (   n)    (changed_section[(n)>>3]|=1<<((n)&7))
#define max_file_name_length   256
#define mod_text_end   (&mod_text[longest_name+1]) /* end of |mod_text| */
#define section_changed (   n)    ((changed_section[(n)>>3]&(1<<((n)&7)))!=0)
#define web_file   file[0].file

Typedef Documentation

typedef char boolean
typedef unsigned char eight_bits
typedef struct id_info id_info
typedef struct id_info * id_pointer
typedef struct mod_info mod_info
typedef struct mod_info * mod_pointer
typedef unsigned short sixteen_bits

Function Documentation

void check_complete ( void  )
void common_init ( int  argc,
char **  argv,
char *  version 
)
void err_print ( char *  )
void fatal ( char *  ,
  ... 
)
boolean get_control_text ( void  )
boolean get_line ( void  )
mod_pointer get_module_name ( void  )
void get_string ( void  )
id_pointer id_lookup ( char *  ,
char *  ,
int   
)
boolean locate_file_name ( )
void open_output_file ( void  )
void print ( char *  ,
  ... 
)
void print_progress ( char *  )
void print_section_progress ( void  )
void print_stats ( void  )
boolean push_input_file ( boolean  ,
boolean   
)
void reset_input ( void  )
void wrap_up ( void  )

Variable Documentation

char buffer[]
char byte_mem[]
char * byte_ptr
FILE* C_file
char C_file_name[]
struct f change[]
eight_bits changed_section[]
boolean changing
struct f file[]
boolean flags[]
id_pointer hash[]
history
char * id_first
char * id_loc
id_info * id_ptr
id_info id_table[]
char idx_file_name[]
int include_depth
boolean including_header_file
boolean input_has_ended
char * limit
char * loc
mod_info * mod_ptr
mod_info mod_table[]
char mod_text[]
int phase
boolean print_where
int program
char scn_file_name[]
sixteen_bits section_count
FILE * tex_file
boolean web_file_open