OSDN Git Service

1999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.columbia.edu>
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 May 1999 15:24:36 +0000 (15:24 +0000)
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 May 1999 15:24:36 +0000 (15:24 +0000)
commite5931ca02b0c0718d185542f574d985aa00ae85e
tree82da63a000e57cc2f3aa9bf724d12d755a4e166f
parentd34afeba7eace7f44d3ecc87ae0a9ba4cddaf27c
1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
* cppfiles.c (initialize_input_buffer): New function.
(finclude): Call it, if pfile->input_buffer is NULL.  Accept
any character device as an input file.
(read_and_prescan): Use pfile->input_buffer and
pfile->input_speccase.
* cppinit.c (cpp_cleanup): Free pfile->input_buffer and
pfile->input_speccase.
* cpplib.h (cpp_reader): Add input_buffer, input_speccase, and
input_buffer_len members.  Use memcpy in CPP_PUTS_Q.
* cppmain.c: Buffer output in the token_buffer; throttle
number of calls to fwrite; check for errors from fwrite.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26869 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cppfiles.c
gcc/cppinit.c
gcc/cpplib.h
gcc/cppmain.c