This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to split up cpp_read_main_file
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Per Bothner <per at bothner dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 5 Aug 2003 21:25:37 +0100
- Subject: Re: PATCH to split up cpp_read_main_file
- References: <3F2FE7F0.30603@bothner.com>
Per Bothner wrote:-
> A possible concern is that I'm using the same cpp_read_main_file
> as before for a different purpose, so all existing calls need to
> be evaluated for whether they need to also call cpp_post_options.
> This might be bad if we have external clients of cpplib. In
> that case, I'd suggest re-naming cpp_read_main_file, or having
> it automatically call cpp_post_options if the latter hasn't been
> called. But as far as I know this isn't really an issue.
cpplib isn't really suitable yet for external clients, so it's not
an issue.
I confess to being unsure how exactly cpp state is being properly
reset between each source file...
Neil.