diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2001-05-01 08:19:45 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-05-01 08:19:45 +0000 |
commit | d0e66dbb95b7d611428f4974aebf0d3ac320ff41 (patch) | |
tree | bea048da7d41258ee20ceed8c9c226b67223be00 /gcc/diagnostic.h | |
parent | 048de5ad7c2f5b713a6f9b3b48d2959e0f1bd95e (diff) | |
download | gcc-d0e66dbb95b7d611428f4974aebf0d3ac320ff41.tar.gz |
diagnostic.def: New file.
* diagnostic.def: New file.
* diagnostic.h (diagnostic_t): New enum.
* Makefile.in (diagnostic.o): Depend on diagnostic.def
From-SVN: r41717
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index eb7594e16fc..68092adee3f 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -31,6 +31,16 @@ typedef void (*diagnostic_starter_fn) PARAMS ((output_buffer *, diagnostic_context *)); typedef diagnostic_starter_fn diagnostic_finalizer_fn; +typedef enum +{ +#define DEFINE_DIAGNOSTIC_KIND(K, M) K, +#include "diagnostic.def" +#undef DEFINE_DIAGNOSTIC_KIND + DK_LAST_DIAGNOSTIC_KIND +} diagnostic_t; + +#define pedantic_error_kind() (flag_pedantic_errors ? DK_ERROR : DK_WARNING) + #define DIAGNOSTICS_SHOW_PREFIX_ONCE 0x0 #define DIAGNOSTICS_SHOW_PREFIX_NEVER 0x1 #define DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE 0x2 |