This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Exit code for errors detected by cpplib
- To: nickc at cygnus dot co dot uk
- Subject: Re: Exit code for errors detected by cpplib
- From: Per Bothner <per at bothner dot com>
- Date: 29 Nov 1999 11:55:04 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <199911291909.TAA09687@pathia.cygnus.co.uk>
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/