This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to represent column numbers using source_location
Zack Weinberg wrote:
scan-decls.c MUST NOT include cpphash.h.
Why not? I agree it would be preferable to not
use cpphash.h, but I think we can classify scan-decls.c
as a "friend" (in the C++ sense) of cpplib.
An alternative is to move the line_table in fix-headers's
main function to global scope, and use that that instead
of pfile->line_table. That has the downside that we have
to put an extern declaration in a .c file, rather than a
.h file.
--
--Per Bothner
per@bothner.com http://per.bothner.com/