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]

Re: Exit code for errors detected by cpplib


Nick Clifton <nickc@cygnus.com> writes:

>   May I apply this patch ?

If it were my decision (which it no longer is), my reponse
would be "no".

Cpplib is meant to be a *library*.  Libraries should IMNSHO
be re-entrant, and should not use static variables.  Cpplib
has never satisfied this goal, but I would really hate to
do anything that makes the situation worse.

Why can't you use the `errors' field of `struct cpp_reader'?
That is what it is for.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


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