]> git.ipfire.org Git - thirdparty/gcc.git/commit
1999-01-26 12:11 -0500 Zack Weinberg <zack@midnite.ec.rhno.columbia.edu>
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jan 1999 09:12:47 +0000 (09:12 +0000)
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jan 1999 09:12:47 +0000 (09:12 +0000)
commit4c040b6c00127f21b43835b8bfe193c4c33f932b
tree3123f9a18afb9afd6a268cc6ba587e9baa25bf6e
parent2da051b5bbe23b5b6fc5c423a289da952ab57e43
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
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpplib.c
gcc/cpplib.h