This is the mail archive of the
egcs-cvs@egcs.cygnus.com
mailing list for the EGCS project.
egcs/gcc cppfiles.c cppinit.c cpplib.h cppmain.c
- To: egcs-cvs@egcs.cygnus.com
- Subject: egcs/gcc cppfiles.c cppinit.c cpplib.h cppmain.c
- From: brolley@egcs.cygnus.com
- Date: 10 May 1999 22:24:38 -0000
CVSROOT: /egcs/carton/cvsfiles
Module name: egcs
Changes by: brolley@egcs.cygnus.com 99/05/10 15:24:37
Modified files:
gcc : cppfiles.c cppinit.c cpplib.h cppmain.c
Log message:
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.