diff options
author | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-26 09:12:47 +0000 |
---|---|---|
committer | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-26 09:12:47 +0000 |
commit | 4c040b6c00127f21b43835b8bfe193c4c33f932b (patch) | |
tree | 3123f9a18afb9afd6a268cc6ba587e9baa25bf6e /gcc/cpplib.h | |
parent | 2da051b5bbe23b5b6fc5c423a289da952ab57e43 (diff) | |
download | gcc-4c040b6c00127f21b43835b8bfe193c4c33f932b.tar.gz |
1999-01-26 12:11 -0500 Zack Weinberg <zack@midnite.ec.rhno.columbia.edu>
* cppfiles.c (safe_read): Deleted.
(read_and_prescan): New function, replaces safe_read, converts
and/or warns about trigraphs, silently converts odd line
terminators (\r, \n\r, \r\n). Warns about no newline at EOF.
(finclude): Use read_and_prescan; turn off nonblocking mode on
the input descriptor; remove file-size-examination and
no-newline-at-EOF gunk which is longer necessary; be more
careful about checking that we've been handed a legitimate
file to read (only real files, pipes, and ttys are acceptable).
* cpplib.h (cpp_options): Rename no_trigraphs flag to
`trigraphs' and invert its sense.
(trigraph_table): Declare.
(cpp_warning_with_line): Prototype.
* cpplib.c: Remove all references to trigraph_pcp. Define
trigraph_table; initialize it in initialize_char_syntax. Open
files in nonblocking mode. s/no_trigraphs/trigraphs/
throughout, and invert sense. Put cpp_warning_with_line back
in and export it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24870 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 978c38ed0e5..b5f5ba18df4 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -334,9 +334,9 @@ struct cpp_options { char put_out_comments; - /* Nonzero means don't process the ANSI trigraph sequences. */ + /* Nonzero means process the ANSI trigraph sequences. */ - char no_trigraphs; + char trigraphs; /* Nonzero means print the names of included files rather than the preprocessed output. 1 means just the #include "...", @@ -642,6 +642,7 @@ struct definition { extern unsigned char is_idchar[256]; extern unsigned char is_hor_space[256]; extern unsigned char is_space[256]; +extern unsigned char trigraph_table[256]; /* Stack of conditionals currently in progress (including both successful and failing conditionals). */ @@ -677,6 +678,8 @@ extern void cpp_pedwarn PVPROTO ((cpp_reader *, const char *, ...)) ATTRIBUTE_PRINTF_2; extern void cpp_error_with_line PVPROTO ((cpp_reader *, int, int, const char *, ...)) ATTRIBUTE_PRINTF_4; +extern void cpp_warning_with_line PVPROTO ((cpp_reader *, int, int, const char *, ...)) + ATTRIBUTE_PRINTF_4; extern void cpp_pedwarn_with_line PVPROTO ((cpp_reader *, int, int, const char *, ...)) ATTRIBUTE_PRINTF_4; extern void cpp_pedwarn_with_file_and_line PVPROTO ((cpp_reader *, char *, int, const char *, ...)) |