diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-02 21:41:35 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-02 21:41:35 +0000 |
commit | 5237f531dafcdf5a118ec501b0bbea1ee4e0928c (patch) | |
tree | 85f4994520bd25edda71f41ae96e75498894cb12 /gcc/cpplib.h | |
parent | 3e7cd49fee867f8af4815815ded1dd621d27ceab (diff) | |
download | gcc-5237f531dafcdf5a118ec501b0bbea1ee4e0928c.zip gcc-5237f531dafcdf5a118ec501b0bbea1ee4e0928c.tar.gz gcc-5237f531dafcdf5a118ec501b0bbea1ee4e0928c.tar.bz2 |
cpplib.h (cpp_reader): Add new flag, no_directives.
* cpplib.h (cpp_reader): Add new flag, no_directives.
* cpphash.c (macarg): Set it.
* cpplib.c (handle_directive): If no_directives is on and we
find a directive, issue an error and discard the line.
From-SVN: r31763
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 882f462..c225916 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -212,6 +212,11 @@ struct cpp_reader /* If non-zero, macros are not expanded. */ char no_macro_expand; + /* If non-zero, directives cause a hard error. Used when parsing + macro arguments. */ + + char no_directives; + /* Print column number in error messages. */ char show_column; |