This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to split up cpp_read_main_file


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]