+2000-11-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
+
+ * testsuite/22_locale/codecvt_wchar_t_char.cc (main): Add
+ _GLIBCPP_USE_WCHAR_T guards.
+
+ * configure.in (AC_OUTPUT_COMMANDS): Remove, just run scripts as
+ is, so that checks for existence of generated files actually work.
+ * configure: Regenerate.
+
2000-11-23 Hans-Peter Nilsson <hp@bitrange.com>
* config/os/gnu-linux/bits/os_defines.h: Include <features.h>.
# Generate bits/c++config.h
# NB: This must be the first generated file as others include it. . .
-
+$srcdir/mkc++config $blddir $srcdir
# Generate bits/std_limits.h and src/limitsMEMBERS.cc
if test ! -f stamp-limits; then
-
+ $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
touch stamp-limits
fi
fi
-$srcdir/mkc++config $blddir $srcdir
-$srcdir/mknumeric_limits $blddir $srcdir $xcompiling
+
+
# Generate bits/c++config.h
# NB: This must be the first generated file as others include it. . .
-AC_OUTPUT_COMMANDS([$srcdir/mkc++config $blddir $srcdir])
+$srcdir/mkc++config $blddir $srcdir
# Generate bits/std_limits.h and src/limitsMEMBERS.cc
if test ! -f stamp-limits; then
- AC_OUTPUT_COMMANDS([$srcdir/mknumeric_limits $blddir $srcdir $xcompiling])
+ $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
touch stamp-limits
fi
fi
+
+
+
+
// or, can use this explicit "C" initialization:
// w_codecvt::state_type state01 = {0, 0};
// .. except Ulrich says: Use memset. Always use memset. Feel the force...
+#ifdef _GLIBCPP_USE_WCHAR_T
void
zero_state(std::mbstate_t& state)
{ std::memset(&state, 0, sizeof(std::mbstate_t)); }
delete [] e_arr;
delete [] i_arr;
}
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
+
int main ()
{
+#if _GLIBCPP_USE_WCHAR_T
test01();
+#endif
return 0;
}