mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 19:55:28 +08:00
3c1493a855
* config/linux.mt (IO_OBJECTS): Add iogetline.o. * config/linuxlibc1.mt: Ditto. * iogetline.c (_IO_getline_info): Renamed from _IO_getline. (_IO_getline): Just call _IO_getline_info. * isgetline.cc (istream::getline, istream::get, _sb_readline): Call _IO_getline_info instead of _IO_getline and get the EOF information. * sbgetline.cc (streambuf::sgetline): Ditto. * libioP.h (_IO_getline_info): New declaration. * iogetline.c (_IO_getline): Handle the case when there is no buffer. From-SVN: r18042
29 lines
986 B
Mathematica
29 lines
986 B
Mathematica
# Use the libio which comes with the local libc.
|
|
|
|
# That is where we keep the g++ header files.
|
|
gxx_include_dir =$(prefix)/include/g++
|
|
|
|
# Comment this out to avoid including the stdio functions in libiostream.a:
|
|
# LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
|
|
# LIBIOSTREAM_DEP = $(LIBIOSTREAM_OBJECTS) stdio.list
|
|
# LIBIOSTREAM_USE = $(LIBIOSTREAM_OBJECTS) `cat stdio.list`
|
|
|
|
# Comment the above and uncomment the below to use the code in the Linux libc:
|
|
# We have _G_config.h in /usr/include.
|
|
_G_CONFIG_H=
|
|
|
|
# We must not see the libio.h file from this library.
|
|
LIBIO_INCLUDE=
|
|
|
|
# We have those in libc.a.
|
|
IO_OBJECTS= iogetline.o
|
|
STDIO_WRAP_OBJECTS=
|
|
OSPRIM_OBJECTS=
|
|
STDIO_OBJECTS=
|
|
|
|
# We have the rest in /usr/include.
|
|
USER_INCLUDES=PlotFile.h SFile.h builtinbuf.h editbuf.h fstream.h \
|
|
indstream.h iomanip.h iostream.h istream.h ostream.h \
|
|
parsestream.h pfstream.h procbuf.h stdiostream.h stream.h \
|
|
streambuf.h strfile.h strstream.h
|