diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-07-13 02:32:41 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-07-13 02:32:41 +0000 |
commit | f9a0e96c1707a7f48f7d152901740444098c2628 (patch) | |
tree | f6656bb21e208ce3d9194a471d84e8b7a0fdac65 /gcc/cpplib.h | |
parent | d55bb5be913e11b1ba639c124403ef0cd7e11517 (diff) | |
download | gcc-f9a0e96c1707a7f48f7d152901740444098c2628.zip gcc-f9a0e96c1707a7f48f7d152901740444098c2628.tar.gz gcc-f9a0e96c1707a7f48f7d152901740444098c2628.tar.bz2 |
cppexp.c, [...]: Eradicate all traces of code dependent on traditional, lang_chill, or lang_fortran.
* cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
cpplib.c, cpplib.h: Eradicate all traces of code dependent on
traditional, lang_chill, or lang_fortran.
* cppfiles.c: #undef strcmp to suppress warning about macros
used without arguments.
(_cpp_execute_include): Use f, not fname, in "No include path"
error.
(_cpp_pop_file_buffer): New function.
* cpplib.c: Don't include <sys/mman.h>.
(cpp_push_buffer): Set line_base and lineno in new buffer.
(cpp_pop_buffer): Use _cpp_pop_file_buffer.
* cpplex.c: Move all prototypes and structure declarations to the
top of the file. Properly parenthesise some macro arguments.
(cpp_scan_line): New function.
(special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
don't need to walk up the stack counting.
From-SVN: r35003
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 8db8c51..88c0648 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -314,15 +314,6 @@ struct cpp_options likely to be in comments). */ unsigned char lang_asm; - /* Nonzero means this is Fortran, and we don't know where the - comments are, so permit unbalanced ' strings. Unlike lang_asm, - this does not ignore unrecognized directives. */ - unsigned char lang_fortran; - - /* Nonzero means handle CHILL comment syntax and output CHILL string - delimiters for __DATE__ etc. */ - unsigned char chill; - /* Nonzero means don't copy comments into the output file. */ unsigned char discard_comments; @@ -366,9 +357,8 @@ struct cpp_options /* Nonzero means warn if #import is used. */ unsigned char warn_import; - /* Nonzero means warn if a macro argument is (or would be) - stringified with -traditional, and warn about directives - with the # indented from the beginning of the line. */ + /* Nonzero means warn about various incompatibilities with + traditional C. */ unsigned char warn_traditional; /* Nonzero means warn if ## is applied to two tokens that cannot be @@ -396,9 +386,6 @@ struct cpp_options /* Zero means dollar signs are punctuation. */ unsigned char dollars_in_ident; - /* Nonzero means try to imitate old fashioned non-ISO preprocessor. */ - unsigned char traditional; - /* Nonzero means warn if undefined identifiers are evaluated in an #if. */ unsigned char warn_undef; @@ -701,6 +688,7 @@ extern cpp_buffer *cpp_push_buffer PARAMS ((cpp_reader *, extern cpp_buffer *cpp_pop_buffer PARAMS ((cpp_reader *)); extern void cpp_scan_buffer PARAMS ((cpp_reader *, cpp_printer *)); extern void cpp_scan_buffer_nooutput PARAMS ((cpp_reader *)); +extern void cpp_scan_line PARAMS ((cpp_reader *)); extern int cpp_ideq PARAMS ((const cpp_token *, const char *)); |