diff options
Diffstat (limited to 'libcpp/internal.h')
-rw-r--r-- | libcpp/internal.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h index 0ae13d58cb6..89576aad980 100644 --- a/libcpp/internal.h +++ b/libcpp/internal.h @@ -115,7 +115,8 @@ extern unsigned char *_cpp_unaligned_alloc (cpp_reader *, size_t); #define BUFF_LIMIT(BUFF) ((BUFF)->limit) /* #include types. */ -enum include_type {IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE}; +/* APPLE LOCAL pch distcc --mrs */ +enum include_type {IT_INCLUDE, IT_INCLUDE_PCH, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE}; union utoken { @@ -171,6 +172,11 @@ struct cpp_context /* True if utoken element is token, else ptoken. */ bool direct_p; + + /* APPLE LOCAL begin CW asm blocks */ + /* True if this expansion is at the beginning of a line. */ + bool bol_p; + /* APPLE LOCAL end CW asm blocks */ }; struct lexer_state @@ -341,6 +347,9 @@ struct cpp_reader struct _cpp_file *all_files; struct _cpp_file *main_file; + /* APPLE LOCAL begin predictive compilation */ + bool is_main_file; + /* APPLE LOCAL end predictive compilation */ /* File and directory hash table. */ struct htab *file_hash; @@ -472,6 +481,10 @@ extern unsigned char _cpp_trigraph_map[UCHAR_MAX + 1]; /* Macros. */ +/* APPLE LOCAL begin warning in system headers */ +#define CPP_IN_SYSTEM_HEADER(PFILE) ((PFILE)->line_table && (PFILE)->line_table->maps && (PFILE)->line_table->maps->sysp) +/* APPLE LOCAL end warning in system headers */ + static inline int cpp_in_system_header (cpp_reader *); static inline int cpp_in_system_header (cpp_reader *pfile) |