Lines Matching defs:pfile
38 print_location (cpp_reader *pfile, source_location line, unsigned int col)
47 map = linemap_lookup (pfile->line_table, line);
48 linemap_print_containing_files (pfile->line_table, map);
60 else if (CPP_OPTION (pfile, show_column) == 0)
80 _cpp_begin_message (cpp_reader *pfile, int code,
89 if (cpp_in_system_header (pfile)
90 && ! CPP_OPTION (pfile, warn_system_headers))
95 if (CPP_OPTION (pfile, warnings_are_errors)
96 || (level == CPP_DL_PEDWARN && CPP_OPTION (pfile, pedantic_errors)))
98 if (CPP_OPTION (pfile, inhibit_errors))
101 pfile->errors++;
103 else if (CPP_OPTION (pfile, inhibit_warnings))
108 if (CPP_OPTION (pfile, inhibit_errors))
112 pfile->errors++;
116 print_location (pfile, src_loc, column);
136 cpp_error (cpp_reader * pfile, int level, const char *msgid, ...)
143 if (CPP_OPTION (pfile, client_diagnostic))
144 pfile->cb.error (pfile, level, _(msgid), &ap);
147 if (CPP_OPTION (pfile, traditional))
149 if (pfile->state.in_directive)
150 src_loc = pfile->directive_line;
152 src_loc = pfile->line_table->highest_line;
159 if (pfile->cur_token != pfile->cur_run->base)
160 t = pfile->cur_token - 1;
163 if (pfile->cur_run->prev != NULL)
164 t = pfile->cur_run->prev->limit;
172 if (_cpp_begin_message (pfile, level, src_loc, 0))
181 cpp_error_with_line (cpp_reader *pfile, int level,
189 if (_cpp_begin_message (pfile, level, src_loc, column))
196 cpp_errno (cpp_reader *pfile, int level, const char *msgid)
201 cpp_error (pfile, level, "%s: %s", msgid, xstrerror (errno));