This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Consolidation of error functions
Mark Mitchell wrote:-
> Speaking of which, why did you make DL_WARNING and so forth be macros,
> rather than enumerals?
I intended the level to be OR-ed with other flags. In particular, one
indicating whether it was a follow-up to the previous message. The old
structure of being forced to decide a severity level (e.g. cpp_error)
led me thinking down that path; in fact it should not be necessary;
we could just have DL_FOLLOWUP or DL_CONTINUED. Flags may be useful
in other cases; I'm not sure.
Neil.