* 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>
__base = 16;
__testzero = false; // "0x" is not a leading zero
}
- else
+ else if (__base == 0)
__base = 8;
}
| 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
{ 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
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
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 = \
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
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;
ss_01 << po;
ss_01 >> pi;
+ printf ("%x %x\n", pi, po);
test &= po == pi;
#ifdef DEBUG_ASSERT