This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: Inconsistency in I/O packages
>>>>> "Benjamin" == Benjamin Kosnik <bkoz@redhat.com> writes:
Benjamin> "streamsize is a synonym for one of the signed basic
Benjamin> integral types."
Thanks; fixed with this patch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-11-16 Mark Mitchell <mark@codesourcery.com>
* config/c_io_stdio.h (streamsize): Make it a typedef for
ptrdiff_t.
(wstreamsize): Likewise.
Index: config/c_io_stdio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/c_io_stdio.h,v
retrieving revision 1.3
diff -c -p -r1.3 c_io_stdio.h
*** c_io_stdio.h 2000/11/16 09:20:48 1.3
--- c_io_stdio.h 2000/11/16 09:25:22
*************** namespace std {
*** 45,54 ****
// from fpos.h
typedef long streamoff;
! typedef size_t streamsize; // Signed integral type
#if _GLIBCPP_USE_WCHAR_T
typedef long wstreamoff;
! typedef size_t wstreamsize;
#endif
typedef fpos_t __c_streampos;
--- 45,54 ----
// from fpos.h
typedef long streamoff;
! typedef ptrdiff_t streamsize; // Signed integral type
#if _GLIBCPP_USE_WCHAR_T
typedef long wstreamoff;
! typedef ptrdiff_t wstreamsize;
#endif
typedef fpos_t __c_streampos;