From bbdac7d00069c7bff149329b6cae418b1153f05d Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 23 Aug 2000 18:29:53 +0000 Subject: cpphash.h (IN_I): New flag for directive table. * cpphash.h (IN_I): New flag for directive table. * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and #pragma with IN_I. (_cpp_check_directive): If -fpreprocessed, execute directives marked with IN_I. Issue no warnings in this case. * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed. From-SVN: r35918 --- gcc/cpphash.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/cpphash.h') diff --git a/gcc/cpphash.h b/gcc/cpphash.h index b2f5c1dd619..23e1d813b0b 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -66,11 +66,14 @@ struct answer conditional. EXPAND means that macros are to be expanded on the directive line. INCL means to treat "..." and <...> as q-char-sequence and h-char-sequence respectively. COMMENTS means - preserve comments in the directive if -C. */ + preserve comments in the directive if -C. IN_I means this directive + should be handled even if -fpreprocessed is in effect (these are the + directives with callback hooks). */ #define COND (1 << 0) #define EXPAND (1 << 1) #define INCL (1 << 2) #define COMMENTS (1 << 3) +#define IN_I (1 << 4) /* Defines one #-directive, including how to handle it. */ typedef void (*directive_handler) PARAMS ((cpp_reader *)); -- cgit v1.2.1