#include "hashtable.h"


Go to the source code of this file.
Data Types | |
| type | dummy |
| type | cpp_macro |
| type | _cpp_buff |
| type | search_path |
| union | utoken |
| type | tokenrun |
| type | cpp_context |
| type | lexer_state |
| type | spec_nodes |
| type | printer |
| type | cpp_buffer |
| type | cpp_reader |
Defines | |
| #define | U (const uchar *) |
| #define | BITS_PER_CPPCHAR_T (CHAR_BIT * sizeof (cppchar_t)) |
| #define | VALID_SIGN(c, prevc) |
| #define | CPP_OPTION(PFILE, OPTION) ((PFILE)->opts.OPTION) |
| #define | CPP_BUFFER(PFILE) ((PFILE)->buffer) |
| #define | CPP_BUF_COLUMN(BUF, CUR) ((CUR) - (BUF)->line_base + (BUF)->col_adjust) |
| #define | CPP_BUF_COL(BUF) CPP_BUF_COLUMN(BUF, (BUF)->cur) |
| #define | CPP_STACK_MAX 200 |
| #define | DEFAULT_ALIGNMENT offsetof (struct dummy, u) |
| #define | CPP_ALIGN2(size, align) (((size) + ((align) - 1)) & ~((align) - 1)) |
| #define | CPP_ALIGN(size) CPP_ALIGN2 (size, DEFAULT_ALIGNMENT) |
| #define | _cpp_mark_macro_used(NODE) |
| #define | BUFF_ROOM(BUFF) (size_t) ((BUFF)->limit - (BUFF)->cur) |
| #define | BUFF_FRONT(BUFF) ((BUFF)->cur) |
| #define | BUFF_LIMIT(BUFF) ((BUFF)->limit) |
| #define | FIRST(c) ((c)->u.iso.first) |
| #define | LAST(c) ((c)->u.iso.last) |
| #define | CUR(c) ((c)->u.trad.cur) |
| #define | RLIMIT(c) ((c)->u.trad.rlimit) |
| #define | _dollar_ok(x) ((x) == '$' && CPP_OPTION (pfile, dollars_in_ident)) |
| #define | is_idchar(x) (ISIDNUM(x) || _dollar_ok(x)) |
| #define | is_numchar(x) ISIDNUM(x) |
| #define | is_idstart(x) (ISIDST(x) || _dollar_ok(x)) |
| #define | is_numstart(x) ISDIGIT(x) |
| #define | is_hspace(x) ISBLANK(x) |
| #define | is_vspace(x) IS_VSPACE(x) |
| #define | is_nvspace(x) IS_NVSPACE(x) |
| #define | is_space(x) IS_SPACE_OR_NUL(x) |
| #define | CPP_IN_SYSTEM_HEADER(PFILE) ((PFILE)->map && (PFILE)->map->sysp) |
| #define | CPP_PEDANTIC(PF) CPP_OPTION (PF, pedantic) |
| #define | CPP_WTRADITIONAL(PF) CPP_OPTION (PF, warn_traditional) |
| #define | DSC(str) (const uchar *)str, sizeof str - 1 |
| #define | xnew(T) (T *) xmalloc (sizeof(T)) |
| #define | xcnew(T) (T *) xcalloc (1, sizeof(T)) |
| #define | xnewvec(T, N) (T *) xmalloc (sizeof(T) * (N)) |
| #define | xcnewvec(T, N) (T *) xcalloc (N, sizeof(T)) |
| #define | xobnew(O, T) (T *) obstack_alloc (O, sizeof(T)) |
Typedefs | |
| typedef unsigned char | uchar |
| typedef struct _cpp_buff | _cpp_buff |
| typedef struct tokenrun | tokenrun |
| typedef struct cpp_context | cpp_context |
Enumerations | |
| enum | include_type { IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE, IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE, IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE, IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE } |
Functions/Subroutines | |
| _cpp_buff *_cpp_get_buff | PARAMS ((cpp_reader *, size_t)) |
| void _cpp_release_buff | PARAMS ((cpp_reader *, _cpp_buff *)) |
| void _cpp_extend_buff | PARAMS ((cpp_reader *, _cpp_buff **, size_t)) |
| _cpp_buff *_cpp_append_extend_buff | PARAMS ((cpp_reader *, _cpp_buff *, size_t)) |
| void _cpp_free_buff | PARAMS ((_cpp_buff *)) |
| int _cpp_begin_message | PARAMS ((cpp_reader *, int, unsigned int, unsigned int)) |
| void _cpp_free_definition | PARAMS ((cpp_hashnode *)) |
| bool _cpp_create_definition | PARAMS ((cpp_reader *, cpp_hashnode *)) |
| void _cpp_pop_context | PARAMS ((cpp_reader *)) |
| void _cpp_push_text_context | PARAMS ((cpp_reader *, cpp_hashnode *, const uchar *, size_t)) |
| bool _cpp_save_parameter | PARAMS ((cpp_reader *, cpp_macro *, cpp_hashnode *)) |
| bool _cpp_arguments_ok | PARAMS ((cpp_reader *, cpp_macro *, const cpp_hashnode *, unsigned int)) |
| int _cpp_warn_if_unused_macro | PARAMS ((cpp_reader *, cpp_hashnode *, void *)) |
| void _cpp_init_hashtable | PARAMS ((cpp_reader *, hash_table *)) |
| void _cpp_fake_include | PARAMS ((cpp_reader *, const char *)) |
| void _cpp_never_reread | PARAMS ((struct include_file *)) |
| char *_cpp_simplify_pathname | PARAMS ((char *)) |
| bool _cpp_execute_include | PARAMS ((cpp_reader *, const cpp_token *, enum include_type)) |
| int _cpp_compare_file_date | PARAMS ((cpp_reader *, const cpp_token *)) |
| void _cpp_pop_file_buffer | PARAMS ((cpp_reader *, struct include_file *)) |
| int _cpp_equiv_tokens | PARAMS ((const cpp_token *, const cpp_token *)) |
| void _cpp_init_tokenrun | PARAMS ((tokenrun *, unsigned int)) |
| int _cpp_test_assertion | PARAMS ((cpp_reader *, unsigned int *)) |
| int _cpp_handle_directive | PARAMS ((cpp_reader *, int)) |
| void _cpp_do_file_change | PARAMS ((cpp_reader *, enum lc_reason, const char *, unsigned int, unsigned int)) |
| void _cpp_overlay_buffer | PARAMS ((cpp_reader *pfile, const uchar *, size_t)) |
| bool _cpp_create_trad_definition | PARAMS ((cpp_reader *, cpp_macro *)) |
| bool _cpp_expansions_different_trad | PARAMS ((const cpp_macro *, const cpp_macro *)) |
| uchar *_cpp_copy_replacement_text | PARAMS ((const cpp_macro *, uchar *)) |
| size_t _cpp_replacement_text_len | PARAMS ((const cpp_macro *)) |
| static int ustrcmp | PARAMS ((const uchar *, const uchar *)) |
| static int ustrncmp | PARAMS ((const uchar *, const uchar *, size_t)) |
| static size_t ustrlen | PARAMS ((const uchar *)) |
| static uchar *ustrchr | PARAMS ((const uchar *, int)) |
| static int ufputs | PARAMS ((const uchar *, FILE *)) |
| static int | ustrcmp (s1, s2) const uchar *s1 |
Variables | |
| unsigned char | _cpp_trigraph_map [UCHAR_MAX+1] |
| static int * | s2 |
| size_t | n |
| int | c |
| FILE * | f |
| #define _cpp_mark_macro_used | ( | NODE | ) |
Value:
do { \ if ((NODE)->type == NT_MACRO && !((NODE)->flags & NODE_BUILTIN)) \ (NODE)->value.macro->used = 1; } while (0)
Definition at line 106 of file cpphash.h.
Referenced by do_ifdef(), do_ifndef(), and parse_defined().
| #define _dollar_ok | ( | x | ) | ((x) == '$' && CPP_OPTION (pfile, dollars_in_ident)) |
| #define BITS_PER_CPPCHAR_T (CHAR_BIT * sizeof (cppchar_t)) |
Definition at line 35 of file cpphash.h.
Referenced by cpp_interpret_charconst(), cpp_parse_escape(), eval_token(), narrow_str_to_charconst(), wide_str_to_charconst(), and width_to_mask().
| #define BUFF_FRONT | ( | BUFF | ) | ((BUFF)->cur) |
Definition at line 128 of file cpphash.h.
Referenced by _cpp_create_trad_definition(), _cpp_save_parameter(), alloc_expansion_token(), create_iso_definition(), do_assert(), maybe_start_funlike(), parse_answer(), parse_string(), replace_args_and_push(), save_replacement_text(), stringify_arg(), and unescaped_terminator_p().
| #define BUFF_LIMIT | ( | BUFF | ) | ((BUFF)->limit) |
Definition at line 127 of file cpphash.h.
Referenced by _cpp_append_extend_buff(), _cpp_extend_buff(), _cpp_save_parameter(), alloc_expansion_token(), parse_answer(), save_replacement_text(), and stringify_arg().
Definition at line 47 of file cpphash.h.
Referenced by _cpp_skip_block_comment(), adjust_column(), skip_block_comment(), skip_whitespace(), and trigraph_p().
Definition at line 46 of file cpphash.h.
Referenced by _cpp_get_fresh_line(), _cpp_lex_direct(), and _cpp_process_line_notes().
| #define CPP_BUFFER | ( | PFILE | ) | ((PFILE)->buffer) |
Definition at line 488 of file cpphash.h.
Referenced by _cpp_begin_message(), _cpp_builtin_macro_text(), and _cpp_lex_direct().
| #define CPP_OPTION | ( | PFILE, | |||
| OPTION | ) | ((PFILE)->opts.OPTION) |
Definition at line 44 of file cpphash.h.
Referenced by _cpp_begin_message(), _cpp_builtin_macro_text(), _cpp_clean_line(), _cpp_convert_input(), _cpp_create_definition(), _cpp_create_trad_definition(), _cpp_handle_directive(), _cpp_lex_direct(), _cpp_process_line_notes(), _cpp_scan_out_logical_line(), _cpp_skip_block_comment(), _cpp_stack_file(), _cpp_valid_ucn(), adjust_column(), cb_define(), cb_file_change(), cb_line_change(), check_promotion(), collect_args(), continue_after_nul(), convert_hex(), convert_oct(), copy_comment(), cpp_avoid_paste(), cpp_classify_number(), cpp_error(), cpp_handle_deferred_pragma(), cpp_included(), cpp_init_iconv(), cpp_interpret_charconst(), cpp_interpret_integer(), cpp_macro_definition(), cpp_parse_escape(), cpp_push_buffer(), cpp_read_state(), cpp_scan_nooutput(), cpp_valid_state(), create_iso_definition(), do_define(), do_else(), do_endif(), do_include_common(), do_line(), do_pragma(), do_pragma_once(), do_undef(), emit_numeric_escape(), end_directive(), eval_token(), find_file_in_dir(), find_include_file(), forms_identifier_p(), handle_missing_header(), maybe_read_ucs(), narrow_str_to_charconst(), num_binary_op(), num_div_op(), num_inequality_op(), num_mul(), num_unary_op(), open_file_failed(), parse_include(), parse_params(), parse_string(), paste_all_tokens(), paste_tokens(), print_line(), print_location(), read_file_guts(), read_name_map(), reduce(), run_directive(), s(), scan_out_logical_line(), scan_translation_unit_trad(), search_from(), skip_block_comment(), stack_include_file(), trigraph_p(), ucn_valid_in_identifier(), validate_pch(), VPARAMS(), warn_about_normalization(), warn_in_comment(), warn_of_redefinition(), and wide_str_to_charconst().
| #define CPP_PEDANTIC | ( | PF | ) | CPP_OPTION (PF, pedantic) |
Definition at line 489 of file cpphash.h.
Referenced by _cpp_arguments_ok(), _cpp_handle_directive(), _cpp_lex_direct(), convert_escape(), cpp_classify_number(), cpp_parse_escape(), directive_diagnostics(), do_line(), eval_token(), num_binary_op(), parse_defined(), parse_slow(), skip_whitespace(), and ucn_valid_in_identifier().
| #define CPP_STACK_MAX 200 |
| #define CPP_WTRADITIONAL | ( | PF | ) | CPP_OPTION (PF, warn_traditional) |
Definition at line 490 of file cpphash.h.
Referenced by _cpp_valid_ucn(), convert_escape(), convert_hex(), cpp_classify_number(), cpp_parse_escape(), directive_diagnostics(), enter_macro_context(), expand_arg(), lex_expansion_token(), maybe_read_ucs(), and num_unary_op().
| #define CUR | ( | c | ) | ((c)->u.trad.cur) |
Definition at line 171 of file cpphash.h.
Referenced by _cpp_create_trad_definition(), _cpp_push_text_context(), _cpp_scan_out_logical_line(), lex_identifier(), scan_out_logical_line(), and scan_parameters().
Definition at line 570 of file cpphash.h.
Referenced by _cpp_create_definition(), _cpp_init_hashtable(), cpp_read_state(), and eval_token().
| #define is_hspace | ( | x | ) | ISBLANK(x) |
| #define is_idchar | ( | x | ) | (ISIDNUM(x) || _dollar_ok(x)) |
Definition at line 468 of file cpphash.h.
Referenced by check_trad_stringification(), collect_expansion(), do_define(), do_undef(), do_xifdef(), handle_directive(), install(), lookup(), macroexpand(), name_newline_fix(), name_p(), parse_assertion(), parse_slow(), rescan(), skip_if_group(), special_symbol(), and test_assertion().
| #define is_idstart | ( | x | ) | (ISIDST(x) || _dollar_ok(x)) |
Definition at line 470 of file cpphash.h.
Referenced by _cpp_scan_out_logical_line(), check_trad_stringification(), collect_expansion(), do_define(), parse_assertion(), scan_out_logical_line(), scan_parameters(), and special_symbol().
| #define is_numchar | ( | x | ) | ISIDNUM(x) |
| #define is_numstart | ( | x | ) | ISDIGIT(x) |
Definition at line 471 of file cpphash.h.
Referenced by _cpp_scan_out_logical_line(), and scan_out_logical_line().
| #define is_nvspace | ( | x | ) | IS_NVSPACE(x) |
Definition at line 474 of file cpphash.h.
Referenced by _cpp_clean_line(), do_define(), do_include(), do_include_next(), do_xifdef(), handle_directive(), skip_escaped_newlines(), skip_if_group(), skip_whitespace(), and warn_in_comment().
| #define is_space | ( | x | ) | IS_SPACE_OR_NUL(x) |
Definition at line 475 of file cpphash.h.
Referenced by _cpp_create_trad_definition(), canonicalize_text(), collect_expansion(), comp_def_part(), macroexpand(), read_filename_string(), read_name_map(), regex_compile(), rescan(), and test_assertion().
| #define is_vspace | ( | x | ) | IS_VSPACE(x) |
Definition at line 473 of file cpphash.h.
Referenced by copy_comment(), parse_string(), save_comment(), scan_out_logical_line(), skip_block_comment(), skip_escaped_newlines(), skip_line_comment(), and skip_whitespace().
| #define LAST | ( | c | ) | ((c)->u.iso.last) |
Definition at line 172 of file cpphash.h.
Referenced by _cpp_create_trad_definition(), _cpp_push_text_context(), _cpp_scan_out_logical_line(), copy_comment(), scan_out_logical_line(), skip_escaped_newlines(), and skip_whitespace().
| #define VALID_SIGN | ( | c, | |||
| prevc | ) |
Value:
(((c) == '+' || (c) == '-') && \ ((prevc) == 'e' || (prevc) == 'E' \ || (((prevc) == 'p' || (prevc) == 'P') \ && CPP_OPTION (pfile, extended_numbers))))
Definition at line 38 of file cpphash.h.
Referenced by lex_number(), parse_number(), and parse_slow().
Definition at line 571 of file cpphash.h.
Referenced by destringize_and_run(), next_context(), and next_tokenrun().
| typedef struct cpp_context cpp_context |
| enum include_type |
| bool _cpp_create_trad_definition PARAMS | ( | (cpp_reader *, cpp_macro *) | ) |
| void _cpp_overlay_buffer PARAMS | ( | (cpp_reader *pfile, const uchar *, size_t) | ) |
| void _cpp_do_file_change PARAMS | ( | (cpp_reader *, enum lc_reason, const char *, unsigned int, unsigned int) | ) |
| int _cpp_handle_directive PARAMS | ( | (cpp_reader *, int) | ) |
| int _cpp_test_assertion PARAMS | ( | (cpp_reader *, unsigned int *) | ) |
| void _cpp_pop_file_buffer PARAMS | ( | (cpp_reader *, struct include_file *) | ) |
| int _cpp_compare_file_date PARAMS | ( | (cpp_reader *, const cpp_token *) | ) |
| bool _cpp_execute_include PARAMS | ( | (cpp_reader *, const cpp_token *, enum include_type) | ) |
| char* _cpp_simplify_pathname PARAMS | ( | (char *) | ) |
| void _cpp_never_reread PARAMS | ( | (struct include_file *) | ) |
| void _cpp_fake_include PARAMS | ( | (cpp_reader *, const char *) | ) |
| void _cpp_init_hashtable PARAMS | ( | (cpp_reader *, hash_table *) | ) |
| int _cpp_warn_if_unused_macro PARAMS | ( | (cpp_reader *, cpp_hashnode *, void *) | ) |
| bool _cpp_arguments_ok PARAMS | ( | (cpp_reader *, cpp_macro *, const cpp_hashnode *, unsigned int) | ) |
| bool _cpp_save_parameter PARAMS | ( | (cpp_reader *, cpp_macro *, cpp_hashnode *) | ) |
| void _cpp_push_text_context PARAMS | ( | (cpp_reader *, cpp_hashnode *, const uchar *, size_t) | ) |
| void _cpp_pop_context PARAMS | ( | (cpp_reader *) | ) |
| bool _cpp_create_definition PARAMS | ( | (cpp_reader *, cpp_hashnode *) | ) |
| void _cpp_free_definition PARAMS | ( | (cpp_hashnode *) | ) |
| int _cpp_begin_message PARAMS | ( | (cpp_reader *, int, unsigned int, unsigned int) | ) |
| _cpp_buff* _cpp_append_extend_buff PARAMS | ( | (cpp_reader *, _cpp_buff *, size_t) | ) |
| void _cpp_extend_buff PARAMS | ( | (cpp_reader *, _cpp_buff **, size_t) | ) |
| void _cpp_release_buff PARAMS | ( | (cpp_reader *, _cpp_buff *) | ) |
| _cpp_buff* _cpp_get_buff PARAMS | ( | (cpp_reader *, size_t) | ) |
Referenced by comp_hashnodes(), cpp_ideq(), and cpp_valid_state().
| unsigned char _cpp_trigraph_map[UCHAR_MAX+1] |
Referenced by _cpp_clean_line(), _cpp_process_line_notes(), skip_escaped_newlines(), and trigraph_p().
| * s2 |
Definition at line 589 of file cpphash.h.
Referenced by _GETENV(), Analyze_index(), arm_comp_type_attributes(), CG_LOOP_Prefetch_Stride(), Compare_NonFinals(), compare_states_for_equiv(), CR_Compare_Symbols(), DEFUN(), dump_ggc_loc_statistics(), elf_sort_elf_symbol(), elf_sym_name_compare(), em_shftc(), expand_builtin_strchr(), expand_builtin_strcspn(), expand_builtin_strpbrk(), expand_builtin_strrchr(), expand_builtin_strspn(), expand_builtin_strstr(), F90_Lower_Analyze_Triplet(), fold_builtin_strchr(), fold_builtin_strcspn(), fold_builtin_strpbrk(), fold_builtin_strrchr(), fold_builtin_strspn(), fold_builtin_strstr(), Get_Doacross_Tile_Size(), get_file_basename(), h8300_eightbit_constant_address_p(), h8300_tiny_constant_address_p(), hash_string_eq(), ia64_expand_dot_prod_v8qi(), insns_match_p(), internal_cplus_demangle(), lang_leave_overlay_section(), locate_and_pad_parm(), memcmp(), memwcpy(), old_insns_match_p(), eqstr::operator()(), pad_below(), Raise_doloop_stmt(), read_encoded_value_with_base(), real_power_of_2_operand(), tagged_types_tu_compatible_p(), try_crossjump_to_edge(), WN_Compare_Symbols(), and WN_get_const_val().
1.5.6