Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cond_comp.c File Reference
#include <time.h>
#include <sys/time.h>
#include "defines.h"
#include "host.m"
#include "host.h"
#include "target.m"
#include "target.h"
#include "globals.m"
#include "tokens.m"
#include "sytb.m"
#include "p_globals.m"
#include "src_input.m"
#include "cond_comp.m"
#include "debug.m"
#include "globals.h"
#include "tokens.h"
#include "sytb.h"
#include "p_globals.h"
#include "cond_comp.h"
Include dependency graph for cond_comp.c:

Go to the source code of this file.

Functions

static void cc_get_token (boolean)
static void cc_get_next_char (void)
static void cc_get_stmt (void)
static boolean parse_cc_add_opnd (opnd_type *)
static boolean parse_cc_level_2 (opnd_type *)
static boolean parse_cc_level_3 (opnd_type *)
static boolean parse_cc_level_4 (opnd_type *)
static boolean parse_cc_level_5 (opnd_type *)
static boolean parse_cc_level_6 (opnd_type *)
static boolean parse_cc_level_7 (opnd_type *)
static boolean parse_cc_level_8 (opnd_type *)
static boolean parse_cc_mult_opnd (opnd_type *)
static boolean parse_cc_or_opnd (opnd_type *)
static boolean parse_cc_equiv_opnd (opnd_type *)
static int srch_cc_sym_tbl (char *, int, int *)
static int ntr_cc_sym_tbl (cc_token_type *, int)
static boolean parse_cc_expr (opnd_type *)
static boolean parse_cc_operand (opnd_type *)
static void flush_cc_line (void)
static int fold_cc_expr (opnd_type *)
static void parse_define_str (int)
static void copy_define_str (int, int)
static void scan_cc_line (void)
static void find_line_and_col (int, int *, int *)
static void shift_cc_stmt_buf (int, int)
static void shift_nxt_line (int, int)
static void scan_cc_macro (int, int)
static boolean scan_fortran_macro (int, int, int)
static int expanded_macro_len (int, cc_arg_type *)
static void insert_macro (int, cc_arg_type *, int, int, int)
static void cc_advance_idx (void)
static void adjust_continued_macro (int, int *)
static char * get_dynamic_predef_str (int, int)
static void free_arg_entry (cc_arg_type *)
static cc_arg_typealloc_arg_entry (int)
boolean parse_cc_line (void)
boolean scan_fixed_comment (void)
boolean scan_fortran_stmt (void)
void init_cond_comp (void)
void enter_predefined_macros (void)
boolean enter_cmd_line_cc_define (char *str, char *value, boolean is_define)

Variables

static char USMID [] = "\n@(#)5.0_pl/sources/cond_comp.c 5.8 09/21/99 00:21:13\n"

Function Documentation

static cc_arg_type * alloc_arg_entry ( int  num_chars) [static]

Definition at line 1444 of file cond_comp.c.

References Func_Entry, Func_Exit, cc_arg_entry::name, NULL, and TRACE.

Referenced by scan_cc_macro(), and scan_fortran_macro().

static void cc_get_next_char ( void  ) [static]

Definition at line 3090 of file cond_comp.c.

References blank, CC_LA_CH_CLASS, CC_LA_CH_COLUMN, CC_LA_CH_LINE, CC_LA_CH_VALUE, cc_stmt_buf, cc_stmt_buf_idx, ch_class, Ch_Class_EOF, EOF, eos, find_line_and_col(), Func_Entry, Func_Exit, newline, NULL, tab, and TRACE.

Here is the call graph for this function:

static void copy_define_str ( int  attr_idx,
int  start_idx 
) [static]
static int expanded_macro_len ( int  attr_idx,
cc_arg_type arg_head 
) [static]
static void find_line_and_col ( int  idx,
int *  line,
int *  col 
) [static]
static void free_arg_entry ( cc_arg_type arg_entry) [static]

Definition at line 1487 of file cond_comp.c.

References free(), Func_Entry, Func_Exit, cc_arg_entry::name, NULL, and TRACE.

Referenced by scan_cc_macro(), and scan_fortran_macro().

Here is the call graph for this function:

static char * get_dynamic_predef_str ( int  attr_idx,
int  line 
) [static]
static void insert_macro ( int  attr_idx,
cc_arg_type arg_head,
int  id_start_idx,
int  col,
int  save_pp_line_idx 
) [static]
static boolean parse_cc_equiv_opnd ( opnd_type result) [static]
static boolean parse_cc_expr ( opnd_type result) [static]

Definition at line 3383 of file cond_comp.c.

References COPY_OPND, Func_Entry, Func_Exit, NULL, OPND_IDX, parse_cc_level_8(), print_ir(), TRACE, and TRUE.

Referenced by parse_cc_line(), and parse_cc_operand().

Here is the call graph for this function:

static boolean parse_cc_level_5 ( opnd_type result) [static]
static boolean parse_cc_level_7 ( opnd_type result) [static]
static boolean parse_cc_level_8 ( opnd_type result) [static]

Definition at line 4039 of file cond_comp.c.

References Cc_Tok_Op_Or, cc_token, COPY_OPND, Func_Entry, Func_Exit, IR_COL_NUM, IR_LINE_NUM, IR_OPND_L, IR_OPND_R, IR_OPR, IR_Tbl_Idx, NTR_IR_TBL, NULL, OPND_FLD, OPND_IDX, Or_Opr, parse_cc_level_7(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.

Referenced by parse_cc_expr().

Here is the call graph for this function:

static boolean parse_cc_or_opnd ( opnd_type result) [static]
static void shift_cc_stmt_buf ( int  start_idx,
int  shift 
) [static]
static void shift_nxt_line ( int  start_idx,
int  shift 
) [static]
static int srch_cc_sym_tbl ( char *  name_str,
int  name_len,
int *  name_idx 
) [static]

Variable Documentation

char USMID[] = "\n@(#)5.0_pl/sources/cond_comp.c 5.8 09/21/99 00:21:13\n" [static]

Definition at line 37 of file cond_comp.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines