[multiple changes]
2000-07-03 scott snyder <snyder@fnal.gov> * bits/locale_facets.tcc (_M_extract): Only figure out the base from the input if base == 0. * testsuite/27_io/istream_extractor_arith.cc: Test reading a number with a leading `0' in hex mode. * shadow/bits/std_cmath.h: Fix typo in _GLIBCPP_HAVE_CEILL test. * mkinclosure: Change `==' to `=' in test. 2000-07-03 Chip Salzenberg <chip@valinux.com> * src/Makefile.am (libio_headers): _G_config.h is found in srcdir, not builddir. * src/Makefile.in: Regenerate. From-SVN: r34860
This commit is contained in:
parent
041c31944c
commit
f22ad9d09e
7 changed files with 32 additions and 6 deletions
|
@ -6,6 +6,23 @@
|
|||
|
||||
* bits/std_complex.h: Fix parens. Format.
|
||||
|
||||
2000-07-03 scott snyder <snyder@fnal.gov>
|
||||
|
||||
* bits/locale_facets.tcc (_M_extract): Only figure out the base
|
||||
from the input if base == 0.
|
||||
* testsuite/27_io/istream_extractor_arith.cc: Test reading a
|
||||
number with a leading `0' in hex mode.
|
||||
|
||||
* shadow/bits/std_cmath.h: Fix typo in _GLIBCPP_HAVE_CEILL test.
|
||||
|
||||
* mkinclosure: Change `==' to `=' in test.
|
||||
|
||||
2000-07-03 Chip Salzenberg <chip@valinux.com>
|
||||
|
||||
* src/Makefile.am (libio_headers): _G_config.h is found in srcdir,
|
||||
not builddir.
|
||||
* src/Makefile.in: Regenerate.
|
||||
|
||||
2000-07-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
|
||||
Ulrich Drepper <drepper@purist.soma.redhat.com>
|
||||
|
||||
|
|
|
@ -386,7 +386,7 @@ namespace std
|
|||
__base = 16;
|
||||
__testzero = false; // "0x" is not a leading zero
|
||||
}
|
||||
else
|
||||
else if (__base == 0)
|
||||
__base = 8;
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ until cmp -s $OLDH $HDRS; do # (until no new headers found)
|
|||
| while read file; do
|
||||
drop=no
|
||||
for ignore in `cat $IGNORES`; do
|
||||
if [ "$ignore" == "$file" ]; then drop=yes; fi
|
||||
if [ "$ignore" = "$file" ]; then drop=yes; fi
|
||||
done
|
||||
case "$file" in /*) drop=yes;; esac # no absolute paths
|
||||
case $drop in no) echo "$file";; esac
|
||||
|
|
|
@ -365,7 +365,7 @@
|
|||
{ return atan2(static_cast<double>(__y), static_cast<double>(__x)); }
|
||||
#endif
|
||||
|
||||
#elif _GLIBCPP_HAVE_CEILL
|
||||
#if _GLIBCPP_HAVE_CEILL
|
||||
inline long double _CPP_ceil_capture(long double __x)
|
||||
{ return ceill(__x); }
|
||||
#else
|
||||
|
|
|
@ -175,7 +175,7 @@ std_headers = \
|
|||
|
||||
if GLIBCPP_NEED_LIBIO
|
||||
libio_headers = \
|
||||
$(top_builddir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
|
||||
$(top_srcdir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
|
||||
else
|
||||
libio_headers =
|
||||
endif
|
||||
|
|
|
@ -255,7 +255,7 @@ std_headers = \
|
|||
streambuf string strstream typeinfo utility valarray vector
|
||||
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@libio_headers = @GLIBCPP_NEED_LIBIO_TRUE@\
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@ $(top_builddir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@ $(top_srcdir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
|
||||
@GLIBCPP_NEED_LIBIO_FALSE@libio_headers =
|
||||
|
||||
generated_headers = \
|
||||
|
|
|
@ -31,14 +31,17 @@
|
|||
std::string str_01;
|
||||
std::string str_02("true false 0 1 110001");
|
||||
std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
|
||||
std::string str_04("0123");
|
||||
|
||||
std::stringbuf isbuf_01(std::ios_base::in);
|
||||
std::stringbuf isbuf_02(str_02, std::ios_base::in);
|
||||
std::stringbuf isbuf_03(str_03, std::ios_base::in);
|
||||
|
||||
std::stringbuf isbuf_04(str_04, std::ios_base::in);
|
||||
|
||||
std::istream is_01(NULL);
|
||||
std::istream is_02(&isbuf_02);
|
||||
std::istream is_03(&isbuf_03);
|
||||
std::istream is_04(&isbuf_04);
|
||||
std::stringstream ss_01(str_01);
|
||||
|
||||
// minimal sanity check
|
||||
|
@ -103,6 +106,11 @@ bool test01() {
|
|||
is_03 >> f1;
|
||||
test &= f1 == 1.5;
|
||||
|
||||
is_04 >> std::hex >> i1;
|
||||
printf ("%d %d %d\n", i1, i1 == 0x123, test);
|
||||
test &= i1 == 0x123;
|
||||
printf ("%d %d %d\n", i1, i1 == 0x123, test);
|
||||
|
||||
// test void pointers
|
||||
int i = 55;
|
||||
void* po = &i;
|
||||
|
@ -110,6 +118,7 @@ bool test01() {
|
|||
|
||||
ss_01 << po;
|
||||
ss_01 >> pi;
|
||||
printf ("%x %x\n", pi, po);
|
||||
test &= po == pi;
|
||||
|
||||
#ifdef DEBUG_ASSERT
|
||||
|
|
Loading…
Add table
Reference in a new issue