diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-01 22:56:54 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-01 22:56:54 +0000 |
commit | d80d207431480614c84e6f4fde0a157c5dc590f9 (patch) | |
tree | 968c051f5c6b85312c57b38b07efd46743674b3b /gcc/cpperror.c | |
parent | 500be7b1b6bb23e542cb2bce3767cc90da5a0565 (diff) | |
download | ppe42-gcc-d80d207431480614c84e6f4fde0a157c5dc590f9.tar.gz ppe42-gcc-d80d207431480614c84e6f4fde0a157c5dc590f9.zip |
PR preprocessor/12847
* cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
"CPP_".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73183 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpperror.c')
-rw-r--r-- | gcc/cpperror.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c index 4926cb24ac5..61763cc1826 100644 --- a/gcc/cpperror.c +++ b/gcc/cpperror.c @@ -72,43 +72,43 @@ int _cpp_begin_message (cpp_reader *pfile, int code, fileline line, unsigned int column) { - int level = DL_EXTRACT (code); + int level = CPP_DL_EXTRACT (code); switch (level) { - case DL_WARNING: - case DL_PEDWARN: + case CPP_DL_WARNING: + case CPP_DL_PEDWARN: if (CPP_IN_SYSTEM_HEADER (pfile) && ! CPP_OPTION (pfile, warn_system_headers)) return 0; /* Fall through. */ - case DL_WARNING_SYSHDR: + case CPP_DL_WARNING_SYSHDR: if (CPP_OPTION (pfile, warnings_are_errors) - || (level == DL_PEDWARN && CPP_OPTION (pfile, pedantic_errors))) + || (level == CPP_DL_PEDWARN && CPP_OPTION (pfile, pedantic_errors))) { if (CPP_OPTION (pfile, inhibit_errors)) return 0; - level = DL_ERROR; + level = CPP_DL_ERROR; pfile->errors++; } else if (CPP_OPTION (pfile, inhibit_warnings)) return 0; break; - case DL_ERROR: + case CPP_DL_ERROR: if (CPP_OPTION (pfile, inhibit_errors)) return 0; /* ICEs cannot be inhibited. */ - case DL_ICE: + case CPP_DL_ICE: pfile->errors++; break; } print_location (pfile, line, column); - if (DL_WARNING_P (level)) + if (CPP_DL_WARNING_P (level)) fputs (_("warning: "), stderr); - else if (level == DL_ICE) + else if (level == CPP_DL_ICE) fputs (_("internal error: "), stderr); return 1; |