aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-03-19 16:58:58 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1997-03-19 16:58:58 -0500
commit76e804216b6e641200178a55cfbfc109f2dc573a (patch)
treea3793e361d2086a1048a52f6d43ba26525115df4 /gcc/cpplib.h
parentb2feb130caf3e0d2593affeb7d34fa1f68928f6a (diff)
downloadgcc-76e804216b6e641200178a55cfbfc109f2dc573a.zip
gcc-76e804216b6e641200178a55cfbfc109f2dc573a.tar.gz
gcc-76e804216b6e641200178a55cfbfc109f2dc573a.tar.bz2
(struct cpp_options): New member c89.
(CPP_C89): New macro. From-SVN: r13748
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index d802a4a..ae73e8a 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -1,5 +1,5 @@
/* Definitions for CPP library.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Written by Per Bothner, 1994-95.
This program is free software; you can redistribute it and/or modify it
@@ -431,6 +431,9 @@ struct cpp_options {
/* Nonzero means try to imitate old fashioned non-ANSI preprocessor. */
char traditional;
+ /* Nonzero for the 1989 C Standard, including corrigenda and amendments. */
+ char c89;
+
/* Nonzero means give all the error messages the ANSI standard requires. */
char pedantic;
@@ -492,6 +495,7 @@ struct cpp_options {
};
#define CPP_TRADITIONAL(PFILE) (CPP_OPTIONS(PFILE)-> traditional)
+#define CPP_C89(PFILE) (CPP_OPTIONS(PFILE)->c89)
#define CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic)
#define CPP_PRINT_DEPS(PFILE) (CPP_OPTIONS (PFILE)->print_deps)