#include <stdio.h>


Go to the source code of this file.
Data Types | |
| type | sstring |
| type | fn_decl |
Defines | |
| #define | INIT_SSTRING(STR) ((STR)->base = 0, (STR)->ptr = 0, (STR)->limit = 0) |
| #define | FREE_SSTRING(STR) do { if ((STR)->base) free (STR)->base; } while(0) |
| #define | SSTRING_PUT(STR, C) |
| #define | SSTRING_LENGTH(STR) ((STR)->ptr - (STR)->base) |
| #define | MAKE_SSTRING_SPACE(STR, COUNT) if ((STR)->limit - (STR)->ptr < (COUNT)) make_sstring_space (STR, COUNT); |
| #define | IDENTIFIER_TOKEN 300 |
| #define | CHAR_TOKEN 301 |
| #define | STRING_TOKEN 302 |
| #define | INT_TOKEN 303 |
Functions/Subroutines | |
| void | sstring_append (sstring *, sstring *) |
| void | make_sstring_space (sstring *, int) |
| int | skip_spaces (FILE *, int) |
| int | scan_ident (FILE *, sstring *, int) |
| int | scan_string (FILE *, sstring *, int) |
| int | read_upto (FILE *, sstring *, int) |
| unsigned long | hash (const char *) |
| void | recognized_function (const struct cpp_token *, unsigned int, int, int) |
| void | recognized_extern (const struct cpp_token *) |
| unsigned int | hashstr (const char *, unsigned int) |
| int | scan_decls (struct cpp_reader *, int, char **) |
| int | get_token (FILE *, sstring *) |
Variables | |
| int | source_lineno |
| sstring | source_filename |
| int | lineno |
| struct line_maps | line_table |
| #define SSTRING_PUT | ( | STR, | |||
| C | ) |
Definition at line 175 of file scan.c.
References atoi(), sstring::base, c, CHAR_TOKEN, EOF, get_token(), getc(), IDENTIFIER_TOKEN, INT_TOKEN, ISDIGIT, ISIDST, lineno, MAKE_SSTRING_SPACE, sstring::ptr, scan_ident(), scan_string(), skip_spaces(), source_lineno, SSTRING_PUT, STRING_TOKEN, and ungetc().
| unsigned int hashstr | ( | const char * | , | |
| unsigned | int | |||
| ) |
Definition at line 27 of file scan.c.
References sstring::base, sstring::limit, sstring::ptr, and xrealloc().
Definition at line 155 of file scan.c.
References EOF, getc(), MAKE_SSTRING_SPACE, sstring::ptr, and SSTRING_PUT.
Referenced by main().
| int scan_decls | ( | struct cpp_reader * | , | |
| int | , | |||
| char ** | ||||
| ) |
Definition at line 60 of file scan.c.
References sstring::base, EOF, getc(), ISIDNUM, ISIDST, MAKE_SSTRING_SPACE, sstring::ptr, and SSTRING_PUT.
Referenced by get_token().
Definition at line 82 of file scan.c.
References c, EOF, getc(), MAKE_SSTRING_SPACE, sstring::ptr, and SSTRING_PUT.
Referenced by get_token().
| int skip_spaces | ( | FILE * | , | |
| int | ||||
| ) |
Definition at line 117 of file scan.c.
References EOF, getc(), lineno, source_lineno, and ungetc().
Referenced by get_token(), and main().
Definition at line 44 of file scan.c.
References sstring::base, count, d, MAKE_SSTRING_SPACE, sstring::ptr, s, and SSTRING_LENGTH.
Definition at line 100 of file fix-header.c.
Referenced by c_common_init_options(), cb_def_pragma(), cb_define(), cb_line_change(), cb_undef(), cpp_make_system_header(), do_line(), do_linemarker(), finish_options(), general_init(), maybe_print_line(), pp_file_change(), print_line(), push_command_line_include(), read_scan_file(), and scan_decls().
| int lineno |
Definition at line 1348 of file ldlex.c.
Referenced by _ARGCHCK(), _fcontext(), add_instance_variable(), begin_class_definition(), bison_rule_compstmt_(), bison_rule_pushlevel_(), build_category_template(), build_class_template(), build_ivar_list_template(), build_ivar_template(), build_method_list_template(), build_method_prototype_list_template(), build_method_prototype_template(), build_method_template(), build_module_descriptor(), build_protocol_template(), build_selector_template(), build_srcloc_here(), build_super_template(), c_common_parse_file(), c_expand_body(), c_expand_start_cond(), c_lex(), cb_def_pragma(), cb_file_change(), cb_line_change(), check_handlers(), check_handlers_1(), check_init(), check_protection(), coff_print_symbol(), coff_write_native_symbol(), complete_start_java_method(), cp_line_of(), Create_DST_type_For_Tree(), create_temporary_var(), Create_TY_For_Tree(), cvrt_proc_to_pdg(), cwh_addr_insert_bounds_check(), cwh_stmt_insert_conformance_check(), DST_enter_normal_field(), DST_enter_struct_union_members(), end_input(), end_java_method(), expand_asm(), expand_body(), expand_byte_code(), expand_expr(), expand_inline_function(), expand_stmt(), feed_input(), ffecom_do_entry_(), ffecom_gen_sfuncdef_(), ffecom_start_progunit_(), ffecom_subscript_check_(), ffecom_sym_transform_(), ffecom_sym_transform_assign_(), ffeintrin_fulfill_generic(), ffelex_file_fixed(), ffelex_file_free(), ffelex_hash_(), ffelex_include_(), ffelex_next_line_(), ffestd_exec_end(), file_and_line_for_asm(), finish_file(), finish_label_stmt(), finish_stmt_tree(), finish_struct(), fname_decl(), generate_bytecode_insns(), genrtl_asm_stmt(), genrtl_break_stmt(), genrtl_continue_stmt(), genrtl_decl_stmt(), genrtl_do_pushlevel(), genrtl_do_stmt(), genrtl_expr_stmt_value(), genrtl_finish_function(), genrtl_for_stmt(), genrtl_goto_stmt(), genrtl_if_stmt(), genrtl_return_stmt(), genrtl_switch_stmt(), genrtl_try_block(), genrtl_while_stmt(), get_token(), getline(), GTY(), ihex_scan(), inf_skip_spaces(), init_c_lex(), init_md_reader(), init_md_reader_args_cb(), instantiate_class_template(), instantiate_decl(), issue_msg(), java_allocate_new_line(), java_init_lex(), java_lex(), ldfile_open_command_file(), lookup_label(), lookup_line(), lookup_tag(), lower_io_statement(), main(), make_label_decl(), make_node(), mmo_scan(), objc_init(), output_func_start_profiler(), pedwarn_c90(), pop_binding_level(), pop_label_level(), pop_tinst_level(), poplevel(), prep_stmt(), print_instantiation_context(), print_instantiation_full_context(), print_line_numbers_this_cu(), Print_Scheduling_Note(), push_binding_level(), push_class(), push_tinst_level(), read_graph_file(), read_token(), resume_binding_level(), scan_for_missed_items(), skip_spaces(), snarf_block(), snarf_defarg(), snarf_method(), srec_scan(), start_function(), start_static_initialization_or_destruction(), store_parm_decls(), suspend_binding_level(), synthesize_method(), tag_lines(), tsubst(), tsubst_decl(), tsubst_expr(), tsubst_friend_function(), use_label(), use_thunk(), vfinfo(), VPARAMS(), walk_tree(), warn_if_unknown_interface(), Warning(), WFE_Add_Aggregate_Init_Label(), WFE_Add_Case_Node(), WFE_Address_Of(), WFE_Assemble_Alias(), WFE_Assemble_Constructor(), WFE_Assemble_Destructor(), Wfe_Expand_Asm_Operands(), WFE_Expand_Expr(), WFE_Expand_Stmt(), WFE_Generate_Thunk(), WFE_Start_Function(), WGEN_Address_Of(), WGEN_Adjust_Thunk(), WGEN_Assemble_Alias(), Wgen_Expand_Asm_Operands(), WGEN_Expand_Expr(), WGEN_Expand_Stmt(), WGEN_Start_Function(), yylex(), and yyungetc().
| int source_lineno |
Definition at line 23 of file scan.c.
Referenced by get_token(), inf_skip_spaces(), and skip_spaces().
1.5.6