static void maybe_print_line_1 (source_location src_loc, FILE *stream) { int src_line = LOCATION_LINE (src_loc); const char *src_file = LOCATION_FILE (src_loc); /* End the previous line of text. */ if (print.printed) { putc ('\n', stream); print.src_line++; print.printed = 0; } if (!flag_no_line_commands && src_line >= print.src_line && src_line < print.src_line + 8 && strcmp (src_file, print.src_file) == 0) { while (src_line > print.src_line) { putc ('\n', stream); print.src_line++; } } else print_line_1 (src_loc, "", stream); }
static bool maybe_print_line_1 (source_location src_loc, FILE *stream) { bool emitted_line_marker = false; int src_line = LOCATION_LINE (src_loc); const char *src_file = LOCATION_FILE (src_loc); /* End the previous line of text. */ if (print.printed) { putc ('\n', stream); print.src_line++; print.printed = false; } if (!flag_no_line_commands && src_line >= print.src_line && src_line < print.src_line + 8 && strcmp (src_file, print.src_file) == 0) { while (src_line > print.src_line) { putc ('\n', stream); print.src_line++; } } else emitted_line_marker = print_line_1 (src_loc, "", stream); return emitted_line_marker; }
static void print_line (source_location src_loc, const char *special_flags) { if (cpp_get_options (parse_in)->debug) linemap_dump_location (line_table, src_loc, print.outf); print_line_1 (src_loc, special_flags, print.outf); }