Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#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"
Go to the source code of this file.
static void adjust_continued_macro | ( | int | start_idx, |
int * | end_idx | ||
) | [static] |
Definition at line 5010 of file cond_comp.c.
References blank, end_stmt_line_idx, extra_nxt_line, FALSE, Func_Entry, Func_Exit, NULL, NULL_IDX, nxt_line, nxt_line_end_idx, nxt_line_num_lines, nxt_line_start_idx, pp_change_source_form, pp_expected_line, pp_nxt_line_EOL, pp_nxt_line_idx, pp_nxt_line_length, pp_nxt_line_num, pp_nxt_line_type, pp_orig_line_size, tab, TRACE, and TRUE.
Referenced by insert_macro(), and scan_fortran_stmt().
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_advance_idx | ( | void | ) | [static] |
Definition at line 1150 of file cond_comp.c.
References cc_stmt_buf_idx, Comment_Line, Continuation_Line, Dir_Continuation_Line, end_stmt_line_idx, Fixed_Form, Func_Entry, Func_Exit, NULL, NULL_IDX, NXT_COL, nxt_line, nxt_line_end_idx, PP_EOL, PP_IDX, pp_line_idx, PP_LINE_TYPE, prev_idx, source_form, TRACE, and VALID_CC_ID_CHAR.
Referenced by insert_macro(), scan_fixed_comment(), scan_fortran_macro(), and scan_fortran_stmt().
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.
static void cc_get_stmt | ( | void | ) | [static] |
Definition at line 3164 of file cond_comp.c.
References amp, blank, cc_get_token(), cc_line_continued, CC_NEXT_LA_CH, cc_stmt_buf, cc_stmt_buf_idx, cc_stmt_buf_len, cc_stmt_buf_line, cc_stmt_buf_num_lines, Cc_Tok_Kwd_Define, cc_token, DBL_QUOTE, delim, dot_i_fptr, eos, Error, EXIT, FALSE, find_line_and_col(), fprintf(), Free_Form, Func_Entry, Func_Exit, idx, cc_stmt_buf_line_entry::line, MAX_SRC_LINE_SIZE, MAX_STMT_CHAR_SIZE, newline, NO_ARG, ntr_next_msg_queue(), NULL, NULL_IDX, on_off_flags, on_off_flags_entry::preprocess_only, QUOTE, read_line(), on_off_flags_entry::save_dot_i, shift_cc_stmt_buf(), source_form, cc_stmt_buf_line_entry::start_idx, tab, TRACE, TRUE, and Warning.
Referenced by parse_cc_line().
static void cc_get_token | ( | boolean | keyword_expected | ) | [static] |
Definition at line 2744 of file cond_comp.c.
References ADD_TO_CC_TOKEN_STR, blank, C_INT_TO_CN, cc_initial_token, CC_LA_CH_CLASS, CC_LA_CH_COLUMN, CC_LA_CH_LINE, CC_LA_CH_VALUE, CC_MAX_ID_LEN, CC_NEXT_LA_CH, cc_stmt_buf, cc_stmt_buf_idx, Cc_Tok_Constant, Cc_Tok_EOS, Cc_Tok_Id, Cc_Tok_Kwd_Define, Cc_Tok_Kwd_Defined, Cc_Tok_Kwd_Elif, Cc_Tok_Kwd_Else, Cc_Tok_Kwd_Endif, Cc_Tok_Kwd_Error, Cc_Tok_Kwd_If, Cc_Tok_Kwd_Ifdef, Cc_Tok_Kwd_Ifndef, Cc_Tok_Kwd_Include, Cc_Tok_Kwd_Undef, Cc_Tok_Op_Add, Cc_Tok_Op_And, Cc_Tok_Op_Band, Cc_Tok_Op_Bnot, Cc_Tok_Op_Bor, Cc_Tok_Op_Div, Cc_Tok_Op_Eq, Cc_Tok_Op_Ge, Cc_Tok_Op_Gt, Cc_Tok_Op_Le, Cc_Tok_Op_Lshift, Cc_Tok_Op_Lt, Cc_Tok_Op_Mod, Cc_Tok_Op_Mult, Cc_Tok_Op_Ne, Cc_Tok_Op_Neqv, Cc_Tok_Op_Not, Cc_Tok_Op_Or, Cc_Tok_Op_Rshift, Cc_Tok_Op_Sub, cc_token, CG_INTEGER_DEFAULT_TYPE, Ch_Class_Digit, Ch_Class_Letter, eos, EQUAL_STRS, FALSE, Func_Entry, Func_Exit, idx, newline, NULL, tab, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOUPPER, TRACE, TRUE, underscore, VALID_CC_ID_CHAR, and ZERO.
Referenced by cc_get_stmt(), flush_cc_line(), parse_cc_add_opnd(), parse_cc_line(), parse_cc_mult_opnd(), parse_cc_operand(), parse_define_str(), and scan_cc_line().
static void copy_define_str | ( | int | attr_idx, |
int | start_idx | ||
) | [static] |
Definition at line 887 of file cond_comp.c.
References blank, CC_AT_NAME_PTR, CC_AT_START_COL, CC_AT_START_LINE, CC_AT_STR_IDX, CC_AT_STR_LEN, CC_AT_STR_PTR, cc_stmt_buf, Error, find_line_and_col(), Func_Entry, Func_Exit, idx, len, name_pool_entry::name_long, newline, ntr_next_msg_queue(), NULL, STR_ARG_ARG, str_pool, str_pool_idx, tab, TBL_REALLOC_CK, TRACE, and WORD_LEN.
Referenced by parse_define_str().
boolean enter_cmd_line_cc_define | ( | char * | str, |
char * | value, | ||
boolean | is_define | ||
) |
Definition at line 4445 of file cond_comp.c.
References at_sign, CC_AT_DEFINED, CC_AT_STR_IDX, CC_AT_STR_LEN, cc_initial_token, cc_token, ch_class, Ch_Class_Digit, Ch_Class_Letter, dollar, FALSE, Func_Entry, Func_Exit, idx, NTR_CC_NAME_POOL, ntr_cc_sym_tbl(), NULL, NULL_IDX, PUT_VALUE_IN_AT_STR, srch_cc_sym_tbl(), strcpy, cc_id_str_entry::string, temp_id_str, TOKEN_LEN, TOKEN_STR, TRACE, TRUE, underscore, and cc_id_str_entry::words.
void enter_predefined_macros | ( | void | ) |
Definition at line 1958 of file cond_comp.c.
References CC_AT_DEFINED, CC_AT_DYNAMIC_PREDEF, cc_initial_token, cc_token, date_macro_idx, DATE_macro_idx, file_macro_idx, FILE_macro_idx, target_machine_entry::fld, Func_Entry, Func_Exit, line_macro_idx, LINE_macro_idx, target_machine_entry::mcaddr32, target_machine_entry::mcmsz, ntr_cc_sym_tbl(), NULL, NULL_IDX, PUT_VALUE_IN_AT_STR, srch_cc_sym_tbl(), strcpy, target_ieee, target_machine, target_triton, time_macro_idx, TIME_macro_idx, TOKEN_LEN, TOKEN_STR, TRACE, and TRUE.
Referenced by init_compiler().
static int expanded_macro_len | ( | int | attr_idx, |
cc_arg_type * | arg_head | ||
) | [static] |
Definition at line 4875 of file cond_comp.c.
References CC_AT_STR_LEN, CC_AT_STR_PTR, Func_Entry, Func_Exit, len, cc_arg_entry::name_len, cc_arg_entry::next, NULL, and TRACE.
Referenced by insert_macro().
static void find_line_and_col | ( | int | idx, |
int * | line, | ||
int * | col | ||
) | [static] |
Definition at line 4692 of file cond_comp.c.
References cc_stmt_buf_line, cc_stmt_buf_num_lines, Func_Entry, Func_Exit, idx, Internal, cc_stmt_buf_line_entry::line, NULL, PP_LINE_NUM, PRINTMSG(), cc_stmt_buf_line_entry::start_idx, and TRACE.
Referenced by cc_get_next_char(), cc_get_stmt(), copy_define_str(), flush_cc_line(), parse_cc_line(), scan_cc_line(), and scan_cc_macro().
static void flush_cc_line | ( | void | ) | [static] |
Definition at line 4405 of file cond_comp.c.
References cc_get_token(), CC_LA_CH_CLASS, CC_LA_CH_COLUMN, CC_LA_CH_LINE, CC_LA_CH_VALUE, cc_stmt_buf_idx, cc_stmt_buf_len, ch_class, eos, FALSE, find_line_and_col(), Func_Entry, Func_Exit, NULL, and TRACE.
Referenced by parse_cc_line(), parse_cc_operand(), parse_define_str(), scan_cc_line(), and scan_cc_macro().
static int fold_cc_expr | ( | opnd_type * | opnd | ) | [static] |
Definition at line 4535 of file cond_comp.c.
References And_Opr, Band_Opr, Bnot_Opr, Bor_Opr, CN_INT_TO_C, CN_Tbl_Idx, COPY_OPND, Div_Opr, Eq_Opr, Func_Entry, Func_Exit, Ge_Opr, Gt_Opr, Internal, IR_COL_NUM, IR_FLD_R, IR_LINE_NUM, IR_OPND_L, IR_OPND_R, IR_OPR, IR_Tbl_Idx, Le_Opr, Lt_Opr, Minus_Opr, Mod_Opr, Mult_Opr, Ne_Opr, Neqv_Opr, NO_Tbl_Idx, Not_Opr, NULL, OPND_COL_NUM, OPND_FLD, OPND_IDX, OPND_LINE_NUM, Or_Opr, Paren_Opr, Plus_Opr, PRINTMSG(), result, Shiftl_Opr, Shiftr_Opr, TRACE, Uminus_Opr, and Uplus_Opr.
Referenced by parse_cc_line().
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().
static char * get_dynamic_predef_str | ( | int | attr_idx, |
int | line | ||
) | [static] |
Definition at line 5122 of file cond_comp.c.
References date_macro_idx, DATE_macro_idx, file_macro_idx, FILE_macro_idx, Func_Entry, Func_Exit, get_curr_file_name(), GLOBAL_LINE_TO_FILE_LINE, line_macro_idx, LINE_macro_idx, MAX_PATH_NAME_SIZE, NULL, time_macro_idx, TIME_macro_idx, and TRACE.
Referenced by scan_cc_line(), scan_fixed_comment(), and scan_fortran_stmt().
void init_cond_comp | ( | void | ) |
Definition at line 1896 of file cond_comp.c.
References cc_attr_tbl, cc_blk_stk_tbl, cc_initial_token, cc_ln_fw_idx, cc_ln_lw_idx, CC_LN_NAME_IDX, CC_LN_NAME_LEN, cc_ln_tbl, cc_ln_tbl_idx, CC_NUM_ID_WDS, Cc_Tok_Unknown, CHECK_INITIAL_ALLOC, CLEAR_TBL_NTRY, EOS, FALSE, Func_Entry, Func_Exit, NAME_POOL_ONES_IDX, NAME_POOL_ZERO_IDX, NULL, NULL_IDX, TBL_REALLOC_CK, TOKEN_COLUMN, TOKEN_ERR, TOKEN_KIND_LEN, TOKEN_KIND_STR, TOKEN_LEN, TOKEN_LINE, TOKEN_STR_WD, and TRACE.
Referenced by init_compiler().
static void insert_macro | ( | int | attr_idx, |
cc_arg_type * | arg_head, | ||
int | id_start_idx, | ||
int | col, | ||
int | save_pp_line_idx | ||
) | [static] |
Definition at line 4924 of file cond_comp.c.
References adjust_continued_macro(), cc_advance_idx(), CC_AT_STR_PTR, cc_stmt_buf_idx, expanded_macro_len(), Func_Entry, Func_Exit, len, cc_arg_entry::name, cc_arg_entry::name_len, cc_arg_entry::next, NULL, nxt_line, nxt_line_col, pp_line_idx, shift_nxt_line(), and TRACE.
Referenced by scan_fortran_macro().
static int ntr_cc_sym_tbl | ( | cc_token_type * | token, |
int | name_idx | ||
) | [static] |
Definition at line 4334 of file cond_comp.c.
References CC_AT_NAME_IDX, CC_AT_NAME_LEN, CC_LN_ATTR_IDX, cc_ln_lw_idx, CC_LN_NAME_IDX, CC_LN_NAME_LEN, cc_ln_tbl, cc_ln_tbl_idx, CLEAR_TBL_NTRY, Func_Entry, Func_Exit, NTR_CC_ATTR_TBL, NTR_CC_NAME_POOL, TBL_REALLOC_CK, TOKEN_LEN, TOKEN_STR, and TRACE.
Referenced by enter_cmd_line_cc_define(), enter_predefined_macros(), and parse_cc_line().
static boolean parse_cc_add_opnd | ( | opnd_type * | result | ) | [static] |
Definition at line 3490 of file cond_comp.c.
References cc_get_token(), CC_LA_CH_VALUE, Cc_Tok_Op_Div, Cc_Tok_Op_Mod, Cc_Tok_Op_Mult, cc_token, COPY_OPND, Div_Opr, FALSE, Func_Entry, Func_Exit, IR_COL_NUM, IR_LINE_NUM, IR_OPND_L, IR_OPND_R, IR_OPR, IR_Tbl_Idx, Mod_Opr, Mult_Opr, NTR_IR_TBL, NULL, OPND_FLD, OPND_IDX, parse_cc_mult_opnd(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_2().
static boolean parse_cc_equiv_opnd | ( | opnd_type * | result | ) | [static] |
Definition at line 3937 of file cond_comp.c.
References Bor_Opr, Cc_Tok_Op_Bor, 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, parse_cc_level_6(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_6(), and parse_cc_level_7().
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().
static boolean parse_cc_level_2 | ( | opnd_type * | result | ) | [static] |
Definition at line 3587 of file cond_comp.c.
References Cc_Tok_Op_Add, Cc_Tok_Op_Sub, 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, Minus_Opr, NTR_IR_TBL, NULL, NULL_IDX, OPND_FLD, OPND_IDX, parse_cc_add_opnd(), Plus_Opr, TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_3().
static boolean parse_cc_level_3 | ( | opnd_type * | result | ) | [static] |
Definition at line 3651 of file cond_comp.c.
References Cc_Tok_Op_Lshift, Cc_Tok_Op_Rshift, 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, NULL_IDX, OPND_FLD, OPND_IDX, parse_cc_level_2(), Shiftl_Opr, Shiftr_Opr, TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_4().
static boolean parse_cc_level_4 | ( | opnd_type * | result | ) | [static] |
Definition at line 3709 of file cond_comp.c.
References Cc_Tok_Op_Ge, Cc_Tok_Op_Gt, Cc_Tok_Op_Le, Cc_Tok_Op_Lt, cc_token, COPY_OPND, Func_Entry, Func_Exit, Ge_Opr, Gt_Opr, IR_COL_NUM, IR_LINE_NUM, IR_OPND_L, IR_OPND_R, IR_OPR, IR_Tbl_Idx, Le_Opr, Lt_Opr, NTR_IR_TBL, NULL, OPND_FLD, OPND_IDX, parse_cc_level_3(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_5().
static boolean parse_cc_level_5 | ( | opnd_type * | result | ) | [static] |
Definition at line 3776 of file cond_comp.c.
References Cc_Tok_Op_Eq, Cc_Tok_Op_Ne, cc_token, COPY_OPND, Eq_Opr, Func_Entry, Func_Exit, IR_COL_NUM, IR_LINE_NUM, IR_OPND_L, IR_OPND_R, IR_OPR, IR_Tbl_Idx, Ne_Opr, NTR_IR_TBL, NULL, OPND_FLD, OPND_IDX, parse_cc_level_4(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_or_opnd().
static boolean parse_cc_level_6 | ( | opnd_type * | result | ) | [static] |
Definition at line 3886 of file cond_comp.c.
References Cc_Tok_Op_Neqv, 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, Neqv_Opr, NTR_IR_TBL, NULL, OPND_FLD, OPND_IDX, parse_cc_equiv_opnd(), parse_cc_or_opnd(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_equiv_opnd().
static boolean parse_cc_level_7 | ( | opnd_type * | result | ) | [static] |
Definition at line 3988 of file cond_comp.c.
References And_Opr, Cc_Tok_Op_And, 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, parse_cc_equiv_opnd(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_8().
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().
boolean parse_cc_line | ( | void | ) |
Definition at line 127 of file cond_comp.c.
References angle_brkt_include, ARG_ARG, CC_AT_DEFINED, CC_CURR_BLK_DONE, CC_CURR_BLK_IN_ERROR, CC_CURR_BLK_IS_ACTIVE, CC_CURR_BLK_TYPE, Cc_Elif_Blk, Cc_Else_Blk, cc_get_stmt(), cc_get_token(), Cc_If_Blk, Cc_Ifdef_Blk, Cc_Ifndef_Blk, CC_LA_CH_COLUMN, CC_LA_CH_LINE, CC_LA_CH_VALUE, cc_line_continued, CC_NEXT_LA_CH, cc_stmt_buf, cc_stmt_buf_idx, Cc_Tok_Constant, Cc_Tok_EOS, Cc_Tok_Id, Cc_Tok_Kwd_Define, Cc_Tok_Kwd_Elif, Cc_Tok_Kwd_Else, Cc_Tok_Kwd_Endif, Cc_Tok_Kwd_Error, Cc_Tok_Kwd_If, Cc_Tok_Kwd_Ifdef, Cc_Tok_Kwd_Ifndef, Cc_Tok_Kwd_Include, Cc_Tok_Kwd_Undef, cc_token, db_quote, delim, EOS, eos, EOS_STR, Error, FALSE, find_line_and_col(), flush_cc_line(), fold_cc_expr(), Func_Entry, Func_Exit, ignore_source_line, include_file, include_found, Internal, MAX_FILE_NAME_SIZE, MAX_SRC_LINE_SIZE, newline, NO_ARG, ntr_cc_sym_tbl(), ntr_next_msg_queue(), NULL, NULL_IDX, parse_cc_expr(), parse_define_str(), POP_CC_BLK_STK, pound, PRINTMSG(), PUSH_CC_BLK_STK, quote, scan_cc_line(), srch_cc_sym_tbl(), STR_ARG, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TRACE, TRUE, and Warning.
Referenced by fixed_get_stmt(), free_get_stmt(), pp_get_stmt(), and preprocess_only_driver().
static boolean parse_cc_mult_opnd | ( | opnd_type * | result | ) | [static] |
Definition at line 3420 of file cond_comp.c.
References Bnot_Opr, cc_get_token(), cc_stmt_buf, cc_stmt_buf_idx, Cc_Tok_Op_Add, Cc_Tok_Op_Bnot, Cc_Tok_Op_Not, Cc_Tok_Op_Sub, cc_token, COPY_OPND, FALSE, Func_Entry, Func_Exit, IR_COL_NUM, IR_LINE_NUM, IR_OPND_L, IR_OPR, IR_Tbl_Idx, Not_Opr, NTR_IR_TBL, NULL, NULL_IDX, OPND_FLD, OPND_IDX, parse_cc_operand(), TOKEN_COLUMN, TOKEN_LINE, TRACE, TRUE, Uminus_Opr, and Uplus_Opr.
Referenced by parse_cc_add_opnd().
static boolean parse_cc_operand | ( | opnd_type * | the_opnd | ) | [static] |
Definition at line 4089 of file cond_comp.c.
References C_INT_TO_CN, CC_AT_DEFINED, cc_get_token(), CC_LA_CH_CLASS, CC_LA_CH_COLUMN, CC_LA_CH_LINE, CC_LA_CH_VALUE, CC_NEXT_LA_CH, Cc_Tok_Constant, Cc_Tok_Id, Cc_Tok_Kwd_Define, Cc_Tok_Kwd_Defined, Cc_Tok_Kwd_Elif, Cc_Tok_Kwd_Else, Cc_Tok_Kwd_Endif, Cc_Tok_Kwd_If, Cc_Tok_Kwd_Ifdef, Cc_Tok_Kwd_Ifndef, Cc_Tok_Kwd_Include, Cc_Tok_Kwd_Undef, cc_token, CG_INTEGER_DEFAULT_TYPE, Ch_Class_Digit, Ch_Class_Letter, CN_INTEGER_ONE_IDX, CN_INTEGER_ZERO_IDX, CN_Tbl_Idx, COPY_OPND, Error, EXIT, FALSE, flush_cc_line(), Func_Entry, Func_Exit, Internal, IR_COL_NUM, IR_LINE_NUM, IR_OPND_L, IR_OPR, IR_Tbl_Idx, NTR_IR_TBL, ntr_next_msg_queue(), NULL, NULL_IDX, OPND_COL_NUM, OPND_FLD, OPND_IDX, OPND_LINE_NUM, Paren_Opr, parse_cc_expr(), PRINTMSG(), srch_cc_sym_tbl(), STR_ARG, Tok_Id, TOKEN_COLUMN, TOKEN_CONST_TBL_IDX, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TRACE, TRUE, and underscore.
Referenced by parse_cc_mult_opnd().
static boolean parse_cc_or_opnd | ( | opnd_type * | result | ) | [static] |
Definition at line 3835 of file cond_comp.c.
References Band_Opr, Cc_Tok_Op_Band, 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, parse_cc_level_5(), TOKEN_COLUMN, TOKEN_LINE, TRACE, and TRUE.
Referenced by parse_cc_level_6().
static void parse_define_str | ( | int | attr_idx | ) | [static] |
Definition at line 668 of file cond_comp.c.
References blank, CC_AT_DEFINED, CC_AT_NAME_PTR, CC_AT_NUM_ARGS, CC_AT_STR_LEN, CC_AT_STR_PTR, cc_get_token(), CC_LA_CH_CLASS, CC_LA_CH_VALUE, CC_NEXT_LA_CH, CC_NUM_ID_WDS, cc_stmt_buf, cc_stmt_buf_idx, Cc_Tok_Id, cc_token, Ch_Class_Letter, COMMA, copy_define_str(), EOS, Error, EXIT, FALSE, flush_cc_line(), free(), Func_Entry, Func_Exit, len, LPAREN, cc_darg_entry::name, cc_darg_entry::name_len, cc_darg_entry::next, ntr_next_msg_queue(), NULL, RPAREN, shift_cc_stmt_buf(), STR_ARG, cc_id_str_entry::string, tab, TOKEN_COLUMN, TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TOKEN_STR_WD, TRACE, TRUE, underscore, Warning, and cc_id_str_entry::words.
Referenced by parse_cc_line().
static void scan_cc_line | ( | void | ) | [static] |
Definition at line 1022 of file cond_comp.c.
References CC_AT_DEFINED, CC_AT_DYNAMIC_PREDEF, CC_AT_NUM_ARGS, CC_AT_STR_LEN, CC_AT_STR_PTR, cc_get_token(), CC_LA_CH_CLASS, CC_LA_CH_VALUE, CC_NEXT_LA_CH, cc_stmt_buf, cc_stmt_buf_idx, Cc_Tok_Id, Cc_Tok_Kwd_Define, Cc_Tok_Kwd_Defined, Cc_Tok_Kwd_Elif, Cc_Tok_Kwd_Else, Cc_Tok_Kwd_Endif, Cc_Tok_Kwd_If, Cc_Tok_Kwd_Ifdef, Cc_Tok_Kwd_Ifndef, Cc_Tok_Kwd_Include, Cc_Tok_Kwd_Undef, cc_token, Ch_Class_Letter, EOS, FALSE, find_line_and_col(), flush_cc_line(), Func_Entry, Func_Exit, get_dynamic_predef_str(), len, NULL, NULL_IDX, scan_cc_macro(), shift_cc_stmt_buf(), srch_cc_sym_tbl(), TOKEN_LEN, TOKEN_STR, TRACE, TRUE, and underscore.
Referenced by parse_cc_line().
static void scan_cc_macro | ( | int | attr_idx, |
int | id_start_idx | ||
) | [static] |
Definition at line 1519 of file cond_comp.c.
References alloc_arg_entry(), CC_AT_NAME_PTR, CC_AT_NUM_ARGS, CC_AT_STR_LEN, CC_AT_STR_PTR, CC_LA_CH_VALUE, CC_NEXT_LA_CH, cc_stmt_buf, cc_stmt_buf_idx, COMMA, EOS, EXIT, find_line_and_col(), flush_cc_line(), free_arg_entry(), Func_Entry, Func_Exit, len, LPAREN, cc_arg_entry::name, cc_arg_entry::name_len, cc_arg_entry::next, ntr_next_msg_queue(), NULL, RPAREN, shift_cc_stmt_buf(), STR_ARG, TRACE, and Warning.
Referenced by scan_cc_line().
boolean scan_fixed_comment | ( | void | ) |
Definition at line 1220 of file cond_comp.c.
References cc_advance_idx(), CC_AT_DEFINED, CC_AT_DYNAMIC_PREDEF, CC_AT_NUM_ARGS, CC_AT_STR_LEN, CC_AT_STR_PTR, CC_GET_ID_TOKEN, cc_stmt_buf_idx, cc_token, Comment_Line, end_stmt_line_idx, FALSE, Func_Entry, Func_Exit, get_dynamic_predef_str(), len, NULL, NULL_IDX, NXT_COL, nxt_line, nxt_line_col, nxt_line_end_idx, pp_line_idx, PP_LINE_TYPE, prev_idx, Regular_Line, scan_fortran_macro(), shift_nxt_line(), srch_cc_sym_tbl(), TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TRACE, and TRUE.
Referenced by pp_get_stmt().
static boolean scan_fortran_macro | ( | int | attr_idx, |
int | id_start_idx, | ||
int | save_pp_line_idx | ||
) | [static] |
Definition at line 1719 of file cond_comp.c.
References alloc_arg_entry(), blank, cc_advance_idx(), CC_AT_NAME_PTR, CC_AT_NUM_ARGS, cc_stmt_buf_idx, comma, eos, EXIT, FALSE, free_arg_entry(), Func_Entry, Func_Exit, insert_macro(), lbrkt, lparen, cc_arg_entry::name, cc_arg_entry::name_len, cc_arg_entry::next, ntr_next_msg_queue(), NULL, nxt_line, nxt_line_col, pp_line_idx, PP_LINE_NUM, rbrkt, rparen, STR_ARG, tab, TRACE, TRUE, and Warning.
Referenced by scan_fixed_comment(), and scan_fortran_stmt().
boolean scan_fortran_stmt | ( | void | ) |
Definition at line 1324 of file cond_comp.c.
References adjust_continued_macro(), cc_advance_idx(), CC_AT_DEFINED, CC_AT_DYNAMIC_PREDEF, CC_AT_NUM_ARGS, CC_AT_STR_LEN, CC_AT_STR_PTR, CC_GET_ID_TOKEN, cc_stmt_buf_idx, cc_token, ch_class, Ch_Class_Letter, end_stmt_line_idx, EXIT, FALSE, Func_Entry, Func_Exit, get_dynamic_predef_str(), len, NULL, NULL_IDX, NXT_COL, nxt_line, nxt_line_col, nxt_line_end_idx, nxt_line_num_lines, pp_line_idx, pp_nxt_line_EOL, prev_idx, scan_fortran_macro(), shift_nxt_line(), srch_cc_sym_tbl(), TOKEN_LEN, TOKEN_LINE, TOKEN_STR, TRACE, TRUE, and underscore.
Referenced by pp_get_stmt().
static void shift_cc_stmt_buf | ( | int | start_idx, |
int | shift | ||
) | [static] |
Definition at line 4744 of file cond_comp.c.
References cc_stmt_buf, cc_stmt_buf_len, cc_stmt_buf_line, cc_stmt_buf_num_lines, Func_Entry, Func_Exit, NULL, cc_stmt_buf_line_entry::start_idx, and TRACE.
Referenced by cc_get_stmt(), parse_define_str(), scan_cc_line(), and scan_cc_macro().
static void shift_nxt_line | ( | int | start_idx, |
int | shift | ||
) | [static] |
Definition at line 4793 of file cond_comp.c.
References extra_nxt_line, Func_Entry, Func_Exit, Internal, Limit, MAX_STMT_CHAR_SIZE, NULL, NULL_IDX, nxt_line, nxt_line_col, nxt_line_end_idx, nxt_line_num_lines, nxt_line_start_idx, pp_nxt_line_EOL, pp_nxt_line_length, pp_nxt_line_num, pp_orig_line_size, PRINTMSG(), and TRACE.
Referenced by insert_macro(), scan_fixed_comment(), and scan_fortran_stmt().
static int srch_cc_sym_tbl | ( | char * | name_str, |
int | name_len, | ||
int * | name_idx | ||
) | [static] |
Definition at line 4276 of file cond_comp.c.
References CC_LN_ATTR_IDX, cc_ln_fw_idx, cc_ln_lw_idx, CC_LN_NAME_IDX, cc_ln_tbl, Func_Entry, Func_Exit, idx, NULL, NULL_IDX, srch_name_tbl(), str_pool, and TRACE.
Referenced by enter_cmd_line_cc_define(), enter_predefined_macros(), parse_cc_line(), parse_cc_operand(), scan_cc_line(), scan_fixed_comment(), and scan_fortran_stmt().
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.