cppfiles.c (safe_read): Deleted.
authorZack Weinberg <zack@midnite.ec.rhno.columbia.edu>
Tue, 26 Jan 1999 09:12:47 +0000 (09:12 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Tue, 26 Jan 1999 09:12:47 +0000 (04:12 -0500)
commit554fbeef31814272ba1b41d16669e372df3123b8
tree3123f9a18afb9afd6a268cc6ba587e9baa25bf6e
parent0034cf7299679aa804e365e087d390b9cabb646c
cppfiles.c (safe_read): Deleted.

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.

From-SVN: r24870
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpplib.c
gcc/cpplib.h