#include "config.h"#include "system.h"#include "coretypes.h"#include "tm.h"#include "cpplib.h"#include "../libcpp/internal.h"#include "tree.h"#include "c-common.h"#include "c-pragma.h"

Go to the source code of this file.
| static void cb_def_pragma | ( | cpp_reader * | pfile, | |
| source_location | line | |||
| ) | [static] |
Definition at line 422 of file c-ppoutput.c.
References cpp_output_line(), fputs(), maybe_print_line(), and print.
| static void cb_define | ( | cpp_reader * | pfile, | |
| source_location | line, | |||
| cpp_hashnode * | node | |||
| ) | [static] |
Definition at line 314 of file c-ppoutput.c.
References cpp_macro_definition(), flag_dump_macros, fputs(), line_table, linemap_lookup(), maybe_print_line(), NODE_NAME, print, putc(), and line_map::to_line.
| static void cb_ident | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED, | |
| source_location | line, | |||
| const cpp_string * | str | |||
| ) | [static] |
Definition at line 305 of file c-ppoutput.c.
References fprintf(), maybe_print_line(), print, and cpp_string::text.
| static void cb_ident | ( | cpp_reader * | , | |
| source_location | , | |||
| const cpp_string * | ||||
| ) | [static] |
| static void cb_include | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED, | |
| source_location | line, | |||
| const unsigned char * | dir, | |||
| const char * | header, | |||
| int | angle_brackets, | |||
| const cpp_token ** | comments | |||
| ) | [static] |
Definition at line 341 of file c-ppoutput.c.
References cpp_output_token(), fprintf(), maybe_print_line(), NULL, PREV_WHITE, print, and putc().
| static void cb_include | ( | cpp_reader * | , | |
| source_location | , | |||
| const unsigned char * | , | |||
| const char * | , | |||
| int | , | |||
| const cpp_token ** | ||||
| ) | [static] |
| static void cb_line_change | ( | cpp_reader * | pfile, | |
| const cpp_token * | token, | |||
| int | parsing_args | |||
| ) | [static] |
Definition at line 276 of file c-ppoutput.c.
References CPP_OPTION, line_table, linemap_lookup(), map, maybe_print_line(), print, putc(), SOURCE_COLUMN, and spaces().
| static void cb_read_pch | ( | cpp_reader * | pfile, | |
| const char * | name, | |||
| int | fd, | |||
| const char *orig_name | ATTRIBUTE_UNUSED | |||
| ) | [static] |
| static void cb_read_pch | ( | cpp_reader * | pfile, | |
| const char * | name, | |||
| int | fd, | |||
| const char * | orig_name | |||
| ) | [static] |
| static void cb_undef | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED, | |
| source_location | line, | |||
| cpp_hashnode * | node | |||
| ) | [static] |
Definition at line 332 of file c-ppoutput.c.
References fprintf(), maybe_print_line(), NODE_NAME, and print.
| static void cb_undef | ( | cpp_reader * | , | |
| source_location | , | |||
| cpp_hashnode * | ||||
| ) | [static] |
| static int dump_macro | ( | cpp_reader * | pfile, | |
| cpp_hashnode * | node, | |||
| void *v | ATTRIBUTE_UNUSED | |||
| ) | [static] |
Definition at line 432 of file c-ppoutput.c.
References cpp_macro_definition(), cpp_hashnode::flags, fputs(), NODE_BUILTIN, NT_MACRO, print, and putc().
| static int dump_macro | ( | cpp_reader * | , | |
| cpp_hashnode * | , | |||
| void * | ||||
| ) | [static] |
Definition at line 92 of file c-ppoutput.c.
References c_common_valid_pch(), cb_def_pragma(), cb_define(), cb_ident(), cb_include(), cb_line_change(), cb_read_pch(), cb_undef(), CLK_ASM, cpp_get_callbacks(), cpp_get_options(), cpp_callbacks::def_pragma, cpp_callbacks::define, flag_dump_includes, flag_dump_macros, flag_no_output, flag_pch_preprocess, cpp_callbacks::ident, cpp_callbacks::include, cpp_callbacks::line_change, parse_in, print, cpp_callbacks::read_pch, cpp_callbacks::undef, and cpp_callbacks::valid_pch.
Referenced by c_common_post_options().
| static void maybe_print_line | ( | source_location | src_loc | ) | [static] |
Definition at line 210 of file c-ppoutput.c.
References line_table, linemap_lookup(), map, print, print_line(), putc(), SOURCE_LINE, and src_line.
| void pp_dir_change | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED, | |
| const char * | dir | |||
| ) |
Definition at line 370 of file c-ppoutput.c.
References alloca, cpp_quote_string(), fprintf(), p, print, and strlen().
Definition at line 387 of file c-ppoutput.c.
References cpp_get_options(), flag_no_line_commands, flags, INCLUDED_FROM, LAST_SOURCE_LINE_LOCATION, LC_ENTER, LC_LEAVE, line_table, maybe_print_line(), NULL, parse_in, print, print_line(), and line_map::start_location.
Referenced by cb_file_change().
| void preprocess_file | ( | cpp_reader * | pfile | ) |
Definition at line 65 of file c-ppoutput.c.
References cpp_reader::buffer, cpp_forall_identifiers(), cpp_get_options(), cpp_scan_nooutput(), dump_macro(), flag_dump_macros, flag_no_output, NULL, cpp_buffer::prev, print, putc(), scan_translation_unit(), and scan_translation_unit_trad().
| static void print_line | ( | source_location | src_loc, | |
| const char * | special_flags | |||
| ) | [static] |
Definition at line 237 of file c-ppoutput.c.
References alloca, cpp_quote_string(), flag_no_line_commands, fprintf(), fputs(), line_table, linemap_lookup(), map, p, print, putc(), SOURCE_LINE, strlen(), line_map::sysp, and line_map::to_file.
| static void scan_translation_unit | ( | cpp_reader * | pfile | ) | [static] |
Definition at line 136 of file c-ppoutput.c.
References account_for_newlines(), cpp_avoid_paste(), cpp_get_token(), cpp_output_token(), cpp_token::flags, cpp_string::len, NULL, PREV_WHITE, print, putc(), cpp_token::source, cpp_token::str, cpp_string::text, token, and cpp_token::val.
| static void scan_translation_unit_trad | ( | cpp_reader * | pfile | ) | [static] |
Definition at line 193 of file c-ppoutput.c.
References _cpp_read_logical_line_trad(), account_for_newlines(), cpp_reader::base, CPP_OPTION, cpp_reader::cur, discard_comments(), cpp_reader::first_line, fwrite, len, maybe_print_line(), cpp_reader::out, and print.
Definition at line 39 of file c-ppoutput.c.
Definition at line 34 of file c-ppoutput.c.
Definition at line 35 of file c-ppoutput.c.
struct { ... } print [static] |
| unsigned char printed |
Definition at line 38 of file c-ppoutput.c.
Definition at line 36 of file c-ppoutput.c.
| int src_line |
Definition at line 37 of file c-ppoutput.c.
1.5.6