gccxml_gem 0.9.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +84 -0
- data/bin/gccxml.exe +0 -0
- data/bin/gccxml_cc1plus.exe +0 -0
- data/bin/gccxml_vcconfig.bat +52 -0
- data/bin/gccxml_vcconfig.exe +0 -0
- data/gccxml.rb +57 -0
- data/share/doc/gccxml-0.9/Copyright.txt +55 -0
- data/share/doc/gccxml-0.9/gccxml.html +168 -0
- data/share/doc/gccxml-0.9/gccxml.txt +293 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cctype +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cfloat +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/climits +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cmath +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/complex +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/complex.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstddef +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdio +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdlib +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ctime +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cwchar +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cwctype +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/deque +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/deque.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/exception +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/exception.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/function +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/function.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/functional +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/gccxml_typeinfo.h +146 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ios +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ios.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/istream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/istream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/limits +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/limits.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/list +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/list.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/locale +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/locale.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/map +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/map.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/memory +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/memory.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/new +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/new.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/queue +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/queue.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/codecvt +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/collate +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/ctype +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iosbase +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iotraits +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iterator +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/lochelp +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locimpl +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locvector +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/messages +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/money +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numbrw +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numeral +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwdispatch.h +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwlocale +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwstderr_macros.h +64 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/string_ref +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/time +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/traits +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/tree +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/usefacet +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/valimp +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/vendor +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/set +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/set.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stack +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stack.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/string +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/string.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/utility +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/utility.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/vector +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/vector.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/except.h +154 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_fstream.h +431 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_new.h +166 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_valarray.h +786 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_vector.h +1457 -0
- data/share/gccxml-0.9/Borland/5.5/io.h +352 -0
- data/share/gccxml-0.9/Borland/5.5/oaidl.h +7006 -0
- data/share/gccxml-0.9/Borland/5.5/propidl.h +1477 -0
- data/share/gccxml-0.9/Borland/5.5/rw/locimpl.h +477 -0
- data/share/gccxml-0.9/Borland/5.5/rw/rwlocale.h +619 -0
- data/share/gccxml-0.9/Borland/5.5/stdarg.h +55 -0
- data/share/gccxml-0.9/Borland/5.5/valarray.cc +2883 -0
- data/share/gccxml-0.9/GCC/2.95/algorithm +76 -0
- data/share/gccxml-0.9/GCC/2.95/bitset +17 -0
- data/share/gccxml-0.9/GCC/2.95/cctype +24 -0
- data/share/gccxml-0.9/GCC/2.95/clocale +14 -0
- data/share/gccxml-0.9/GCC/2.95/cmath +33 -0
- data/share/gccxml-0.9/GCC/2.95/complex +38 -0
- data/share/gccxml-0.9/GCC/2.95/csetjmp +13 -0
- data/share/gccxml-0.9/GCC/2.95/csignal +14 -0
- data/share/gccxml-0.9/GCC/2.95/cstdarg +12 -0
- data/share/gccxml-0.9/GCC/2.95/cstddef +13 -0
- data/share/gccxml-0.9/GCC/2.95/cstdio +55 -0
- data/share/gccxml-0.9/GCC/2.95/cstdlib +66 -0
- data/share/gccxml-0.9/GCC/2.95/cstring +34 -0
- data/share/gccxml-0.9/GCC/2.95/ctime +24 -0
- data/share/gccxml-0.9/GCC/2.95/cwchar +65 -0
- data/share/gccxml-0.9/GCC/2.95/cwctype +31 -0
- data/share/gccxml-0.9/GCC/2.95/deque +19 -0
- data/share/gccxml-0.9/GCC/2.95/exception +20 -0
- data/share/gccxml-0.9/GCC/2.95/fstream +23 -0
- data/share/gccxml-0.9/GCC/2.95/functional +64 -0
- data/share/gccxml-0.9/GCC/2.95/gccxml_bitset +1066 -0
- data/share/gccxml-0.9/GCC/2.95/iomanip +20 -0
- data/share/gccxml-0.9/GCC/2.95/iosfwd +20 -0
- data/share/gccxml-0.9/GCC/2.95/iostream +27 -0
- data/share/gccxml-0.9/GCC/2.95/iterator +39 -0
- data/share/gccxml-0.9/GCC/2.95/list +19 -0
- data/share/gccxml-0.9/GCC/2.95/map +20 -0
- data/share/gccxml-0.9/GCC/2.95/memory +21 -0
- data/share/gccxml-0.9/GCC/2.95/new +13 -0
- data/share/gccxml-0.9/GCC/2.95/numeric +15 -0
- data/share/gccxml-0.9/GCC/2.95/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/2.95/queue +20 -0
- data/share/gccxml-0.9/GCC/2.95/set +20 -0
- data/share/gccxml-0.9/GCC/2.95/sstream +24 -0
- data/share/gccxml-0.9/GCC/2.95/stack +19 -0
- data/share/gccxml-0.9/GCC/2.95/std/bastring.cc +524 -0
- data/share/gccxml-0.9/GCC/2.95/std/complext.h +397 -0
- data/share/gccxml-0.9/GCC/2.95/std/dcomplex.h +92 -0
- data/share/gccxml-0.9/GCC/2.95/std/fcomplex.h +88 -0
- data/share/gccxml-0.9/GCC/2.95/std/gslice_array.h +170 -0
- data/share/gccxml-0.9/GCC/2.95/std/indirect_array.h +157 -0
- data/share/gccxml-0.9/GCC/2.95/std/ldcomplex.h +96 -0
- data/share/gccxml-0.9/GCC/2.95/std/mask_array.h +154 -0
- data/share/gccxml-0.9/GCC/2.95/std/slice_array.h +156 -0
- data/share/gccxml-0.9/GCC/2.95/std/std_valarray.h +728 -0
- data/share/gccxml-0.9/GCC/2.95/std/straits.h +162 -0
- data/share/gccxml-0.9/GCC/2.95/std/valarray_meta.h +1035 -0
- data/share/gccxml-0.9/GCC/2.95/stdexcept +17 -0
- data/share/gccxml-0.9/GCC/2.95/stl_alloc.h +1057 -0
- data/share/gccxml-0.9/GCC/2.95/stl_bvector.h +836 -0
- data/share/gccxml-0.9/GCC/2.95/stl_deque.h +1699 -0
- data/share/gccxml-0.9/GCC/2.95/stl_list.h +843 -0
- data/share/gccxml-0.9/GCC/2.95/stl_tree.h +1331 -0
- data/share/gccxml-0.9/GCC/2.95/stl_vector.h +828 -0
- data/share/gccxml-0.9/GCC/2.95/string +26 -0
- data/share/gccxml-0.9/GCC/2.95/strstream +23 -0
- data/share/gccxml-0.9/GCC/2.95/typeinfo +11 -0
- data/share/gccxml-0.9/GCC/2.95/utility +25 -0
- data/share/gccxml-0.9/GCC/2.95/valarray +52 -0
- data/share/gccxml-0.9/GCC/2.95/vector +19 -0
- data/share/gccxml-0.9/GCC/2.96/sstream +305 -0
- data/share/gccxml-0.9/GCC/3.0/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/3.1/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/3.2/bits/fstream.tcc +500 -0
- data/share/gccxml-0.9/GCC/3.2/bits/gthr-default.h +581 -0
- data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +1207 -0
- data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +1810 -0
- data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +2397 -0
- data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +108 -0
- data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +713 -0
- data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +241 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +1682 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +989 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +1462 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +1085 -0
- data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +1063 -0
- data/share/gccxml-0.9/GCC/3.2/fstream +579 -0
- data/share/gccxml-0.9/GCC/3.2/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/3.2/sstream +384 -0
- data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +530 -0
- data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +378 -0
- data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +2050 -0
- data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +108 -0
- data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +243 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +1603 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +1167 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +1462 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +992 -0
- data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +1135 -0
- data/share/gccxml-0.9/GCC/3.3/fstream +842 -0
- data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +22 -0
- data/share/gccxml-0.9/GCC/3.3/sstream +638 -0
- data/share/gccxml-0.9/GCC/3.4/bits/gthr-default.h +664 -0
- data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +91 -0
- data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +128 -0
- data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +618 -0
- data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +131 -0
- data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +131 -0
- data/share/gccxml-0.9/GCC/4.3/gccxml_builtins.h +182 -0
- data/share/gccxml-0.9/IBM/8.0/adapt_headers.sh +34 -0
- data/share/gccxml-0.9/IBM/8.0/stdlib.h.patch +27 -0
- data/share/gccxml-0.9/IBM/8.0/xstring.patch +19 -0
- data/share/gccxml-0.9/IBM/README +8 -0
- data/share/gccxml-0.9/IBM/find_flags +51 -0
- data/share/gccxml-0.9/IBM/find_flags_common +48 -0
- data/share/gccxml-0.9/Intel/find_flags +56 -0
- data/share/gccxml-0.9/Intel/pthread.h +16 -0
- data/share/gccxml-0.9/MIPSpro/7.3/exception +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +21 -0
- data/share/gccxml-0.9/MIPSpro/7.3/iomanip +161 -0
- data/share/gccxml-0.9/MIPSpro/7.3/ostream +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +17 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +14 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +13 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +11 -0
- data/share/gccxml-0.9/MIPSpro/7.3/string +18 -0
- data/share/gccxml-0.9/MIPSpro/find_flags +70 -0
- data/share/gccxml-0.9/MIPSpro/mipspro_defs.cxx +63 -0
- data/share/gccxml-0.9/Sun/5.8/Cstd.patch +156 -0
- data/share/gccxml-0.9/Sun/5.8/adapt_headers.sh +32 -0
- data/share/gccxml-0.9/Sun/5.8/std-5.10.patch +22 -0
- data/share/gccxml-0.9/Sun/README +8 -0
- data/share/gccxml-0.9/Sun/find_flags +51 -0
- data/share/gccxml-0.9/Sun/find_flags_common +42 -0
- data/share/gccxml-0.9/VcInstall/vc6Include.patch +4560 -0
- data/share/gccxml-0.9/VcInstall/vc71Include.patch +921 -0
- data/share/gccxml-0.9/VcInstall/vc71PlatformSDK.patch +146 -0
- data/share/gccxml-0.9/VcInstall/vc7Include.patch +1139 -0
- data/share/gccxml-0.9/VcInstall/vc7PlatformSDK.patch +146 -0
- data/share/gccxml-0.9/VcInstall/vc8ExpressInclude.patch +1887 -0
- data/share/gccxml-0.9/VcInstall/vc8ExpressPlatformSDK.patch +252 -0
- data/share/gccxml-0.9/VcInstall/vc8Include.patch +1887 -0
- data/share/gccxml-0.9/VcInstall/vc8PlatformSDK.patch +252 -0
- data/share/gccxml-0.9/VcInstall/vc8sp1ExpressInclude.patch +1941 -0
- data/share/gccxml-0.9/VcInstall/vc8sp1Include.patch +1970 -0
- data/share/gccxml-0.9/VcInstall/vc8sp1PlatformSDK.patch +252 -0
- data/share/gccxml-0.9/VcInstall/vc9Include.patch +2047 -0
- data/share/gccxml-0.9/VcInstall/vc9PlatformSDK.patch +383 -0
- data/share/gccxml-0.9/VcInstall/vc9sp1Include.patch +2565 -0
- data/share/gccxml-0.9/VcInstall/vcCat.exe +0 -0
- data/share/gccxml-0.9/VcInstall/vcCat.readme.txt +3 -0
- data/share/gccxml-0.9/VcInstall/vcPatch.exe +0 -0
- data/share/gccxml-0.9/VcInstall/vcPatch.readme.txt +27 -0
- data/share/gccxml-0.9/VcInstall/vc_helper +1 -0
- data/share/gccxml-0.9/gccxml_config +2 -0
- data/share/gccxml-0.9/gccxml_identify_compiler.cc +13 -0
- data/share/man/man1/gccxml.1 +246 -0
- metadata +331 -0
@@ -0,0 +1,4560 @@
|
|
1
|
+
Index: assert.h
|
2
|
+
===================================================================
|
3
|
+
RCS file: /cvsroot/GxInclude/VcInclude/assert.h,v
|
4
|
+
retrieving revision 1.1.1.1
|
5
|
+
retrieving revision 1.3
|
6
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
7
|
+
*** assert.h 13 Jun 2001 19:30:38 -0000 1.1.1.1
|
8
|
+
--- assert.h 27 Jan 2006 14:16:50 -0000 1.3
|
9
|
+
*************** _CRTIMP void __cdecl _assert(void *, voi
|
10
|
+
*** 63,68 ****
|
11
|
+
}
|
12
|
+
#endif
|
13
|
+
|
14
|
+
! #define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) )
|
15
|
+
|
16
|
+
#endif /* NDEBUG */
|
17
|
+
--- 63,68 ----
|
18
|
+
}
|
19
|
+
#endif
|
20
|
+
|
21
|
+
! #define assert(exp) ((void)0)
|
22
|
+
|
23
|
+
#endif /* NDEBUG */
|
24
|
+
Index: complex
|
25
|
+
===================================================================
|
26
|
+
RCS file: /cvsroot/GxInclude/VcInclude/complex,v
|
27
|
+
retrieving revision 1.1.1.1
|
28
|
+
retrieving revision 1.2
|
29
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
30
|
+
*** complex 13 Jun 2001 19:30:43 -0000 1.1.1.1
|
31
|
+
--- complex 21 Oct 2007 19:06:49 -0000 1.2
|
32
|
+
*************** public:
|
33
|
+
*** 56,61 ****
|
34
|
+
--- 56,62 ----
|
35
|
+
{return (::sqrt((double)_X)); }
|
36
|
+
};
|
37
|
+
// CLASS _Ctr<long double>
|
38
|
+
+ template<>
|
39
|
+
class _CRTIMP _Ctr<long double> {
|
40
|
+
public:
|
41
|
+
typedef long double _Ty;
|
42
|
+
*************** public:
|
43
|
+
*** 91,96 ****
|
44
|
+
--- 92,98 ----
|
45
|
+
{return (sqrtl(_X)); }
|
46
|
+
};
|
47
|
+
// CLASS _Ctr<double>
|
48
|
+
+ template<>
|
49
|
+
class _CRTIMP _Ctr<double> {
|
50
|
+
public:
|
51
|
+
typedef double _Ty;
|
52
|
+
*************** public:
|
53
|
+
*** 125,130 ****
|
54
|
+
--- 127,133 ----
|
55
|
+
static _Ty sqrt(_Ty _X)
|
56
|
+
{return (::sqrt(_X)); }
|
57
|
+
};
|
58
|
+
+ template<>
|
59
|
+
class _CRTIMP _Ctr<float> {
|
60
|
+
public:
|
61
|
+
typedef float _Ty;
|
62
|
+
*************** protected:
|
63
|
+
*** 200,205 ****
|
64
|
+
--- 203,209 ----
|
65
|
+
|
66
|
+
|
67
|
+
// CLASS complex<float>
|
68
|
+
+ template<>
|
69
|
+
class _CRTIMP complex<float> : public _Complex_base<float> {
|
70
|
+
public:
|
71
|
+
typedef float _Ty;
|
72
|
+
*************** public:
|
73
|
+
*** 213,218 ****
|
74
|
+
--- 217,223 ----
|
75
|
+
return (*this); }
|
76
|
+
};
|
77
|
+
// CLASS complex<double>
|
78
|
+
+ template<>
|
79
|
+
class _CRTIMP complex<double> : public _Complex_base<double> {
|
80
|
+
public:
|
81
|
+
typedef double _Ty;
|
82
|
+
*************** public:
|
83
|
+
*** 226,231 ****
|
84
|
+
--- 231,237 ----
|
85
|
+
return (*this); }
|
86
|
+
};
|
87
|
+
// CLASS complex<long double>
|
88
|
+
+ template<>
|
89
|
+
class _CRTIMP complex<long double> : public _Complex_base<long double> {
|
90
|
+
public:
|
91
|
+
typedef long double _Ty;
|
92
|
+
*************** public:
|
93
|
+
*** 261,268 ****
|
94
|
+
complex(const complex<_U>& _X)
|
95
|
+
: _Complex_base<_Ty>((_Ty)_X.real(), (_Ty)_X.imag()) {}
|
96
|
+
complex<_Ty>& operator=(const complex<_U>& _X)
|
97
|
+
! {_Re = (_Ty)_X.real();
|
98
|
+
! _Im = (_Ty)_X.imag();
|
99
|
+
return (*this); }
|
100
|
+
};
|
101
|
+
// TEMPLATE complex OPERATORS
|
102
|
+
--- 267,274 ----
|
103
|
+
complex(const complex<_U>& _X)
|
104
|
+
: _Complex_base<_Ty>((_Ty)_X.real(), (_Ty)_X.imag()) {}
|
105
|
+
complex<_Ty>& operator=(const complex<_U>& _X)
|
106
|
+
! {this->_Re = (_Ty)_X.real();
|
107
|
+
! this->_Im = (_Ty)_X.imag();
|
108
|
+
return (*this); }
|
109
|
+
};
|
110
|
+
// TEMPLATE complex OPERATORS
|
111
|
+
Index: deque
|
112
|
+
===================================================================
|
113
|
+
RCS file: /cvsroot/GxInclude/VcInclude/deque,v
|
114
|
+
retrieving revision 1.1.1.1
|
115
|
+
retrieving revision 1.3
|
116
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
117
|
+
*** deque 13 Jun 2001 19:30:51 -0000 1.1.1.1
|
118
|
+
--- deque 21 Oct 2007 19:06:49 -0000 1.3
|
119
|
+
*************** template<class _Ty, class _A = allocator
|
120
|
+
*** 23,36 ****
|
121
|
+
public:
|
122
|
+
typedef deque<_Ty, _A> _Myt;
|
123
|
+
typedef _A allocator_type;
|
124
|
+
! typedef _A::size_type size_type;
|
125
|
+
! typedef _A::difference_type difference_type;
|
126
|
+
! typedef _A::pointer _Tptr;
|
127
|
+
! typedef _A::const_pointer _Ctptr;
|
128
|
+
typedef _POINTER_X(_Tptr, _A) _Mapptr;
|
129
|
+
! typedef _A::reference reference;
|
130
|
+
! typedef _A::const_reference const_reference;
|
131
|
+
! typedef _A::value_type value_type;
|
132
|
+
// CLASS const_iterator
|
133
|
+
class iterator;
|
134
|
+
class const_iterator : public _Ranit<_Ty, difference_type> {
|
135
|
+
--- 23,36 ----
|
136
|
+
public:
|
137
|
+
typedef deque<_Ty, _A> _Myt;
|
138
|
+
typedef _A allocator_type;
|
139
|
+
! typedef typename _A::size_type size_type;
|
140
|
+
! typedef typename _A::difference_type difference_type;
|
141
|
+
! typedef typename _A::pointer _Tptr;
|
142
|
+
! typedef typename _A::const_pointer _Ctptr;
|
143
|
+
typedef _POINTER_X(_Tptr, _A) _Mapptr;
|
144
|
+
! typedef typename _A::reference reference;
|
145
|
+
! typedef typename _A::const_reference const_reference;
|
146
|
+
! typedef typename _A::value_type value_type;
|
147
|
+
// CLASS const_iterator
|
148
|
+
class iterator;
|
149
|
+
class const_iterator : public _Ranit<_Ty, difference_type> {
|
150
|
+
*************** public:
|
151
|
+
*** 124,148 ****
|
152
|
+
iterator(_Tptr _P, _Mapptr _M)
|
153
|
+
: const_iterator(_P, _M) {}
|
154
|
+
reference operator*() const
|
155
|
+
! {return (*_Next); }
|
156
|
+
_Tptr operator->() const
|
157
|
+
{return (&**this); }
|
158
|
+
iterator& operator++()
|
159
|
+
! {if (++_Next == _Last)
|
160
|
+
{_First = *++_Map;
|
161
|
+
_Last = _First + _DEQUESIZ;
|
162
|
+
! _Next = _First; }
|
163
|
+
return (*this); }
|
164
|
+
iterator operator++(int)
|
165
|
+
{iterator _Tmp = *this;
|
166
|
+
++*this;
|
167
|
+
return (_Tmp); }
|
168
|
+
iterator& operator--()
|
169
|
+
! {if (_Next == _First)
|
170
|
+
{_First = *--_Map;
|
171
|
+
_Last = _First + _DEQUESIZ;
|
172
|
+
! _Next = _Last; }
|
173
|
+
! --_Next;
|
174
|
+
return (*this); }
|
175
|
+
iterator operator--(int)
|
176
|
+
{iterator _Tmp = *this;
|
177
|
+
--- 124,148 ----
|
178
|
+
iterator(_Tptr _P, _Mapptr _M)
|
179
|
+
: const_iterator(_P, _M) {}
|
180
|
+
reference operator*() const
|
181
|
+
! {return (*this->_Next); }
|
182
|
+
_Tptr operator->() const
|
183
|
+
{return (&**this); }
|
184
|
+
iterator& operator++()
|
185
|
+
! {if (++this->_Next == _Last)
|
186
|
+
{_First = *++_Map;
|
187
|
+
_Last = _First + _DEQUESIZ;
|
188
|
+
! this->_Next = _First; }
|
189
|
+
return (*this); }
|
190
|
+
iterator operator++(int)
|
191
|
+
{iterator _Tmp = *this;
|
192
|
+
++*this;
|
193
|
+
return (_Tmp); }
|
194
|
+
iterator& operator--()
|
195
|
+
! {if (this->_Next == _First)
|
196
|
+
{_First = *--_Map;
|
197
|
+
_Last = _First + _DEQUESIZ;
|
198
|
+
! this->_Next = _Last; }
|
199
|
+
! --this->_Next;
|
200
|
+
return (*this); }
|
201
|
+
iterator operator--(int)
|
202
|
+
{iterator _Tmp = *this;
|
203
|
+
*************** public:
|
204
|
+
*** 160,177 ****
|
205
|
+
{iterator _Tmp = *this;
|
206
|
+
return (_Tmp -= _N); }
|
207
|
+
difference_type operator-(const iterator& _X) const
|
208
|
+
! {return (_Map == _X._Map ? _Next - _X._Next
|
209
|
+
: _DEQUESIZ * (_Map - _X._Map - 1)
|
210
|
+
! + (_Next - _First) + (_X._Last - _X._Next)); }
|
211
|
+
reference operator[](difference_type _N) const
|
212
|
+
{return (*(*this + _N)); }
|
213
|
+
bool operator==(const iterator& _X) const
|
214
|
+
! {return (_Next == _X._Next); }
|
215
|
+
bool operator!=(const iterator& _X) const
|
216
|
+
{return (!(*this == _X)); }
|
217
|
+
bool operator<(const iterator& _X) const
|
218
|
+
{return (_Map < _X._Map
|
219
|
+
! || _Map == _X._Map && _Next < _X._Next); }
|
220
|
+
bool operator<=(const iterator& _X) const
|
221
|
+
{return (!(_X < *this)); }
|
222
|
+
bool operator>(const iterator& _X) const
|
223
|
+
--- 160,177 ----
|
224
|
+
{iterator _Tmp = *this;
|
225
|
+
return (_Tmp -= _N); }
|
226
|
+
difference_type operator-(const iterator& _X) const
|
227
|
+
! {return (_Map == _X._Map ? this->_Next - _X._Next
|
228
|
+
: _DEQUESIZ * (_Map - _X._Map - 1)
|
229
|
+
! + (this->_Next - _First) + (_X._Last - _X._Next)); }
|
230
|
+
reference operator[](difference_type _N) const
|
231
|
+
{return (*(*this + _N)); }
|
232
|
+
bool operator==(const iterator& _X) const
|
233
|
+
! {return (this->_Next == _X._Next); }
|
234
|
+
bool operator!=(const iterator& _X) const
|
235
|
+
{return (!(*this == _X)); }
|
236
|
+
bool operator<(const iterator& _X) const
|
237
|
+
{return (_Map < _X._Map
|
238
|
+
! || _Map == _X._Map && this->_Next < _X._Next); }
|
239
|
+
bool operator<=(const iterator& _X) const
|
240
|
+
{return (!(_X < *this)); }
|
241
|
+
bool operator>(const iterator& _X) const
|
242
|
+
Index: fstream
|
243
|
+
===================================================================
|
244
|
+
RCS file: /cvsroot/GxInclude/VcInclude/fstream,v
|
245
|
+
retrieving revision 1.1.1.1
|
246
|
+
retrieving revision 1.4
|
247
|
+
diff -c -3 -p -r1.1.1.1 -r1.4
|
248
|
+
*** fstream 13 Jun 2001 19:30:57 -0000 1.1.1.1
|
249
|
+
--- fstream 21 Oct 2007 19:06:49 -0000 1.4
|
250
|
+
*************** inline bool _Ungetc(char _C, _Filet *_Fi
|
251
|
+
*** 62,73 ****
|
252
|
+
inline bool _Ungetc(wchar_t _C, _Filet *_Fi)
|
253
|
+
{return (ungetwc(_C, _Fi) != WEOF); }
|
254
|
+
// TEMPLATE CLASS basic_filebuf
|
255
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
256
|
+
class basic_filebuf : public basic_streambuf<_E, _Tr> {
|
257
|
+
public:
|
258
|
+
typedef basic_filebuf<_E, _Tr> _Myt;
|
259
|
+
typedef basic_streambuf<_E, _Tr> _Mysb;
|
260
|
+
! typedef codecvt<_E, char, _Tr::state_type> _Cvt;
|
261
|
+
basic_filebuf(_Filet *_F = 0)
|
262
|
+
: _Loc(), _Mysb() {_Init(_F, _Newfl); }
|
263
|
+
basic_filebuf(_Uninitialized)
|
264
|
+
--- 62,76 ----
|
265
|
+
inline bool _Ungetc(wchar_t _C, _Filet *_Fi)
|
266
|
+
{return (ungetwc(_C, _Fi) != WEOF); }
|
267
|
+
// TEMPLATE CLASS basic_filebuf
|
268
|
+
! template<class _E, class _Tr >
|
269
|
+
class basic_filebuf : public basic_streambuf<_E, _Tr> {
|
270
|
+
public:
|
271
|
+
typedef basic_filebuf<_E, _Tr> _Myt;
|
272
|
+
typedef basic_streambuf<_E, _Tr> _Mysb;
|
273
|
+
! typedef typename _Mysb::int_type int_type;
|
274
|
+
! typedef typename _Mysb::pos_type pos_type;
|
275
|
+
! typedef typename _Mysb::off_type off_type;
|
276
|
+
! typedef codecvt<_E, char, typename _Tr::state_type> _Cvt;
|
277
|
+
basic_filebuf(_Filet *_F = 0)
|
278
|
+
: _Loc(), _Mysb() {_Init(_F, _Newfl); }
|
279
|
+
basic_filebuf(_Uninitialized)
|
280
|
+
*************** protected:
|
281
|
+
*** 98,105 ****
|
282
|
+
virtual int_type overflow(int_type _C = _Tr::eof())
|
283
|
+
{if (_Tr::eq_int_type(_Tr::eof(), _C))
|
284
|
+
return (_Tr::not_eof(_C));
|
285
|
+
! else if (pptr() != 0 && pptr() < epptr())
|
286
|
+
! {*_Pninc() = _Tr::to_char_type(_C);
|
287
|
+
return (_C); }
|
288
|
+
else if (_File == 0)
|
289
|
+
return (_Tr::eof());
|
290
|
+
--- 101,108 ----
|
291
|
+
virtual int_type overflow(int_type _C = _Tr::eof())
|
292
|
+
{if (_Tr::eq_int_type(_Tr::eof(), _C))
|
293
|
+
return (_Tr::not_eof(_C));
|
294
|
+
! else if (this->pptr() != 0 && this->pptr() < this->epptr())
|
295
|
+
! {*this->_Pninc() = _Tr::to_char_type(_C);
|
296
|
+
return (_C); }
|
297
|
+
else if (_File == 0)
|
298
|
+
return (_Tr::eof());
|
299
|
+
*************** protected:
|
300
|
+
*** 129,139 ****
|
301
|
+
default:
|
302
|
+
return (_Tr::eof()); }}}}
|
303
|
+
virtual int_type pbackfail(int_type _C = _Tr::eof())
|
304
|
+
! {if (gptr() != 0 && eback() < gptr()
|
305
|
+
&& (_Tr::eq_int_type(_Tr::eof(), _C)
|
306
|
+
! || _Tr::eq_int_type(_Tr::to_int_type(gptr()[-1]),
|
307
|
+
_C)))
|
308
|
+
! {_Gndec();
|
309
|
+
return (_Tr::not_eof(_C)); }
|
310
|
+
else if (_File == 0 || _Tr::eq_int_type(_Tr::eof(), _C))
|
311
|
+
return (_Tr::eof());
|
312
|
+
--- 132,142 ----
|
313
|
+
default:
|
314
|
+
return (_Tr::eof()); }}}}
|
315
|
+
virtual int_type pbackfail(int_type _C = _Tr::eof())
|
316
|
+
! {if (this->gptr() != 0 && this->eback() < this->gptr()
|
317
|
+
&& (_Tr::eq_int_type(_Tr::eof(), _C)
|
318
|
+
! || _Tr::eq_int_type(_Tr::to_int_type(this->gptr()[-1]),
|
319
|
+
_C)))
|
320
|
+
! {this->_Gndec();
|
321
|
+
return (_Tr::not_eof(_C)); }
|
322
|
+
else if (_File == 0 || _Tr::eq_int_type(_Tr::eof(), _C))
|
323
|
+
return (_Tr::eof());
|
324
|
+
*************** protected:
|
325
|
+
*** 148,160 ****
|
326
|
+
else
|
327
|
+
return (_Tr::eof()); }
|
328
|
+
virtual int_type underflow()
|
329
|
+
! {if (gptr() != 0 && gptr() < egptr())
|
330
|
+
! return (_Tr::to_int_type(*gptr()));
|
331
|
+
else
|
332
|
+
return (pbackfail(uflow())); }
|
333
|
+
virtual int_type uflow()
|
334
|
+
! {if (gptr() != 0 && gptr() < egptr())
|
335
|
+
! return (_Tr::to_int_type(*_Gninc()));
|
336
|
+
else if (_File == 0)
|
337
|
+
return (_Tr::eof());
|
338
|
+
else if (_Pcvt == 0)
|
339
|
+
--- 151,163 ----
|
340
|
+
else
|
341
|
+
return (_Tr::eof()); }
|
342
|
+
virtual int_type underflow()
|
343
|
+
! {if (this->gptr() != 0 && this->gptr() < this->egptr())
|
344
|
+
! return (_Tr::to_int_type(*this->gptr()));
|
345
|
+
else
|
346
|
+
return (pbackfail(uflow())); }
|
347
|
+
virtual int_type uflow()
|
348
|
+
! {if (this->gptr() != 0 && this->gptr() < this->egptr())
|
349
|
+
! return (_Tr::to_int_type(*this->_Gninc()));
|
350
|
+
else if (_File == 0)
|
351
|
+
return (_Tr::eof());
|
352
|
+
else if (_Pcvt == 0)
|
353
|
+
*************** protected:
|
354
|
+
*** 210,216 ****
|
355
|
+
virtual int sync()
|
356
|
+
{return (_File == 0 || 0 <= fflush(_File) ? 0 : -1); }
|
357
|
+
void _Init(_Filet *_Fp, _Initfl _Which)
|
358
|
+
! {static _Tr::state_type _Stinit;
|
359
|
+
_Closef = _Which == _Openfl;
|
360
|
+
if (_Which == _Newfl)
|
361
|
+
{_Loc.locale::~locale();
|
362
|
+
--- 213,219 ----
|
363
|
+
virtual int sync()
|
364
|
+
{return (_File == 0 || 0 <= fflush(_File) ? 0 : -1); }
|
365
|
+
void _Init(_Filet *_Fp, _Initfl _Which)
|
366
|
+
! {static typename _Tr::state_type _Stinit;
|
367
|
+
_Closef = _Which == _Openfl;
|
368
|
+
if (_Which == _Newfl)
|
369
|
+
{_Loc.locale::~locale();
|
370
|
+
*************** protected:
|
371
|
+
*** 227,233 ****
|
372
|
+
_State0 = _Stinit;
|
373
|
+
_Pcvt = 0; }
|
374
|
+
void _Initcvt()
|
375
|
+
! {_Pcvt = (_Cvt *)&_USE(getloc(), _Cvt);
|
376
|
+
_Loc = _ADDFAC(_Loc, _Pcvt);
|
377
|
+
if (_Pcvt->always_noconv())
|
378
|
+
_Pcvt = 0;
|
379
|
+
--- 230,236 ----
|
380
|
+
_State0 = _Stinit;
|
381
|
+
_Pcvt = 0; }
|
382
|
+
void _Initcvt()
|
383
|
+
! {_Pcvt = (_Cvt *)&_USE(this->getloc(), _Cvt);
|
384
|
+
_Loc = _ADDFAC(_Loc, _Pcvt);
|
385
|
+
if (_Pcvt->always_noconv())
|
386
|
+
_Pcvt = 0;
|
387
|
+
*************** protected:
|
388
|
+
*** 235,242 ****
|
389
|
+
_Str = new string; }
|
390
|
+
private:
|
391
|
+
_Cvt *_Pcvt;
|
392
|
+
! _Tr::state_type _State0;
|
393
|
+
! _Tr::state_type _State;
|
394
|
+
string *_Str;
|
395
|
+
bool _Closef;
|
396
|
+
locale _Loc;
|
397
|
+
--- 238,245 ----
|
398
|
+
_Str = new string; }
|
399
|
+
private:
|
400
|
+
_Cvt *_Pcvt;
|
401
|
+
! typename _Tr::state_type _State0;
|
402
|
+
! typename _Tr::state_type _State;
|
403
|
+
string *_Str;
|
404
|
+
bool _Closef;
|
405
|
+
locale _Loc;
|
406
|
+
*************** extern template class _CRTIMP basic_file
|
407
|
+
*** 251,257 ****
|
408
|
+
#endif // _DLL
|
409
|
+
|
410
|
+
// TEMPLATE CLASS basic_ifstream
|
411
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
412
|
+
class basic_ifstream : public basic_istream<_E, _Tr> {
|
413
|
+
public:
|
414
|
+
typedef basic_ifstream<_E, _Tr> _Myt;
|
415
|
+
--- 254,260 ----
|
416
|
+
#endif // _DLL
|
417
|
+
|
418
|
+
// TEMPLATE CLASS basic_ifstream
|
419
|
+
! template<class _E, class _Tr >
|
420
|
+
class basic_ifstream : public basic_istream<_E, _Tr> {
|
421
|
+
public:
|
422
|
+
typedef basic_ifstream<_E, _Tr> _Myt;
|
423
|
+
*************** public:
|
424
|
+
*** 259,282 ****
|
425
|
+
basic_ifstream()
|
426
|
+
: basic_istream<_E, _Tr>(&_Fb) {}
|
427
|
+
explicit basic_ifstream(const char *_S,
|
428
|
+
! ios_base::openmode _M = in)
|
429
|
+
: basic_istream<_E, _Tr>(&_Fb)
|
430
|
+
! {if (_Fb.open(_S, _M | in) == 0)
|
431
|
+
! setstate(failbit); }
|
432
|
+
virtual ~basic_ifstream()
|
433
|
+
{}
|
434
|
+
_Myfb *rdbuf() const
|
435
|
+
{return ((_Myfb *)&_Fb); }
|
436
|
+
bool is_open() const
|
437
|
+
{return (_Fb.is_open()); }
|
438
|
+
! void open(const char *_S, ios_base::openmode _M = in)
|
439
|
+
! {if (_Fb.open(_S, _M | in) == 0)
|
440
|
+
! setstate(failbit); }
|
441
|
+
void open(const char *_S, ios_base::open_mode _M)
|
442
|
+
! {open(_S, (openmode)_M); }
|
443
|
+
void close()
|
444
|
+
{if (_Fb.close() == 0)
|
445
|
+
! setstate(failbit); }
|
446
|
+
private:
|
447
|
+
_Myfb _Fb;
|
448
|
+
};
|
449
|
+
--- 262,285 ----
|
450
|
+
basic_ifstream()
|
451
|
+
: basic_istream<_E, _Tr>(&_Fb) {}
|
452
|
+
explicit basic_ifstream(const char *_S,
|
453
|
+
! ios_base::openmode _M = ios_base::in)
|
454
|
+
: basic_istream<_E, _Tr>(&_Fb)
|
455
|
+
! {if (_Fb.open(_S, _M | ios_base::in) == 0)
|
456
|
+
! this->setstate(ios::failbit); }
|
457
|
+
virtual ~basic_ifstream()
|
458
|
+
{}
|
459
|
+
_Myfb *rdbuf() const
|
460
|
+
{return ((_Myfb *)&_Fb); }
|
461
|
+
bool is_open() const
|
462
|
+
{return (_Fb.is_open()); }
|
463
|
+
! void open(const char *_S, ios_base::openmode _M = ios_base::in)
|
464
|
+
! {if (_Fb.open(_S, _M | ios_base::in) == 0)
|
465
|
+
! this->setstate(ios::failbit); }
|
466
|
+
void open(const char *_S, ios_base::open_mode _M)
|
467
|
+
! {open(_S, (ios_base::openmode)_M); }
|
468
|
+
void close()
|
469
|
+
{if (_Fb.close() == 0)
|
470
|
+
! this->setstate(ios::failbit); }
|
471
|
+
private:
|
472
|
+
_Myfb _Fb;
|
473
|
+
};
|
474
|
+
*************** extern template class _CRTIMP basic_ifst
|
475
|
+
*** 289,295 ****
|
476
|
+
#endif // _DLL
|
477
|
+
|
478
|
+
// TEMPLATE CLASS basic_ofstream
|
479
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
480
|
+
class basic_ofstream : public basic_ostream<_E, _Tr> {
|
481
|
+
public:
|
482
|
+
typedef basic_ofstream<_E, _Tr> _Myt;
|
483
|
+
--- 292,298 ----
|
484
|
+
#endif // _DLL
|
485
|
+
|
486
|
+
// TEMPLATE CLASS basic_ofstream
|
487
|
+
! template<class _E, class _Tr >
|
488
|
+
class basic_ofstream : public basic_ostream<_E, _Tr> {
|
489
|
+
public:
|
490
|
+
typedef basic_ofstream<_E, _Tr> _Myt;
|
491
|
+
*************** public:
|
492
|
+
*** 297,320 ****
|
493
|
+
basic_ofstream()
|
494
|
+
: basic_ostream<_E, _Tr>(&_Fb) {}
|
495
|
+
explicit basic_ofstream(const char *_S,
|
496
|
+
! ios_base::openmode _M = out | trunc)
|
497
|
+
: basic_ostream<_E, _Tr>(&_Fb)
|
498
|
+
! {if (_Fb.open(_S, _M | out) == 0)
|
499
|
+
! setstate(failbit); }
|
500
|
+
virtual ~basic_ofstream()
|
501
|
+
{}
|
502
|
+
_Myfb *rdbuf() const
|
503
|
+
{return ((_Myfb *)&_Fb); }
|
504
|
+
bool is_open() const
|
505
|
+
{return (_Fb.is_open()); }
|
506
|
+
! void open(const char *_S, ios_base::openmode _M = out | trunc)
|
507
|
+
! {if (_Fb.open(_S, _M | out) == 0)
|
508
|
+
! setstate(failbit); }
|
509
|
+
void open(const char *_S, ios_base::open_mode _M)
|
510
|
+
! {open(_S, (openmode)_M); }
|
511
|
+
void close()
|
512
|
+
{if (_Fb.close() == 0)
|
513
|
+
! setstate(failbit); }
|
514
|
+
private:
|
515
|
+
_Myfb _Fb;
|
516
|
+
};
|
517
|
+
--- 300,323 ----
|
518
|
+
basic_ofstream()
|
519
|
+
: basic_ostream<_E, _Tr>(&_Fb) {}
|
520
|
+
explicit basic_ofstream(const char *_S,
|
521
|
+
! ios_base::openmode _M = ios_base::out | ios_base::trunc)
|
522
|
+
: basic_ostream<_E, _Tr>(&_Fb)
|
523
|
+
! {if (_Fb.open(_S, _M | ios_base::out) == 0)
|
524
|
+
! this->setstate(ios_base::failbit); }
|
525
|
+
virtual ~basic_ofstream()
|
526
|
+
{}
|
527
|
+
_Myfb *rdbuf() const
|
528
|
+
{return ((_Myfb *)&_Fb); }
|
529
|
+
bool is_open() const
|
530
|
+
{return (_Fb.is_open()); }
|
531
|
+
! void open(const char *_S, ios_base::openmode _M = ios_base::out | ios_base::trunc)
|
532
|
+
! {if (_Fb.open(_S, _M | ios_base::out) == 0)
|
533
|
+
! this->setstate(ios_base::failbit); }
|
534
|
+
void open(const char *_S, ios_base::open_mode _M)
|
535
|
+
! {open(_S, (ios_base::openmode)_M); }
|
536
|
+
void close()
|
537
|
+
{if (_Fb.close() == 0)
|
538
|
+
! this->setstate(ios_base::failbit); }
|
539
|
+
private:
|
540
|
+
_Myfb _Fb;
|
541
|
+
};
|
542
|
+
*************** extern template class _CRTIMP basic_ofst
|
543
|
+
*** 328,357 ****
|
544
|
+
|
545
|
+
|
546
|
+
// TEMPLATE CLASS basic_fstream
|
547
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
548
|
+
class basic_fstream : public basic_iostream<_E, _Tr> {
|
549
|
+
public:
|
550
|
+
basic_fstream()
|
551
|
+
: basic_iostream<_E, _Tr>(&_Fb) {}
|
552
|
+
explicit basic_fstream(const char *_S,
|
553
|
+
! ios_base::openmode _M = in | out)
|
554
|
+
: basic_iostream<_E, _Tr>(&_Fb)
|
555
|
+
{if (_Fb.open(_S, _M) == 0)
|
556
|
+
! setstate(failbit); }
|
557
|
+
virtual ~basic_fstream()
|
558
|
+
{}
|
559
|
+
basic_filebuf<_E, _Tr> *rdbuf() const
|
560
|
+
{return ((basic_filebuf<_E, _Tr> *)&_Fb); }
|
561
|
+
bool is_open() const
|
562
|
+
{return (_Fb.is_open()); }
|
563
|
+
! void open(const char *_S, ios_base::openmode _M = in | out)
|
564
|
+
{if (_Fb.open(_S, _M) == 0)
|
565
|
+
! setstate(failbit); }
|
566
|
+
void open(const char *_S, ios_base::open_mode _M)
|
567
|
+
! {open(_S, (openmode)_M); }
|
568
|
+
void close()
|
569
|
+
{if (_Fb.close() == 0)
|
570
|
+
! setstate(failbit); }
|
571
|
+
private:
|
572
|
+
basic_filebuf<_E, _Tr> _Fb;
|
573
|
+
};
|
574
|
+
--- 331,360 ----
|
575
|
+
|
576
|
+
|
577
|
+
// TEMPLATE CLASS basic_fstream
|
578
|
+
! template<class _E, class _Tr >
|
579
|
+
class basic_fstream : public basic_iostream<_E, _Tr> {
|
580
|
+
public:
|
581
|
+
basic_fstream()
|
582
|
+
: basic_iostream<_E, _Tr>(&_Fb) {}
|
583
|
+
explicit basic_fstream(const char *_S,
|
584
|
+
! ios_base::openmode _M = ios_base::in | ios_base::out)
|
585
|
+
: basic_iostream<_E, _Tr>(&_Fb)
|
586
|
+
{if (_Fb.open(_S, _M) == 0)
|
587
|
+
! this->setstate(ios::failbit); }
|
588
|
+
virtual ~basic_fstream()
|
589
|
+
{}
|
590
|
+
basic_filebuf<_E, _Tr> *rdbuf() const
|
591
|
+
{return ((basic_filebuf<_E, _Tr> *)&_Fb); }
|
592
|
+
bool is_open() const
|
593
|
+
{return (_Fb.is_open()); }
|
594
|
+
! void open(const char *_S, ios_base::openmode _M = ios_base::in | ios_base::out)
|
595
|
+
{if (_Fb.open(_S, _M) == 0)
|
596
|
+
! this->setstate(ios::failbit); }
|
597
|
+
void open(const char *_S, ios_base::open_mode _M)
|
598
|
+
! {open(_S, (ios_base::openmode)_M); }
|
599
|
+
void close()
|
600
|
+
{if (_Fb.close() == 0)
|
601
|
+
! this->setstate(ios::failbit); }
|
602
|
+
private:
|
603
|
+
basic_filebuf<_E, _Tr> _Fb;
|
604
|
+
};
|
605
|
+
Index: functional
|
606
|
+
===================================================================
|
607
|
+
RCS file: /cvsroot/GxInclude/VcInclude/functional,v
|
608
|
+
retrieving revision 1.1.1.1
|
609
|
+
retrieving revision 1.4
|
610
|
+
diff -c -3 -p -r1.1.1.1 -r1.4
|
611
|
+
*** functional 13 Jun 2001 19:30:57 -0000 1.1.1.1
|
612
|
+
--- functional 21 Oct 2007 19:06:49 -0000 1.4
|
613
|
+
*************** template<class _Ty>
|
614
|
+
*** 118,128 ****
|
615
|
+
// TEMPLATE CLASS unary_negate
|
616
|
+
template<class _Ufn>
|
617
|
+
class unary_negate
|
618
|
+
! : public unary_function<_Ufn::argument_type, bool> {
|
619
|
+
public:
|
620
|
+
explicit unary_negate(const _Ufn& _X)
|
621
|
+
: _Fn(_X) {}
|
622
|
+
! bool operator()(const _Ufn::argument_type& _X) const
|
623
|
+
{return (!_Fn(_X)); }
|
624
|
+
protected:
|
625
|
+
_Ufn _Fn;
|
626
|
+
--- 118,128 ----
|
627
|
+
// TEMPLATE CLASS unary_negate
|
628
|
+
template<class _Ufn>
|
629
|
+
class unary_negate
|
630
|
+
! : public unary_function<typename _Ufn::argument_type, bool> {
|
631
|
+
public:
|
632
|
+
explicit unary_negate(const _Ufn& _X)
|
633
|
+
: _Fn(_X) {}
|
634
|
+
! bool operator()(const typename _Ufn::argument_type& _X) const
|
635
|
+
{return (!_Fn(_X)); }
|
636
|
+
protected:
|
637
|
+
_Ufn _Fn;
|
638
|
+
*************** template<class _Ufn> inline
|
639
|
+
*** 134,146 ****
|
640
|
+
// TEMPLATE CLASS binary_negate
|
641
|
+
template<class _Bfn>
|
642
|
+
class binary_negate
|
643
|
+
! : public binary_function<_Bfn::first_argument_type,
|
644
|
+
! _Bfn::second_argument_type, bool> {
|
645
|
+
public:
|
646
|
+
explicit binary_negate(const _Bfn& _X)
|
647
|
+
: _Fn(_X) {}
|
648
|
+
! bool operator()(const _Bfn::first_argument_type& _X,
|
649
|
+
! const _Bfn::second_argument_type& _Y) const
|
650
|
+
{return (!_Fn(_X, _Y)); }
|
651
|
+
protected:
|
652
|
+
_Bfn _Fn;
|
653
|
+
--- 134,146 ----
|
654
|
+
// TEMPLATE CLASS binary_negate
|
655
|
+
template<class _Bfn>
|
656
|
+
class binary_negate
|
657
|
+
! : public binary_function<typename _Bfn::first_argument_type,
|
658
|
+
! typename _Bfn::second_argument_type, bool> {
|
659
|
+
public:
|
660
|
+
explicit binary_negate(const _Bfn& _X)
|
661
|
+
: _Fn(_X) {}
|
662
|
+
! bool operator()(const typename _Bfn::first_argument_type& _X,
|
663
|
+
! const typename _Bfn::second_argument_type& _Y) const
|
664
|
+
{return (!_Fn(_X, _Y)); }
|
665
|
+
protected:
|
666
|
+
_Bfn _Fn;
|
667
|
+
*************** template<class _Bfn> inline
|
668
|
+
*** 152,168 ****
|
669
|
+
// TEMPLATE CLASS binder1st
|
670
|
+
template<class _Bfn>
|
671
|
+
class binder1st
|
672
|
+
! : public unary_function<_Bfn::second_argument_type,
|
673
|
+
! _Bfn::result_type> {
|
674
|
+
public:
|
675
|
+
binder1st(const _Bfn& _X,
|
676
|
+
! const _Bfn::first_argument_type& _Y)
|
677
|
+
: op(_X), value(_Y) {}
|
678
|
+
result_type operator()(const argument_type& _X) const
|
679
|
+
{return (op(value, _X)); }
|
680
|
+
protected:
|
681
|
+
_Bfn op;
|
682
|
+
! _Bfn::first_argument_type value;
|
683
|
+
};
|
684
|
+
// TEMPLATE FUNCTION bind1st
|
685
|
+
template<class _Bfn, class _Ty> inline
|
686
|
+
--- 152,172 ----
|
687
|
+
// TEMPLATE CLASS binder1st
|
688
|
+
template<class _Bfn>
|
689
|
+
class binder1st
|
690
|
+
! : public unary_function<typename _Bfn::second_argument_type,
|
691
|
+
! typename _Bfn::result_type> {
|
692
|
+
public:
|
693
|
+
+ typedef typename unary_function<typename _Bfn::second_argument_type,
|
694
|
+
+ typename _Bfn::result_type>::argument_type argument_type;
|
695
|
+
+ typedef typename unary_function<typename _Bfn::second_argument_type,
|
696
|
+
+ typename _Bfn::result_type>::result_type result_type;
|
697
|
+
binder1st(const _Bfn& _X,
|
698
|
+
! const typename _Bfn::first_argument_type& _Y)
|
699
|
+
: op(_X), value(_Y) {}
|
700
|
+
result_type operator()(const argument_type& _X) const
|
701
|
+
{return (op(value, _X)); }
|
702
|
+
protected:
|
703
|
+
_Bfn op;
|
704
|
+
! typename _Bfn::first_argument_type value;
|
705
|
+
};
|
706
|
+
// TEMPLATE FUNCTION bind1st
|
707
|
+
template<class _Bfn, class _Ty> inline
|
708
|
+
*************** template<class _Bfn, class _Ty> inline
|
709
|
+
*** 172,188 ****
|
710
|
+
// TEMPLATE CLASS binder2nd
|
711
|
+
template<class _Bfn>
|
712
|
+
class binder2nd
|
713
|
+
! : public unary_function<_Bfn::first_argument_type,
|
714
|
+
! _Bfn::result_type> {
|
715
|
+
public:
|
716
|
+
binder2nd(const _Bfn& _X,
|
717
|
+
! const _Bfn::second_argument_type& _Y)
|
718
|
+
: op(_X), value(_Y) {}
|
719
|
+
result_type operator()(const argument_type& _X) const
|
720
|
+
{return (op(_X, value)); }
|
721
|
+
protected:
|
722
|
+
_Bfn op;
|
723
|
+
! _Bfn::second_argument_type value;
|
724
|
+
};
|
725
|
+
// TEMPLATE FUNCTION bind2nd
|
726
|
+
template<class _Bfn, class _Ty> inline
|
727
|
+
--- 176,196 ----
|
728
|
+
// TEMPLATE CLASS binder2nd
|
729
|
+
template<class _Bfn>
|
730
|
+
class binder2nd
|
731
|
+
! : public unary_function<typename _Bfn::first_argument_type,
|
732
|
+
! typename _Bfn::result_type> {
|
733
|
+
public:
|
734
|
+
+ typedef typename unary_function<typename _Bfn::first_argument_type,
|
735
|
+
+ typename _Bfn::result_type>::argument_type argument_type;
|
736
|
+
+ typedef typename unary_function<typename _Bfn::first_argument_type,
|
737
|
+
+ typename _Bfn::result_type>::result_type result_type;
|
738
|
+
binder2nd(const _Bfn& _X,
|
739
|
+
! const typename _Bfn::second_argument_type& _Y)
|
740
|
+
: op(_X), value(_Y) {}
|
741
|
+
result_type operator()(const argument_type& _X) const
|
742
|
+
{return (op(_X, value)); }
|
743
|
+
protected:
|
744
|
+
_Bfn op;
|
745
|
+
! typename _Bfn::second_argument_type value;
|
746
|
+
};
|
747
|
+
// TEMPLATE FUNCTION bind2nd
|
748
|
+
template<class _Bfn, class _Ty> inline
|
749
|
+
*************** public:
|
750
|
+
*** 199,205 ****
|
751
|
+
_R operator()(_A _X) const
|
752
|
+
{return (_Fn(_X)); }
|
753
|
+
protected:
|
754
|
+
! _R (__cdecl *_Fn)(_A);
|
755
|
+
};
|
756
|
+
// TEMPLATE CLASS pointer_to_binary_function
|
757
|
+
template<class _A1, class _A2, class _R>
|
758
|
+
--- 207,214 ----
|
759
|
+
_R operator()(_A _X) const
|
760
|
+
{return (_Fn(_X)); }
|
761
|
+
protected:
|
762
|
+
! typedef _R (__cdecl *_FnType)(_A);
|
763
|
+
! _FnType _Fn;
|
764
|
+
};
|
765
|
+
// TEMPLATE CLASS pointer_to_binary_function
|
766
|
+
template<class _A1, class _A2, class _R>
|
767
|
+
*************** public:
|
768
|
+
*** 212,218 ****
|
769
|
+
_R operator()(_A1 _X, _A2 _Y) const
|
770
|
+
{return (_Fn(_X, _Y)); }
|
771
|
+
protected:
|
772
|
+
! _R (__cdecl *_Fn)(_A1, _A2);
|
773
|
+
};
|
774
|
+
// TEMPLATE FUNCTION ptr_fun
|
775
|
+
template<class _A, class _R> inline
|
776
|
+
--- 221,228 ----
|
777
|
+
_R operator()(_A1 _X, _A2 _Y) const
|
778
|
+
{return (_Fn(_X, _Y)); }
|
779
|
+
protected:
|
780
|
+
! typedef _R (__cdecl *_FnType)(_A1, _A2);
|
781
|
+
! _FnType _Fn;
|
782
|
+
};
|
783
|
+
// TEMPLATE FUNCTION ptr_fun
|
784
|
+
template<class _A, class _R> inline
|
785
|
+
Index: ios
|
786
|
+
===================================================================
|
787
|
+
RCS file: /cvsroot/GxInclude/VcInclude/ios,v
|
788
|
+
retrieving revision 1.1.1.1
|
789
|
+
retrieving revision 1.2
|
790
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
791
|
+
*** ios 13 Jun 2001 19:31:04 -0000 1.1.1.1
|
792
|
+
--- ios 13 Jun 2001 21:16:23 -0000 1.2
|
793
|
+
***************
|
794
|
+
*** 13,19 ****
|
795
|
+
#endif /* _MSC_VER */
|
796
|
+
_STD_BEGIN
|
797
|
+
// TEMPLATE CLASS basic_ios
|
798
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
799
|
+
class basic_ios : public ios_base {
|
800
|
+
public:
|
801
|
+
typedef basic_ios<_E, _Tr> _Myt;
|
802
|
+
--- 13,19 ----
|
803
|
+
#endif /* _MSC_VER */
|
804
|
+
_STD_BEGIN
|
805
|
+
// TEMPLATE CLASS basic_ios
|
806
|
+
! template<class _E, class _Tr >
|
807
|
+
class basic_ios : public ios_base {
|
808
|
+
public:
|
809
|
+
typedef basic_ios<_E, _Tr> _Myt;
|
810
|
+
*************** public:
|
811
|
+
*** 28,36 ****
|
812
|
+
{}
|
813
|
+
typedef _E char_type;
|
814
|
+
typedef _Tr traits_type;
|
815
|
+
! typedef _Tr::int_type int_type;
|
816
|
+
! typedef _Tr::pos_type pos_type;
|
817
|
+
! typedef _Tr::off_type off_type;
|
818
|
+
void clear(iostate _St = goodbit, bool _Ex = false)
|
819
|
+
{ios_base::clear(_Sb == 0 ? (int)_St | (int)badbit
|
820
|
+
: (int)_St, _Ex); }
|
821
|
+
--- 28,36 ----
|
822
|
+
{}
|
823
|
+
typedef _E char_type;
|
824
|
+
typedef _Tr traits_type;
|
825
|
+
! typedef typename _Tr::int_type int_type;
|
826
|
+
! typedef typename _Tr::pos_type pos_type;
|
827
|
+
! typedef typename _Tr::off_type off_type;
|
828
|
+
void clear(iostate _St = goodbit, bool _Ex = false)
|
829
|
+
{ios_base::clear(_Sb == 0 ? (int)_St | (int)badbit
|
830
|
+
: (int)_St, _Ex); }
|
831
|
+
Index: istream
|
832
|
+
===================================================================
|
833
|
+
RCS file: /cvsroot/GxInclude/VcInclude/istream,v
|
834
|
+
retrieving revision 1.1.1.1
|
835
|
+
retrieving revision 1.3
|
836
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
837
|
+
*** istream 13 Jun 2001 19:31:05 -0000 1.1.1.1
|
838
|
+
--- istream 21 Oct 2007 19:06:49 -0000 1.3
|
839
|
+
***************
|
840
|
+
*** 13,19 ****
|
841
|
+
#endif /* _MSC_VER */
|
842
|
+
_STD_BEGIN
|
843
|
+
// TEMPLATE CLASS basic_istream
|
844
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
845
|
+
class basic_istream : virtual public basic_ios<_E, _Tr> {
|
846
|
+
public:
|
847
|
+
typedef basic_istream<_E, _Tr> _Myt;
|
848
|
+
--- 13,19 ----
|
849
|
+
#endif /* _MSC_VER */
|
850
|
+
_STD_BEGIN
|
851
|
+
// TEMPLATE CLASS basic_istream
|
852
|
+
! template<class _E, class _Tr >
|
853
|
+
class basic_istream : virtual public basic_ios<_E, _Tr> {
|
854
|
+
public:
|
855
|
+
typedef basic_istream<_E, _Tr> _Myt;
|
856
|
+
*************** public:
|
857
|
+
*** 22,31 ****
|
858
|
+
typedef istreambuf_iterator<_E, _Tr> _Iter;
|
859
|
+
typedef ctype<_E> _Ctype;
|
860
|
+
typedef num_get<_E, _Iter> _Nget;
|
861
|
+
explicit basic_istream(_Mysb *_S, bool _Isstd = false)
|
862
|
+
: _Chcount(0) {init(_S, _Isstd); }
|
863
|
+
basic_istream(_Uninitialized)
|
864
|
+
! {_Addstd(); }
|
865
|
+
virtual ~basic_istream()
|
866
|
+
{}
|
867
|
+
class sentry {
|
868
|
+
--- 22,35 ----
|
869
|
+
typedef istreambuf_iterator<_E, _Tr> _Iter;
|
870
|
+
typedef ctype<_E> _Ctype;
|
871
|
+
typedef num_get<_E, _Iter> _Nget;
|
872
|
+
+ typedef typename _Myios::pos_type pos_type;
|
873
|
+
+ typedef typename _Myios::off_type off_type;
|
874
|
+
+ typedef typename _Myios::iostate iostate;
|
875
|
+
+ typedef typename _Myios::int_type int_type;
|
876
|
+
explicit basic_istream(_Mysb *_S, bool _Isstd = false)
|
877
|
+
: _Chcount(0) {init(_S, _Isstd); }
|
878
|
+
basic_istream(_Uninitialized)
|
879
|
+
! {this->_Addstd(); }
|
880
|
+
virtual ~basic_istream()
|
881
|
+
{}
|
882
|
+
class sentry {
|
883
|
+
*************** public:
|
884
|
+
*** 38,58 ****
|
885
|
+
bool _Ok;
|
886
|
+
};
|
887
|
+
bool ipfx(bool _Noskip = false)
|
888
|
+
! {if (good())
|
889
|
+
! {if (tie() != 0)
|
890
|
+
! tie()->flush();
|
891
|
+
! if (!_Noskip && flags() & skipws)
|
892
|
+
! {const _Ctype& _Fac = _USE(getloc(), _Ctype);
|
893
|
+
_TRY_IO_BEGIN
|
894
|
+
! int_type _C = rdbuf()->sgetc();
|
895
|
+
while (!_Tr::eq_int_type(_Tr::eof(), _C)
|
896
|
+
&& _Fac.is(_Ctype::space,
|
897
|
+
_Tr::to_char_type(_C)))
|
898
|
+
! _C = rdbuf()->snextc();
|
899
|
+
_CATCH_IO_END }
|
900
|
+
! if (good())
|
901
|
+
return (true); }
|
902
|
+
! setstate(failbit);
|
903
|
+
return (false); }
|
904
|
+
void isfx()
|
905
|
+
{}
|
906
|
+
--- 42,62 ----
|
907
|
+
bool _Ok;
|
908
|
+
};
|
909
|
+
bool ipfx(bool _Noskip = false)
|
910
|
+
! {if (this->good())
|
911
|
+
! {if (this->tie() != 0)
|
912
|
+
! this->tie()->flush();
|
913
|
+
! if (!_Noskip && this->flags() & ios_base::skipws)
|
914
|
+
! {const _Ctype& _Fac = _USE(this->getloc(), _Ctype);
|
915
|
+
_TRY_IO_BEGIN
|
916
|
+
! int_type _C = this->rdbuf()->sgetc();
|
917
|
+
while (!_Tr::eq_int_type(_Tr::eof(), _C)
|
918
|
+
&& _Fac.is(_Ctype::space,
|
919
|
+
_Tr::to_char_type(_C)))
|
920
|
+
! _C = this->rdbuf()->snextc();
|
921
|
+
_CATCH_IO_END }
|
922
|
+
! if (this->good())
|
923
|
+
return (true); }
|
924
|
+
! this->setstate(ios_base::failbit);
|
925
|
+
return (false); }
|
926
|
+
void isfx()
|
927
|
+
{}
|
928
|
+
*************** public:
|
929
|
+
*** 65,199 ****
|
930
|
+
{(*_F)(*(ios_base *)this);
|
931
|
+
return (*this); }
|
932
|
+
_Myt& operator>>(_Bool& _X)
|
933
|
+
! {iostate _St = goodbit;
|
934
|
+
const sentry _Ok(*this);
|
935
|
+
if (_Ok)
|
936
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
937
|
+
_TRY_IO_BEGIN
|
938
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
939
|
+
_CATCH_IO_END }
|
940
|
+
setstate(_St);
|
941
|
+
return (*this); }
|
942
|
+
_Myt& operator>>(short& _X)
|
943
|
+
! {iostate _St = goodbit;
|
944
|
+
const sentry _Ok(*this);
|
945
|
+
if (_Ok)
|
946
|
+
{long _Y;
|
947
|
+
! const _Nget& _Fac = _USE(getloc(), _Nget);
|
948
|
+
_TRY_IO_BEGIN
|
949
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _Y);
|
950
|
+
_CATCH_IO_END
|
951
|
+
! if (_St & failbit || _Y < SHRT_MIN || SHRT_MAX < _Y)
|
952
|
+
! _St |= failbit;
|
953
|
+
else
|
954
|
+
_X = (short)_Y; }
|
955
|
+
setstate(_St);
|
956
|
+
return (*this); }
|
957
|
+
_Myt& operator>>(unsigned short& _X)
|
958
|
+
! {iostate _St = goodbit;
|
959
|
+
const sentry _Ok(*this);
|
960
|
+
if (_Ok)
|
961
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
962
|
+
_TRY_IO_BEGIN
|
963
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
964
|
+
_CATCH_IO_END }
|
965
|
+
setstate(_St);
|
966
|
+
return (*this); }
|
967
|
+
_Myt& operator>>(int& _X)
|
968
|
+
! {iostate _St = goodbit;
|
969
|
+
const sentry _Ok(*this);
|
970
|
+
if (_Ok)
|
971
|
+
{long _Y;
|
972
|
+
! const _Nget& _Fac = _USE(getloc(), _Nget);
|
973
|
+
_TRY_IO_BEGIN
|
974
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _Y);
|
975
|
+
_CATCH_IO_END
|
976
|
+
! if (_St & failbit || _Y < INT_MIN || INT_MAX < _Y)
|
977
|
+
! _St |= failbit;
|
978
|
+
else
|
979
|
+
_X = _Y; }
|
980
|
+
setstate(_St);
|
981
|
+
return (*this); }
|
982
|
+
_Myt& operator>>(unsigned int& _X)
|
983
|
+
! {iostate _St = goodbit;
|
984
|
+
const sentry _Ok(*this);
|
985
|
+
if (_Ok)
|
986
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
987
|
+
_TRY_IO_BEGIN
|
988
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
989
|
+
_CATCH_IO_END }
|
990
|
+
setstate(_St);
|
991
|
+
return (*this); }
|
992
|
+
_Myt& operator>>(long& _X)
|
993
|
+
! {iostate _St = goodbit;
|
994
|
+
const sentry _Ok(*this);
|
995
|
+
if (_Ok)
|
996
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
997
|
+
_TRY_IO_BEGIN
|
998
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
999
|
+
_CATCH_IO_END }
|
1000
|
+
setstate(_St);
|
1001
|
+
return (*this); }
|
1002
|
+
_Myt& operator>>(unsigned long& _X)
|
1003
|
+
! {iostate _St = goodbit;
|
1004
|
+
const sentry _Ok(*this);
|
1005
|
+
if (_Ok)
|
1006
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
1007
|
+
_TRY_IO_BEGIN
|
1008
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
1009
|
+
_CATCH_IO_END }
|
1010
|
+
setstate(_St);
|
1011
|
+
return (*this); }
|
1012
|
+
_Myt& operator>>(float& _X)
|
1013
|
+
! {iostate _St = goodbit;
|
1014
|
+
const sentry _Ok(*this);
|
1015
|
+
if (_Ok)
|
1016
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
1017
|
+
_TRY_IO_BEGIN
|
1018
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
1019
|
+
_CATCH_IO_END }
|
1020
|
+
setstate(_St);
|
1021
|
+
return (*this); }
|
1022
|
+
_Myt& operator>>(double& _X)
|
1023
|
+
! {iostate _St = goodbit;
|
1024
|
+
const sentry _Ok(*this);
|
1025
|
+
if (_Ok)
|
1026
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
1027
|
+
_TRY_IO_BEGIN
|
1028
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
1029
|
+
_CATCH_IO_END }
|
1030
|
+
setstate(_St);
|
1031
|
+
return (*this); }
|
1032
|
+
_Myt& operator>>(long double& _X)
|
1033
|
+
! {iostate _St = goodbit;
|
1034
|
+
const sentry _Ok(*this);
|
1035
|
+
if (_Ok)
|
1036
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
1037
|
+
_TRY_IO_BEGIN
|
1038
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
1039
|
+
_CATCH_IO_END }
|
1040
|
+
setstate(_St);
|
1041
|
+
return (*this); }
|
1042
|
+
_Myt& operator>>(void *& _X)
|
1043
|
+
! {iostate _St = goodbit;
|
1044
|
+
const sentry _Ok(*this);
|
1045
|
+
if (_Ok)
|
1046
|
+
! {const _Nget& _Fac = _USE(getloc(), _Nget);
|
1047
|
+
_TRY_IO_BEGIN
|
1048
|
+
! _Fac.get(_Iter(rdbuf()), _Iter(0), *this, _St, _X);
|
1049
|
+
_CATCH_IO_END }
|
1050
|
+
setstate(_St);
|
1051
|
+
return (*this); }
|
1052
|
+
_Myt& operator>>(_Mysb *_Pb)
|
1053
|
+
! {iostate _St = goodbit;
|
1054
|
+
bool _Copied = false;
|
1055
|
+
const sentry _Ok(*this);
|
1056
|
+
if (_Ok && _Pb != 0)
|
1057
|
+
{_TRY_IO_BEGIN
|
1058
|
+
! int_type _C = rdbuf()->sgetc();
|
1059
|
+
! for (; ; _C = rdbuf()->snextc())
|
1060
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1061
|
+
! {_St |= eofbit;
|
1062
|
+
break; }
|
1063
|
+
else
|
1064
|
+
{_TRY_BEGIN
|
1065
|
+
--- 69,203 ----
|
1066
|
+
{(*_F)(*(ios_base *)this);
|
1067
|
+
return (*this); }
|
1068
|
+
_Myt& operator>>(_Bool& _X)
|
1069
|
+
! {iostate _St = ios_base::goodbit;
|
1070
|
+
const sentry _Ok(*this);
|
1071
|
+
if (_Ok)
|
1072
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1073
|
+
_TRY_IO_BEGIN
|
1074
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1075
|
+
_CATCH_IO_END }
|
1076
|
+
setstate(_St);
|
1077
|
+
return (*this); }
|
1078
|
+
_Myt& operator>>(short& _X)
|
1079
|
+
! {iostate _St = ios_base::goodbit;
|
1080
|
+
const sentry _Ok(*this);
|
1081
|
+
if (_Ok)
|
1082
|
+
{long _Y;
|
1083
|
+
! const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1084
|
+
_TRY_IO_BEGIN
|
1085
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _Y);
|
1086
|
+
_CATCH_IO_END
|
1087
|
+
! if (_St & ios_base::failbit || _Y < SHRT_MIN || SHRT_MAX < _Y)
|
1088
|
+
! _St |= ios_base::failbit;
|
1089
|
+
else
|
1090
|
+
_X = (short)_Y; }
|
1091
|
+
setstate(_St);
|
1092
|
+
return (*this); }
|
1093
|
+
_Myt& operator>>(unsigned short& _X)
|
1094
|
+
! {iostate _St = ios_base::goodbit;
|
1095
|
+
const sentry _Ok(*this);
|
1096
|
+
if (_Ok)
|
1097
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1098
|
+
_TRY_IO_BEGIN
|
1099
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1100
|
+
_CATCH_IO_END }
|
1101
|
+
setstate(_St);
|
1102
|
+
return (*this); }
|
1103
|
+
_Myt& operator>>(int& _X)
|
1104
|
+
! {iostate _St = ios_base::goodbit;
|
1105
|
+
const sentry _Ok(*this);
|
1106
|
+
if (_Ok)
|
1107
|
+
{long _Y;
|
1108
|
+
! const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1109
|
+
_TRY_IO_BEGIN
|
1110
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _Y);
|
1111
|
+
_CATCH_IO_END
|
1112
|
+
! if (_St & ios_base::failbit || _Y < INT_MIN || INT_MAX < _Y)
|
1113
|
+
! _St |= ios_base::failbit;
|
1114
|
+
else
|
1115
|
+
_X = _Y; }
|
1116
|
+
setstate(_St);
|
1117
|
+
return (*this); }
|
1118
|
+
_Myt& operator>>(unsigned int& _X)
|
1119
|
+
! {iostate _St = ios_base::goodbit;
|
1120
|
+
const sentry _Ok(*this);
|
1121
|
+
if (_Ok)
|
1122
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1123
|
+
_TRY_IO_BEGIN
|
1124
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1125
|
+
_CATCH_IO_END }
|
1126
|
+
setstate(_St);
|
1127
|
+
return (*this); }
|
1128
|
+
_Myt& operator>>(long& _X)
|
1129
|
+
! {iostate _St = ios_base::goodbit;
|
1130
|
+
const sentry _Ok(*this);
|
1131
|
+
if (_Ok)
|
1132
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1133
|
+
_TRY_IO_BEGIN
|
1134
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1135
|
+
_CATCH_IO_END }
|
1136
|
+
setstate(_St);
|
1137
|
+
return (*this); }
|
1138
|
+
_Myt& operator>>(unsigned long& _X)
|
1139
|
+
! {iostate _St = ios_base::goodbit;
|
1140
|
+
const sentry _Ok(*this);
|
1141
|
+
if (_Ok)
|
1142
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1143
|
+
_TRY_IO_BEGIN
|
1144
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1145
|
+
_CATCH_IO_END }
|
1146
|
+
setstate(_St);
|
1147
|
+
return (*this); }
|
1148
|
+
_Myt& operator>>(float& _X)
|
1149
|
+
! {iostate _St = ios_base::goodbit;
|
1150
|
+
const sentry _Ok(*this);
|
1151
|
+
if (_Ok)
|
1152
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1153
|
+
_TRY_IO_BEGIN
|
1154
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1155
|
+
_CATCH_IO_END }
|
1156
|
+
setstate(_St);
|
1157
|
+
return (*this); }
|
1158
|
+
_Myt& operator>>(double& _X)
|
1159
|
+
! {iostate _St = ios_base::goodbit;
|
1160
|
+
const sentry _Ok(*this);
|
1161
|
+
if (_Ok)
|
1162
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1163
|
+
_TRY_IO_BEGIN
|
1164
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1165
|
+
_CATCH_IO_END }
|
1166
|
+
setstate(_St);
|
1167
|
+
return (*this); }
|
1168
|
+
_Myt& operator>>(long double& _X)
|
1169
|
+
! {iostate _St = ios_base::goodbit;
|
1170
|
+
const sentry _Ok(*this);
|
1171
|
+
if (_Ok)
|
1172
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1173
|
+
_TRY_IO_BEGIN
|
1174
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1175
|
+
_CATCH_IO_END }
|
1176
|
+
setstate(_St);
|
1177
|
+
return (*this); }
|
1178
|
+
_Myt& operator>>(void *& _X)
|
1179
|
+
! {iostate _St = ios_base::goodbit;
|
1180
|
+
const sentry _Ok(*this);
|
1181
|
+
if (_Ok)
|
1182
|
+
! {const _Nget& _Fac = _USE(this->getloc(), _Nget);
|
1183
|
+
_TRY_IO_BEGIN
|
1184
|
+
! _Fac.get(_Iter(this->rdbuf()), _Iter(0), *this, _St, _X);
|
1185
|
+
_CATCH_IO_END }
|
1186
|
+
setstate(_St);
|
1187
|
+
return (*this); }
|
1188
|
+
_Myt& operator>>(_Mysb *_Pb)
|
1189
|
+
! {iostate _St = ios_base::goodbit;
|
1190
|
+
bool _Copied = false;
|
1191
|
+
const sentry _Ok(*this);
|
1192
|
+
if (_Ok && _Pb != 0)
|
1193
|
+
{_TRY_IO_BEGIN
|
1194
|
+
! int_type _C = this->rdbuf()->sgetc();
|
1195
|
+
! for (; ; _C = this->rdbuf()->snextc())
|
1196
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1197
|
+
! {_St |= ios_base::eofbit;
|
1198
|
+
break; }
|
1199
|
+
else
|
1200
|
+
{_TRY_BEGIN
|
1201
|
+
*************** public:
|
1202
|
+
*** 205,248 ****
|
1203
|
+
_CATCH_END
|
1204
|
+
_Copied = true; }
|
1205
|
+
_CATCH_IO_END }
|
1206
|
+
! setstate(!_Copied ? _St | failbit : _St);
|
1207
|
+
return (*this); }
|
1208
|
+
int_type get()
|
1209
|
+
{int_type _C;
|
1210
|
+
! iostate _St = goodbit;
|
1211
|
+
_Chcount = 0;
|
1212
|
+
const sentry _Ok(*this, true);
|
1213
|
+
if (!_Ok)
|
1214
|
+
_C = _Tr::eof();
|
1215
|
+
else
|
1216
|
+
{_TRY_IO_BEGIN
|
1217
|
+
! _C = rdbuf()->sbumpc();
|
1218
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1219
|
+
! _St |= eofbit | failbit;
|
1220
|
+
else
|
1221
|
+
++_Chcount;
|
1222
|
+
_CATCH_IO_END }
|
1223
|
+
setstate(_St);
|
1224
|
+
return (_C); }
|
1225
|
+
_Myt& get(_E *_S, streamsize _N)
|
1226
|
+
! {return (get(_S, _N, widen('\n'))); }
|
1227
|
+
_Myt& get(_E *_S, streamsize _N, _E _D)
|
1228
|
+
! {iostate _St = goodbit;
|
1229
|
+
_Chcount = 0;
|
1230
|
+
const sentry _Ok(*this, true);
|
1231
|
+
if (_Ok && 0 < _N)
|
1232
|
+
{_TRY_IO_BEGIN
|
1233
|
+
! int_type _C = rdbuf()->sgetc();
|
1234
|
+
! for (; 0 < --_N; _C = rdbuf()->snextc())
|
1235
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1236
|
+
! {_St |= eofbit;
|
1237
|
+
break; }
|
1238
|
+
else if (_Tr::to_char_type(_C) == _D)
|
1239
|
+
break;
|
1240
|
+
else
|
1241
|
+
*_S++ = _Tr::to_char_type(_C), ++_Chcount;
|
1242
|
+
_CATCH_IO_END }
|
1243
|
+
! setstate(_Chcount == 0 ? _St | failbit : _St);
|
1244
|
+
*_S = _E(0);
|
1245
|
+
return (*this); }
|
1246
|
+
_Myt& get(_E& _X)
|
1247
|
+
--- 209,252 ----
|
1248
|
+
_CATCH_END
|
1249
|
+
_Copied = true; }
|
1250
|
+
_CATCH_IO_END }
|
1251
|
+
! setstate(!_Copied ? _St | ios_base::failbit : _St);
|
1252
|
+
return (*this); }
|
1253
|
+
int_type get()
|
1254
|
+
{int_type _C;
|
1255
|
+
! iostate _St = ios_base::goodbit;
|
1256
|
+
_Chcount = 0;
|
1257
|
+
const sentry _Ok(*this, true);
|
1258
|
+
if (!_Ok)
|
1259
|
+
_C = _Tr::eof();
|
1260
|
+
else
|
1261
|
+
{_TRY_IO_BEGIN
|
1262
|
+
! _C = this->rdbuf()->sbumpc();
|
1263
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1264
|
+
! _St |= ios_base::eofbit | ios_base::failbit;
|
1265
|
+
else
|
1266
|
+
++_Chcount;
|
1267
|
+
_CATCH_IO_END }
|
1268
|
+
setstate(_St);
|
1269
|
+
return (_C); }
|
1270
|
+
_Myt& get(_E *_S, streamsize _N)
|
1271
|
+
! {return (get(_S, _N, this->widen('\n'))); }
|
1272
|
+
_Myt& get(_E *_S, streamsize _N, _E _D)
|
1273
|
+
! {iostate _St = ios_base::goodbit;
|
1274
|
+
_Chcount = 0;
|
1275
|
+
const sentry _Ok(*this, true);
|
1276
|
+
if (_Ok && 0 < _N)
|
1277
|
+
{_TRY_IO_BEGIN
|
1278
|
+
! int_type _C = this->rdbuf()->sgetc();
|
1279
|
+
! for (; 0 < --_N; _C = this->rdbuf()->snextc())
|
1280
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1281
|
+
! {_St |= ios_base::eofbit;
|
1282
|
+
break; }
|
1283
|
+
else if (_Tr::to_char_type(_C) == _D)
|
1284
|
+
break;
|
1285
|
+
else
|
1286
|
+
*_S++ = _Tr::to_char_type(_C), ++_Chcount;
|
1287
|
+
_CATCH_IO_END }
|
1288
|
+
! setstate(_Chcount == 0 ? _St | ios_base::failbit : _St);
|
1289
|
+
*_S = _E(0);
|
1290
|
+
return (*this); }
|
1291
|
+
_Myt& get(_E& _X)
|
1292
|
+
*************** public:
|
1293
|
+
*** 251,267 ****
|
1294
|
+
_X = _Tr::to_char_type(_C);
|
1295
|
+
return (*this); }
|
1296
|
+
_Myt& get(_Mysb& _Sb)
|
1297
|
+
! {return (get(_Sb, widen('\n'))); }
|
1298
|
+
_Myt& get(_Mysb& _Sb, _E _D)
|
1299
|
+
! {iostate _St = goodbit;
|
1300
|
+
_Chcount = 0;
|
1301
|
+
const sentry _Ok(*this, true);
|
1302
|
+
if (_Ok)
|
1303
|
+
{_TRY_IO_BEGIN
|
1304
|
+
! int_type _C = rdbuf()->sgetc();
|
1305
|
+
! for (; ; _C = rdbuf()->snextc())
|
1306
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1307
|
+
! {_St |= eofbit;
|
1308
|
+
break; }
|
1309
|
+
else
|
1310
|
+
{_TRY_BEGIN
|
1311
|
+
--- 255,271 ----
|
1312
|
+
_X = _Tr::to_char_type(_C);
|
1313
|
+
return (*this); }
|
1314
|
+
_Myt& get(_Mysb& _Sb)
|
1315
|
+
! {return (get(_Sb, this->widen('\n'))); }
|
1316
|
+
_Myt& get(_Mysb& _Sb, _E _D)
|
1317
|
+
! {iostate _St = ios_base::goodbit;
|
1318
|
+
_Chcount = 0;
|
1319
|
+
const sentry _Ok(*this, true);
|
1320
|
+
if (_Ok)
|
1321
|
+
{_TRY_IO_BEGIN
|
1322
|
+
! int_type _C = this->rdbuf()->sgetc();
|
1323
|
+
! for (; ; _C = this->rdbuf()->snextc())
|
1324
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1325
|
+
! {_St |= ios_base::eofbit;
|
1326
|
+
break; }
|
1327
|
+
else
|
1328
|
+
{_TRY_BEGIN
|
1329
|
+
*************** public:
|
1330
|
+
*** 276,314 ****
|
1331
|
+
++_Chcount; }
|
1332
|
+
_CATCH_IO_END }
|
1333
|
+
if (_Chcount == 0)
|
1334
|
+
! _St |= failbit;
|
1335
|
+
setstate(_St);
|
1336
|
+
return (*this); }
|
1337
|
+
_Myt& getline(_E *_S, streamsize _N)
|
1338
|
+
! {return (getline(_S, _N, widen('\n'))); }
|
1339
|
+
_Myt& getline(_E *_S, streamsize _N, _E _D)
|
1340
|
+
! {iostate _St = goodbit;
|
1341
|
+
_Chcount = 0;
|
1342
|
+
const sentry _Ok(*this, true);
|
1343
|
+
if (_Ok && 0 < _N)
|
1344
|
+
{int_type _Di = _Tr::to_int_type(_D);
|
1345
|
+
_TRY_IO_BEGIN
|
1346
|
+
! int_type _C = rdbuf()->sgetc();
|
1347
|
+
! for (; ; _C = rdbuf()->snextc())
|
1348
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1349
|
+
! {_St |= eofbit;
|
1350
|
+
break; }
|
1351
|
+
else if (_C == _Di)
|
1352
|
+
{++_Chcount;
|
1353
|
+
! rdbuf()->stossc();
|
1354
|
+
break; }
|
1355
|
+
else if (--_N <= 0)
|
1356
|
+
! {_St |= failbit;
|
1357
|
+
break; }
|
1358
|
+
else
|
1359
|
+
{++_Chcount;
|
1360
|
+
*_S++ = _Tr::to_char_type(_C); }
|
1361
|
+
_CATCH_IO_END }
|
1362
|
+
*_S = _E(0);
|
1363
|
+
! setstate(_Chcount == 0 ? _St | failbit : _St);
|
1364
|
+
return (*this); }
|
1365
|
+
_Myt& ignore(streamsize _N = 1, int_type _Di = _Tr::eof())
|
1366
|
+
! {iostate _St = goodbit;
|
1367
|
+
_Chcount = 0;
|
1368
|
+
const sentry _Ok(*this, true);
|
1369
|
+
if (_Ok && 0 < _N)
|
1370
|
+
--- 280,318 ----
|
1371
|
+
++_Chcount; }
|
1372
|
+
_CATCH_IO_END }
|
1373
|
+
if (_Chcount == 0)
|
1374
|
+
! _St |= ios_base::failbit;
|
1375
|
+
setstate(_St);
|
1376
|
+
return (*this); }
|
1377
|
+
_Myt& getline(_E *_S, streamsize _N)
|
1378
|
+
! {return (getline(_S, _N, this->widen('\n'))); }
|
1379
|
+
_Myt& getline(_E *_S, streamsize _N, _E _D)
|
1380
|
+
! {iostate _St = ios_base::goodbit;
|
1381
|
+
_Chcount = 0;
|
1382
|
+
const sentry _Ok(*this, true);
|
1383
|
+
if (_Ok && 0 < _N)
|
1384
|
+
{int_type _Di = _Tr::to_int_type(_D);
|
1385
|
+
_TRY_IO_BEGIN
|
1386
|
+
! int_type _C = this->rdbuf()->sgetc();
|
1387
|
+
! for (; ; _C = this->rdbuf()->snextc())
|
1388
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1389
|
+
! {_St |= ios_base::eofbit;
|
1390
|
+
break; }
|
1391
|
+
else if (_C == _Di)
|
1392
|
+
{++_Chcount;
|
1393
|
+
! this->rdbuf()->stossc();
|
1394
|
+
break; }
|
1395
|
+
else if (--_N <= 0)
|
1396
|
+
! {_St |= ios_base::failbit;
|
1397
|
+
break; }
|
1398
|
+
else
|
1399
|
+
{++_Chcount;
|
1400
|
+
*_S++ = _Tr::to_char_type(_C); }
|
1401
|
+
_CATCH_IO_END }
|
1402
|
+
*_S = _E(0);
|
1403
|
+
! setstate(_Chcount == 0 ? _St | ios_base::failbit : _St);
|
1404
|
+
return (*this); }
|
1405
|
+
_Myt& ignore(streamsize _N = 1, int_type _Di = _Tr::eof())
|
1406
|
+
! {iostate _St = ios_base::goodbit;
|
1407
|
+
_Chcount = 0;
|
1408
|
+
const sentry _Ok(*this, true);
|
1409
|
+
if (_Ok && 0 < _N)
|
1410
|
+
*************** public:
|
1411
|
+
*** 318,325 ****
|
1412
|
+
if (_N != INT_MAX && --_N < 0)
|
1413
|
+
break;
|
1414
|
+
else if (_Tr::eq_int_type(_Tr::eof(),
|
1415
|
+
! _C = rdbuf()->sbumpc()))
|
1416
|
+
! {_St |= eofbit;
|
1417
|
+
break; }
|
1418
|
+
else
|
1419
|
+
{++_Chcount;
|
1420
|
+
--- 322,329 ----
|
1421
|
+
if (_N != INT_MAX && --_N < 0)
|
1422
|
+
break;
|
1423
|
+
else if (_Tr::eq_int_type(_Tr::eof(),
|
1424
|
+
! _C = this->rdbuf()->sbumpc()))
|
1425
|
+
! {_St |= ios_base::eofbit;
|
1426
|
+
break; }
|
1427
|
+
else
|
1428
|
+
{++_Chcount;
|
1429
|
+
*************** public:
|
1430
|
+
*** 329,360 ****
|
1431
|
+
setstate(_St);
|
1432
|
+
return (*this); }
|
1433
|
+
_Myt& read(_E *_S, streamsize _N)
|
1434
|
+
! {iostate _St = goodbit;
|
1435
|
+
_Chcount = 0;
|
1436
|
+
const sentry _Ok(*this, true);
|
1437
|
+
if (_Ok)
|
1438
|
+
{_TRY_IO_BEGIN
|
1439
|
+
! const streamsize _M = rdbuf()->sgetn(_S, _N);
|
1440
|
+
_Chcount += _M;
|
1441
|
+
if (_M != _N)
|
1442
|
+
! _St |= eofbit | failbit;
|
1443
|
+
_CATCH_IO_END }
|
1444
|
+
setstate(_St);
|
1445
|
+
return (*this); }
|
1446
|
+
streamsize readsome(_E *_S, streamsize _N)
|
1447
|
+
! {iostate _St = goodbit;
|
1448
|
+
_Chcount = 0;
|
1449
|
+
int _M;
|
1450
|
+
! if (rdbuf() == 0)
|
1451
|
+
! _St |= failbit;
|
1452
|
+
! else if ((_M = rdbuf()->in_avail()) < 0)
|
1453
|
+
! _St |= eofbit;
|
1454
|
+
else if (0 < _M)
|
1455
|
+
read(_S, _M < _N ? _M : _N);
|
1456
|
+
setstate(_St);
|
1457
|
+
return (gcount()); }
|
1458
|
+
int_type peek()
|
1459
|
+
! {iostate _St = goodbit;
|
1460
|
+
_Chcount = 0;
|
1461
|
+
int_type _C;
|
1462
|
+
const sentry _Ok(*this, true);
|
1463
|
+
--- 333,364 ----
|
1464
|
+
setstate(_St);
|
1465
|
+
return (*this); }
|
1466
|
+
_Myt& read(_E *_S, streamsize _N)
|
1467
|
+
! {iostate _St = ios_base::goodbit;
|
1468
|
+
_Chcount = 0;
|
1469
|
+
const sentry _Ok(*this, true);
|
1470
|
+
if (_Ok)
|
1471
|
+
{_TRY_IO_BEGIN
|
1472
|
+
! const streamsize _M = this->rdbuf()->sgetn(_S, _N);
|
1473
|
+
_Chcount += _M;
|
1474
|
+
if (_M != _N)
|
1475
|
+
! _St |= ios_base::eofbit | ios_base::failbit;
|
1476
|
+
_CATCH_IO_END }
|
1477
|
+
setstate(_St);
|
1478
|
+
return (*this); }
|
1479
|
+
streamsize readsome(_E *_S, streamsize _N)
|
1480
|
+
! {iostate _St = ios_base::goodbit;
|
1481
|
+
_Chcount = 0;
|
1482
|
+
int _M;
|
1483
|
+
! if (this->rdbuf() == 0)
|
1484
|
+
! _St |= this->ios_base::failbit;
|
1485
|
+
! else if ((_M = this->rdbuf()->in_avail()) < 0)
|
1486
|
+
! _St |= ios_base::eofbit;
|
1487
|
+
else if (0 < _M)
|
1488
|
+
read(_S, _M < _N ? _M : _N);
|
1489
|
+
setstate(_St);
|
1490
|
+
return (gcount()); }
|
1491
|
+
int_type peek()
|
1492
|
+
! {iostate _St = ios_base::goodbit;
|
1493
|
+
_Chcount = 0;
|
1494
|
+
int_type _C;
|
1495
|
+
const sentry _Ok(*this, true);
|
1496
|
+
*************** public:
|
1497
|
+
*** 363,421 ****
|
1498
|
+
else
|
1499
|
+
{_TRY_IO_BEGIN
|
1500
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
1501
|
+
! _C = rdbuf()->sgetc()))
|
1502
|
+
! _St |= eofbit;
|
1503
|
+
_CATCH_IO_END }
|
1504
|
+
setstate(_St);
|
1505
|
+
return (_C); }
|
1506
|
+
_Myt& putback(_E _X)
|
1507
|
+
! {iostate _St = goodbit;
|
1508
|
+
_Chcount = 0;
|
1509
|
+
const sentry _Ok(*this, true);
|
1510
|
+
if (_Ok)
|
1511
|
+
{_TRY_IO_BEGIN
|
1512
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
1513
|
+
! rdbuf()->sputbackc(_X)))
|
1514
|
+
! _St |= badbit;
|
1515
|
+
_CATCH_IO_END }
|
1516
|
+
setstate(_St);
|
1517
|
+
return (*this); }
|
1518
|
+
_Myt& unget()
|
1519
|
+
! {iostate _St = goodbit;
|
1520
|
+
_Chcount = 0;
|
1521
|
+
const sentry _Ok(*this, true);
|
1522
|
+
if (_Ok)
|
1523
|
+
{_TRY_IO_BEGIN
|
1524
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
1525
|
+
! rdbuf()->sungetc()))
|
1526
|
+
! _St |= badbit;
|
1527
|
+
_CATCH_IO_END }
|
1528
|
+
setstate(_St);
|
1529
|
+
return (*this); }
|
1530
|
+
streamsize gcount() const
|
1531
|
+
{return (_Chcount); }
|
1532
|
+
int sync()
|
1533
|
+
! {iostate _St = goodbit;
|
1534
|
+
int _Ans;
|
1535
|
+
! if (rdbuf() == 0)
|
1536
|
+
_Ans = -1;
|
1537
|
+
! else if (rdbuf()->pubsync() == -1)
|
1538
|
+
! _St |= badbit, _Ans = -1;
|
1539
|
+
else
|
1540
|
+
_Ans = 0;
|
1541
|
+
setstate(_St);
|
1542
|
+
return (_Ans); }
|
1543
|
+
_Myt& seekg(pos_type _P)
|
1544
|
+
! {if (!fail())
|
1545
|
+
! rdbuf()->pubseekpos(_P, in);
|
1546
|
+
return (*this); }
|
1547
|
+
_Myt& seekg(off_type _O, ios_base::seekdir _W)
|
1548
|
+
! {if (!fail())
|
1549
|
+
! rdbuf()->pubseekoff(_O, _W, in);
|
1550
|
+
return (*this); }
|
1551
|
+
pos_type tellg()
|
1552
|
+
! {if (!fail())
|
1553
|
+
! return (rdbuf()->pubseekoff(0, cur, in));
|
1554
|
+
else
|
1555
|
+
return (streampos(_BADOFF)); }
|
1556
|
+
private:
|
1557
|
+
--- 367,425 ----
|
1558
|
+
else
|
1559
|
+
{_TRY_IO_BEGIN
|
1560
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
1561
|
+
! _C = this->rdbuf()->sgetc()))
|
1562
|
+
! _St |= ios_base::eofbit;
|
1563
|
+
_CATCH_IO_END }
|
1564
|
+
setstate(_St);
|
1565
|
+
return (_C); }
|
1566
|
+
_Myt& putback(_E _X)
|
1567
|
+
! {iostate _St = ios_base::goodbit;
|
1568
|
+
_Chcount = 0;
|
1569
|
+
const sentry _Ok(*this, true);
|
1570
|
+
if (_Ok)
|
1571
|
+
{_TRY_IO_BEGIN
|
1572
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
1573
|
+
! this->rdbuf()->sputbackc(_X)))
|
1574
|
+
! _St |= ios_base::badbit;
|
1575
|
+
_CATCH_IO_END }
|
1576
|
+
setstate(_St);
|
1577
|
+
return (*this); }
|
1578
|
+
_Myt& unget()
|
1579
|
+
! {iostate _St = ios_base::goodbit;
|
1580
|
+
_Chcount = 0;
|
1581
|
+
const sentry _Ok(*this, true);
|
1582
|
+
if (_Ok)
|
1583
|
+
{_TRY_IO_BEGIN
|
1584
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
1585
|
+
! this->rdbuf()->sungetc()))
|
1586
|
+
! _St |= ios_base::badbit;
|
1587
|
+
_CATCH_IO_END }
|
1588
|
+
setstate(_St);
|
1589
|
+
return (*this); }
|
1590
|
+
streamsize gcount() const
|
1591
|
+
{return (_Chcount); }
|
1592
|
+
int sync()
|
1593
|
+
! {iostate _St = ios_base::goodbit;
|
1594
|
+
int _Ans;
|
1595
|
+
! if (this->rdbuf() == 0)
|
1596
|
+
_Ans = -1;
|
1597
|
+
! else if (this->rdbuf()->pubsync() == -1)
|
1598
|
+
! _St |= ios_base::badbit, _Ans = -1;
|
1599
|
+
else
|
1600
|
+
_Ans = 0;
|
1601
|
+
setstate(_St);
|
1602
|
+
return (_Ans); }
|
1603
|
+
_Myt& seekg(pos_type _P)
|
1604
|
+
! {if (!this->fail())
|
1605
|
+
! this->rdbuf()->pubseekpos(_P, ios_base::in);
|
1606
|
+
return (*this); }
|
1607
|
+
_Myt& seekg(off_type _O, ios_base::seekdir _W)
|
1608
|
+
! {if (!this->fail())
|
1609
|
+
! this->rdbuf()->pubseekoff(_O, _W, ios_base::in);
|
1610
|
+
return (*this); }
|
1611
|
+
pos_type tellg()
|
1612
|
+
! {if (!this->fail())
|
1613
|
+
! return (this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::in));
|
1614
|
+
else
|
1615
|
+
return (streampos(_BADOFF)); }
|
1616
|
+
private:
|
1617
|
+
*************** extern template class _CRTIMP basic_istr
|
1618
|
+
*** 430,436 ****
|
1619
|
+
#endif // _DLL
|
1620
|
+
|
1621
|
+
// TEMPLATE CLASS basic_iostream
|
1622
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
1623
|
+
class basic_iostream : public basic_istream<_E, _Tr>,
|
1624
|
+
public basic_ostream<_E, _Tr> {
|
1625
|
+
public:
|
1626
|
+
--- 434,440 ----
|
1627
|
+
#endif // _DLL
|
1628
|
+
|
1629
|
+
// TEMPLATE CLASS basic_iostream
|
1630
|
+
! template<class _E, class _Tr >
|
1631
|
+
class basic_iostream : public basic_istream<_E, _Tr>,
|
1632
|
+
public basic_ostream<_E, _Tr> {
|
1633
|
+
public:
|
1634
|
+
*************** template<class _E, class _Tr> inline
|
1635
|
+
*** 458,469 ****
|
1636
|
+
typedef ctype<_E> _Ctype;
|
1637
|
+
ios_base::iostate _St = ios_base::goodbit;
|
1638
|
+
_E *_S = _X;
|
1639
|
+
! const _Myis::sentry _Ok(_I);
|
1640
|
+
if (_Ok)
|
1641
|
+
{const _Ctype& _Fac = _USE(_I.getloc(), _Ctype);
|
1642
|
+
_TRY_IO_BEGIN
|
1643
|
+
int _N = 0 < _I.width() ? _I.width() : INT_MAX;
|
1644
|
+
! _Myis::int_type _C = _I.rdbuf()->sgetc();
|
1645
|
+
for (; 0 < --_N; _C = _I.rdbuf()->snextc())
|
1646
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1647
|
+
{_St |= ios_base::eofbit;
|
1648
|
+
--- 462,473 ----
|
1649
|
+
typedef ctype<_E> _Ctype;
|
1650
|
+
ios_base::iostate _St = ios_base::goodbit;
|
1651
|
+
_E *_S = _X;
|
1652
|
+
! const typename _Myis::sentry _Ok(_I);
|
1653
|
+
if (_Ok)
|
1654
|
+
{const _Ctype& _Fac = _USE(_I.getloc(), _Ctype);
|
1655
|
+
_TRY_IO_BEGIN
|
1656
|
+
int _N = 0 < _I.width() ? _I.width() : INT_MAX;
|
1657
|
+
! typename _Myis::int_type _C = _I.rdbuf()->sgetc();
|
1658
|
+
for (; 0 < --_N; _C = _I.rdbuf()->snextc())
|
1659
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1660
|
+
{_St |= ios_base::eofbit;
|
1661
|
+
*************** template<class _E, class _Tr> inline
|
1662
|
+
*** 482,490 ****
|
1663
|
+
basic_istream<_E, _Tr>& __cdecl operator>>(
|
1664
|
+
basic_istream<_E, _Tr>& _I, _E& _X)
|
1665
|
+
{typedef basic_istream<_E, _Tr> _Myis;
|
1666
|
+
! _Myis::int_type _C;
|
1667
|
+
! ios_base::iostate _St = ios_base::goodbit;
|
1668
|
+
! const _Myis::sentry _Ok(_I);
|
1669
|
+
if (_Ok)
|
1670
|
+
{_TRY_IO_BEGIN
|
1671
|
+
_C = _I.rdbuf()->sbumpc();
|
1672
|
+
--- 486,494 ----
|
1673
|
+
basic_istream<_E, _Tr>& __cdecl operator>>(
|
1674
|
+
basic_istream<_E, _Tr>& _I, _E& _X)
|
1675
|
+
{typedef basic_istream<_E, _Tr> _Myis;
|
1676
|
+
! typename _Myis::int_type _C;
|
1677
|
+
! typename ios_base::iostate _St = ios_base::goodbit;
|
1678
|
+
! const typename _Myis::sentry _Ok(_I);
|
1679
|
+
if (_Ok)
|
1680
|
+
{_TRY_IO_BEGIN
|
1681
|
+
_C = _I.rdbuf()->sbumpc();
|
1682
|
+
*************** template<class _E, class _Tr> inline
|
1683
|
+
*** 521,531 ****
|
1684
|
+
{typedef basic_istream<_E, _Tr> _Myis;
|
1685
|
+
typedef ctype<_E> _Ctype;
|
1686
|
+
ios_base::iostate _St = ios_base::goodbit;
|
1687
|
+
! const _Myis::sentry _Ok(_I, true);
|
1688
|
+
if (_Ok)
|
1689
|
+
{const _Ctype& _Fac = _USE(_I.getloc(), _Ctype);
|
1690
|
+
_TRY_IO_BEGIN
|
1691
|
+
! for (_Tr::int_type _C = _I.rdbuf()->sgetc(); ;
|
1692
|
+
_C = _I.rdbuf()->snextc())
|
1693
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1694
|
+
{_St |= ios_base::eofbit;
|
1695
|
+
--- 525,535 ----
|
1696
|
+
{typedef basic_istream<_E, _Tr> _Myis;
|
1697
|
+
typedef ctype<_E> _Ctype;
|
1698
|
+
ios_base::iostate _St = ios_base::goodbit;
|
1699
|
+
! const typename _Myis::sentry _Ok(_I, true);
|
1700
|
+
if (_Ok)
|
1701
|
+
{const _Ctype& _Fac = _USE(_I.getloc(), _Ctype);
|
1702
|
+
_TRY_IO_BEGIN
|
1703
|
+
! for (typename _Tr::int_type _C = _I.rdbuf()->sgetc(); ;
|
1704
|
+
_C = _I.rdbuf()->snextc())
|
1705
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
1706
|
+
{_St |= ios_base::eofbit;
|
1707
|
+
Index: iterator
|
1708
|
+
===================================================================
|
1709
|
+
RCS file: /cvsroot/GxInclude/VcInclude/iterator,v
|
1710
|
+
retrieving revision 1.1.1.1
|
1711
|
+
retrieving revision 1.2
|
1712
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
1713
|
+
*** iterator 13 Jun 2001 19:31:05 -0000 1.1.1.1
|
1714
|
+
--- iterator 13 Jun 2001 21:16:23 -0000 1.2
|
1715
|
+
*************** template<class _C>
|
1716
|
+
*** 74,80 ****
|
1717
|
+
: public iterator<output_iterator_tag, void, void> {
|
1718
|
+
public:
|
1719
|
+
typedef _C container_type;
|
1720
|
+
! typedef _C::value_type value_type;
|
1721
|
+
explicit back_insert_iterator(_C& _X)
|
1722
|
+
: container(_X) {}
|
1723
|
+
back_insert_iterator<_C>& operator=(
|
1724
|
+
--- 74,80 ----
|
1725
|
+
: public iterator<output_iterator_tag, void, void> {
|
1726
|
+
public:
|
1727
|
+
typedef _C container_type;
|
1728
|
+
! typedef typename _C::value_type value_type;
|
1729
|
+
explicit back_insert_iterator(_C& _X)
|
1730
|
+
: container(_X) {}
|
1731
|
+
back_insert_iterator<_C>& operator=(
|
1732
|
+
*************** template<class _C>
|
1733
|
+
*** 99,105 ****
|
1734
|
+
: public iterator<output_iterator_tag, void, void> {
|
1735
|
+
public:
|
1736
|
+
typedef _C container_type;
|
1737
|
+
! typedef _C::value_type value_type;
|
1738
|
+
explicit front_insert_iterator(_C& _X)
|
1739
|
+
: container(_X) {}
|
1740
|
+
front_insert_iterator<_C>& operator=(
|
1741
|
+
--- 99,105 ----
|
1742
|
+
: public iterator<output_iterator_tag, void, void> {
|
1743
|
+
public:
|
1744
|
+
typedef _C container_type;
|
1745
|
+
! typedef typename _C::value_type value_type;
|
1746
|
+
explicit front_insert_iterator(_C& _X)
|
1747
|
+
: container(_X) {}
|
1748
|
+
front_insert_iterator<_C>& operator=(
|
1749
|
+
*************** template<class _C>
|
1750
|
+
*** 124,131 ****
|
1751
|
+
: public iterator<output_iterator_tag, void, void> {
|
1752
|
+
public:
|
1753
|
+
typedef _C container_type;
|
1754
|
+
! typedef _C::value_type value_type;
|
1755
|
+
! insert_iterator(_C& _X, _C::iterator _I)
|
1756
|
+
: container(_X), iter(_I) {}
|
1757
|
+
insert_iterator<_C>& operator=(
|
1758
|
+
const value_type& _V)
|
1759
|
+
--- 124,131 ----
|
1760
|
+
: public iterator<output_iterator_tag, void, void> {
|
1761
|
+
public:
|
1762
|
+
typedef _C container_type;
|
1763
|
+
! typedef typename _C::value_type value_type;
|
1764
|
+
! insert_iterator(_C& _X, typename _C::iterator _I)
|
1765
|
+
: container(_X), iter(_I) {}
|
1766
|
+
insert_iterator<_C>& operator=(
|
1767
|
+
const value_type& _V)
|
1768
|
+
*************** public:
|
1769
|
+
*** 140,146 ****
|
1770
|
+
{return (*this); }
|
1771
|
+
protected:
|
1772
|
+
_C& container;
|
1773
|
+
! _C::iterator iter;
|
1774
|
+
};
|
1775
|
+
template<class _C, class _XI> inline
|
1776
|
+
insert_iterator<_C> inserter(_C& _X, _XI _I)
|
1777
|
+
--- 140,146 ----
|
1778
|
+
{return (*this); }
|
1779
|
+
protected:
|
1780
|
+
_C& container;
|
1781
|
+
! typename _C::iterator iter;
|
1782
|
+
};
|
1783
|
+
template<class _C, class _XI> inline
|
1784
|
+
insert_iterator<_C> inserter(_C& _X, _XI _I)
|
1785
|
+
Index: limits
|
1786
|
+
===================================================================
|
1787
|
+
RCS file: /cvsroot/GxInclude/VcInclude/limits,v
|
1788
|
+
retrieving revision 1.1.1.1
|
1789
|
+
retrieving revision 1.2
|
1790
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
1791
|
+
*** limits 13 Jun 2001 19:31:07 -0000 1.1.1.1
|
1792
|
+
--- limits 21 Oct 2007 19:06:49 -0000 1.2
|
1793
|
+
*************** struct _CRTIMP _Num_base {
|
1794
|
+
*** 53,64 ****
|
1795
|
+
_STCONS(int, min_exponent10, 0);
|
1796
|
+
_STCONS(int, radix, 0);
|
1797
|
+
};
|
1798
|
+
// TEMPLATE CLASS numeric_limits
|
1799
|
+
template<class _Ty> class numeric_limits : public _Num_base {
|
1800
|
+
public:
|
1801
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1802
|
+
{return (_Ty(0)); }
|
1803
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1804
|
+
{return (_Ty(0)); }
|
1805
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1806
|
+
{return (_Ty(0)); }
|
1807
|
+
--- 53,65 ----
|
1808
|
+
_STCONS(int, min_exponent10, 0);
|
1809
|
+
_STCONS(int, radix, 0);
|
1810
|
+
};
|
1811
|
+
+ #define __GCCXML_AVOID_MACRO_EXPANSION
|
1812
|
+
// TEMPLATE CLASS numeric_limits
|
1813
|
+
template<class _Ty> class numeric_limits : public _Num_base {
|
1814
|
+
public:
|
1815
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1816
|
+
{return (_Ty(0)); }
|
1817
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1818
|
+
{return (_Ty(0)); }
|
1819
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1820
|
+
{return (_Ty(0)); }
|
1821
|
+
*************** struct _CRTIMP _Num_float_base : public
|
1822
|
+
*** 102,113 ****
|
1823
|
+
_STCONS(int, radix, FLT_RADIX);
|
1824
|
+
};
|
1825
|
+
// CLASS numeric_limits<char>
|
1826
|
+
class _CRTIMP numeric_limits<char> : public _Num_int_base {
|
1827
|
+
public:
|
1828
|
+
typedef char _Ty;
|
1829
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1830
|
+
{return (CHAR_MIN); }
|
1831
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1832
|
+
{return (CHAR_MAX); }
|
1833
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1834
|
+
{return (0); }
|
1835
|
+
--- 103,115 ----
|
1836
|
+
_STCONS(int, radix, FLT_RADIX);
|
1837
|
+
};
|
1838
|
+
// CLASS numeric_limits<char>
|
1839
|
+
+ template <>
|
1840
|
+
class _CRTIMP numeric_limits<char> : public _Num_int_base {
|
1841
|
+
public:
|
1842
|
+
typedef char _Ty;
|
1843
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1844
|
+
{return (CHAR_MIN); }
|
1845
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1846
|
+
{return (CHAR_MAX); }
|
1847
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1848
|
+
{return (0); }
|
1849
|
+
*************** public:
|
1850
|
+
*** 127,138 ****
|
1851
|
+
* 301L / 1000);
|
1852
|
+
};
|
1853
|
+
// CLASS numeric_limits<_Bool>
|
1854
|
+
class _CRTIMP numeric_limits<_Bool> : public _Num_int_base {
|
1855
|
+
public:
|
1856
|
+
typedef bool _Ty;
|
1857
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1858
|
+
{return (false); }
|
1859
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1860
|
+
{return (true); }
|
1861
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1862
|
+
{return (0); }
|
1863
|
+
--- 129,141 ----
|
1864
|
+
* 301L / 1000);
|
1865
|
+
};
|
1866
|
+
// CLASS numeric_limits<_Bool>
|
1867
|
+
+ template<>
|
1868
|
+
class _CRTIMP numeric_limits<_Bool> : public _Num_int_base {
|
1869
|
+
public:
|
1870
|
+
typedef bool _Ty;
|
1871
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1872
|
+
{return (false); }
|
1873
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1874
|
+
{return (true); }
|
1875
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1876
|
+
{return (0); }
|
1877
|
+
*************** public:
|
1878
|
+
*** 151,162 ****
|
1879
|
+
_STCONS(int, digits10, 0);
|
1880
|
+
};
|
1881
|
+
// CLASS numeric_limits<signed char>
|
1882
|
+
class _CRTIMP numeric_limits<signed char> : public _Num_int_base {
|
1883
|
+
public:
|
1884
|
+
typedef signed char _Ty;
|
1885
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1886
|
+
{return (SCHAR_MIN); }
|
1887
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1888
|
+
{return (SCHAR_MAX); }
|
1889
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1890
|
+
{return (0); }
|
1891
|
+
--- 154,166 ----
|
1892
|
+
_STCONS(int, digits10, 0);
|
1893
|
+
};
|
1894
|
+
// CLASS numeric_limits<signed char>
|
1895
|
+
+ template<>
|
1896
|
+
class _CRTIMP numeric_limits<signed char> : public _Num_int_base {
|
1897
|
+
public:
|
1898
|
+
typedef signed char _Ty;
|
1899
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1900
|
+
{return (SCHAR_MIN); }
|
1901
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1902
|
+
{return (SCHAR_MAX); }
|
1903
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1904
|
+
{return (0); }
|
1905
|
+
*************** public:
|
1906
|
+
*** 175,186 ****
|
1907
|
+
_STCONS(int, digits10, (CHAR_BIT - 1) * 301L / 1000);
|
1908
|
+
};
|
1909
|
+
// CLASS numeric_limits<unsigned char>
|
1910
|
+
class _CRTIMP numeric_limits<unsigned char> : public _Num_int_base {
|
1911
|
+
public:
|
1912
|
+
typedef unsigned char _Ty;
|
1913
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1914
|
+
{return (0); }
|
1915
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1916
|
+
{return (UCHAR_MAX); }
|
1917
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1918
|
+
{return (0); }
|
1919
|
+
--- 179,191 ----
|
1920
|
+
_STCONS(int, digits10, (CHAR_BIT - 1) * 301L / 1000);
|
1921
|
+
};
|
1922
|
+
// CLASS numeric_limits<unsigned char>
|
1923
|
+
+ template<>
|
1924
|
+
class _CRTIMP numeric_limits<unsigned char> : public _Num_int_base {
|
1925
|
+
public:
|
1926
|
+
typedef unsigned char _Ty;
|
1927
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1928
|
+
{return (0); }
|
1929
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1930
|
+
{return (UCHAR_MAX); }
|
1931
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1932
|
+
{return (0); }
|
1933
|
+
*************** public:
|
1934
|
+
*** 199,210 ****
|
1935
|
+
_STCONS(int, digits10, (CHAR_BIT) * 301L / 1000);
|
1936
|
+
};
|
1937
|
+
// CLASS numeric_limits<short>
|
1938
|
+
class _CRTIMP numeric_limits<short> : public _Num_int_base {
|
1939
|
+
public:
|
1940
|
+
typedef short _Ty;
|
1941
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1942
|
+
{return (SHRT_MIN); }
|
1943
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1944
|
+
{return (SHRT_MAX); }
|
1945
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1946
|
+
{return (0); }
|
1947
|
+
--- 204,216 ----
|
1948
|
+
_STCONS(int, digits10, (CHAR_BIT) * 301L / 1000);
|
1949
|
+
};
|
1950
|
+
// CLASS numeric_limits<short>
|
1951
|
+
+ template<>
|
1952
|
+
class _CRTIMP numeric_limits<short> : public _Num_int_base {
|
1953
|
+
public:
|
1954
|
+
typedef short _Ty;
|
1955
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1956
|
+
{return (SHRT_MIN); }
|
1957
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1958
|
+
{return (SHRT_MAX); }
|
1959
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1960
|
+
{return (0); }
|
1961
|
+
*************** public:
|
1962
|
+
*** 224,235 ****
|
1963
|
+
* 301L / 1000);
|
1964
|
+
};
|
1965
|
+
// CLASS numeric_limits<unsigned short>
|
1966
|
+
class _CRTIMP numeric_limits<unsigned short> : public _Num_int_base {
|
1967
|
+
public:
|
1968
|
+
typedef unsigned short _Ty;
|
1969
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1970
|
+
{return (0); }
|
1971
|
+
! static _Ty (__cdecl max)() _THROW0()
|
1972
|
+
{return (USHRT_MAX); }
|
1973
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1974
|
+
{return (0); }
|
1975
|
+
--- 230,242 ----
|
1976
|
+
* 301L / 1000);
|
1977
|
+
};
|
1978
|
+
// CLASS numeric_limits<unsigned short>
|
1979
|
+
+ template<>
|
1980
|
+
class _CRTIMP numeric_limits<unsigned short> : public _Num_int_base {
|
1981
|
+
public:
|
1982
|
+
typedef unsigned short _Ty;
|
1983
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1984
|
+
{return (0); }
|
1985
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
1986
|
+
{return (USHRT_MAX); }
|
1987
|
+
static _Ty __cdecl epsilon() _THROW0()
|
1988
|
+
{return (0); }
|
1989
|
+
*************** public:
|
1990
|
+
*** 249,260 ****
|
1991
|
+
* 301L / 1000);
|
1992
|
+
};
|
1993
|
+
// CLASS numeric_limits<int>
|
1994
|
+
class _CRTIMP numeric_limits<int> : public _Num_int_base {
|
1995
|
+
public:
|
1996
|
+
typedef int _Ty;
|
1997
|
+
! static _Ty (__cdecl min)() _THROW0()
|
1998
|
+
{return (INT_MIN); }
|
1999
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2000
|
+
{return (INT_MAX); }
|
2001
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2002
|
+
{return (0); }
|
2003
|
+
--- 256,268 ----
|
2004
|
+
* 301L / 1000);
|
2005
|
+
};
|
2006
|
+
// CLASS numeric_limits<int>
|
2007
|
+
+ template<>
|
2008
|
+
class _CRTIMP numeric_limits<int> : public _Num_int_base {
|
2009
|
+
public:
|
2010
|
+
typedef int _Ty;
|
2011
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2012
|
+
{return (INT_MIN); }
|
2013
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2014
|
+
{return (INT_MAX); }
|
2015
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2016
|
+
{return (0); }
|
2017
|
+
*************** public:
|
2018
|
+
*** 274,285 ****
|
2019
|
+
* 301L / 1000);
|
2020
|
+
};
|
2021
|
+
// CLASS numeric_limits<unsigned int>
|
2022
|
+
class _CRTIMP numeric_limits<unsigned int> : public _Num_int_base {
|
2023
|
+
public:
|
2024
|
+
typedef unsigned int _Ty;
|
2025
|
+
! static _Ty (__cdecl min)() _THROW0()
|
2026
|
+
{return (0); }
|
2027
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2028
|
+
{return (UINT_MAX); }
|
2029
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2030
|
+
{return (0); }
|
2031
|
+
--- 282,294 ----
|
2032
|
+
* 301L / 1000);
|
2033
|
+
};
|
2034
|
+
// CLASS numeric_limits<unsigned int>
|
2035
|
+
+ template<>
|
2036
|
+
class _CRTIMP numeric_limits<unsigned int> : public _Num_int_base {
|
2037
|
+
public:
|
2038
|
+
typedef unsigned int _Ty;
|
2039
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2040
|
+
{return (0); }
|
2041
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2042
|
+
{return (UINT_MAX); }
|
2043
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2044
|
+
{return (0); }
|
2045
|
+
*************** public:
|
2046
|
+
*** 299,310 ****
|
2047
|
+
* 301L / 1000);
|
2048
|
+
};
|
2049
|
+
// CLASS numeric_limits<long>
|
2050
|
+
class _CRTIMP numeric_limits<long> : public _Num_int_base {
|
2051
|
+
public:
|
2052
|
+
typedef long _Ty;
|
2053
|
+
! static _Ty (__cdecl min)() _THROW0()
|
2054
|
+
{return (LONG_MIN); }
|
2055
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2056
|
+
{return (LONG_MAX); }
|
2057
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2058
|
+
{return (0); }
|
2059
|
+
--- 308,320 ----
|
2060
|
+
* 301L / 1000);
|
2061
|
+
};
|
2062
|
+
// CLASS numeric_limits<long>
|
2063
|
+
+ template<>
|
2064
|
+
class _CRTIMP numeric_limits<long> : public _Num_int_base {
|
2065
|
+
public:
|
2066
|
+
typedef long _Ty;
|
2067
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2068
|
+
{return (LONG_MIN); }
|
2069
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2070
|
+
{return (LONG_MAX); }
|
2071
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2072
|
+
{return (0); }
|
2073
|
+
*************** public:
|
2074
|
+
*** 324,335 ****
|
2075
|
+
* 301L / 1000);
|
2076
|
+
};
|
2077
|
+
// CLASS numeric_limits<unsigned long>
|
2078
|
+
class _CRTIMP numeric_limits<unsigned long> : public _Num_int_base {
|
2079
|
+
public:
|
2080
|
+
typedef unsigned long _Ty;
|
2081
|
+
! static _Ty (__cdecl min)() _THROW0()
|
2082
|
+
{return (0); }
|
2083
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2084
|
+
{return (ULONG_MAX); }
|
2085
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2086
|
+
{return (0); }
|
2087
|
+
--- 334,346 ----
|
2088
|
+
* 301L / 1000);
|
2089
|
+
};
|
2090
|
+
// CLASS numeric_limits<unsigned long>
|
2091
|
+
+ template<>
|
2092
|
+
class _CRTIMP numeric_limits<unsigned long> : public _Num_int_base {
|
2093
|
+
public:
|
2094
|
+
typedef unsigned long _Ty;
|
2095
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2096
|
+
{return (0); }
|
2097
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2098
|
+
{return (ULONG_MAX); }
|
2099
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2100
|
+
{return (0); }
|
2101
|
+
*************** public:
|
2102
|
+
*** 349,360 ****
|
2103
|
+
* 301L / 1000);
|
2104
|
+
};
|
2105
|
+
// CLASS numeric_limits<float>
|
2106
|
+
class _CRTIMP numeric_limits<float> : public _Num_float_base {
|
2107
|
+
public:
|
2108
|
+
typedef float _Ty;
|
2109
|
+
! static _Ty (__cdecl min)() _THROW0()
|
2110
|
+
{return (FLT_MIN); }
|
2111
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2112
|
+
{return (FLT_MAX); }
|
2113
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2114
|
+
{return (FLT_EPSILON); }
|
2115
|
+
--- 360,372 ----
|
2116
|
+
* 301L / 1000);
|
2117
|
+
};
|
2118
|
+
// CLASS numeric_limits<float>
|
2119
|
+
+ template<>
|
2120
|
+
class _CRTIMP numeric_limits<float> : public _Num_float_base {
|
2121
|
+
public:
|
2122
|
+
typedef float _Ty;
|
2123
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2124
|
+
{return (FLT_MIN); }
|
2125
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2126
|
+
{return (FLT_MAX); }
|
2127
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2128
|
+
{return (FLT_EPSILON); }
|
2129
|
+
*************** public:
|
2130
|
+
*** 376,387 ****
|
2131
|
+
_STCONS(int, min_exponent10, FLT_MIN_10_EXP);
|
2132
|
+
};
|
2133
|
+
// CLASS numeric_limits<double>
|
2134
|
+
class _CRTIMP numeric_limits<double> : public _Num_float_base {
|
2135
|
+
public:
|
2136
|
+
typedef double _Ty;
|
2137
|
+
! static _Ty (__cdecl min)() _THROW0()
|
2138
|
+
{return (DBL_MIN); }
|
2139
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2140
|
+
{return (DBL_MAX); }
|
2141
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2142
|
+
{return (DBL_EPSILON); }
|
2143
|
+
--- 388,400 ----
|
2144
|
+
_STCONS(int, min_exponent10, FLT_MIN_10_EXP);
|
2145
|
+
};
|
2146
|
+
// CLASS numeric_limits<double>
|
2147
|
+
+ template<>
|
2148
|
+
class _CRTIMP numeric_limits<double> : public _Num_float_base {
|
2149
|
+
public:
|
2150
|
+
typedef double _Ty;
|
2151
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2152
|
+
{return (DBL_MIN); }
|
2153
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2154
|
+
{return (DBL_MAX); }
|
2155
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2156
|
+
{return (DBL_EPSILON); }
|
2157
|
+
*************** public:
|
2158
|
+
*** 403,414 ****
|
2159
|
+
_STCONS(int, min_exponent10, DBL_MIN_10_EXP);
|
2160
|
+
};
|
2161
|
+
// CLASS numeric_limits<long double>
|
2162
|
+
class _CRTIMP numeric_limits<long double> : public _Num_float_base {
|
2163
|
+
public:
|
2164
|
+
typedef long double _Ty;
|
2165
|
+
! static _Ty (__cdecl min)() _THROW0()
|
2166
|
+
{return (LDBL_MIN); }
|
2167
|
+
! static _Ty (__cdecl max)() _THROW0()
|
2168
|
+
{return (LDBL_MAX); }
|
2169
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2170
|
+
{return (LDBL_EPSILON); }
|
2171
|
+
--- 416,428 ----
|
2172
|
+
_STCONS(int, min_exponent10, DBL_MIN_10_EXP);
|
2173
|
+
};
|
2174
|
+
// CLASS numeric_limits<long double>
|
2175
|
+
+ template<>
|
2176
|
+
class _CRTIMP numeric_limits<long double> : public _Num_float_base {
|
2177
|
+
public:
|
2178
|
+
typedef long double _Ty;
|
2179
|
+
! static _Ty __cdecl min __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2180
|
+
{return (LDBL_MIN); }
|
2181
|
+
! static _Ty __cdecl max __GCCXML_AVOID_MACRO_EXPANSION() _THROW0()
|
2182
|
+
{return (LDBL_MAX); }
|
2183
|
+
static _Ty __cdecl epsilon() _THROW0()
|
2184
|
+
{return (LDBL_EPSILON); }
|
2185
|
+
Index: list
|
2186
|
+
===================================================================
|
2187
|
+
RCS file: /cvsroot/GxInclude/VcInclude/list,v
|
2188
|
+
retrieving revision 1.1.1.1
|
2189
|
+
retrieving revision 1.3
|
2190
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
2191
|
+
*** list 13 Jun 2001 19:31:07 -0000 1.1.1.1
|
2192
|
+
--- list 21 Oct 2007 19:06:49 -0000 1.3
|
2193
|
+
***************
|
2194
|
+
*** 18,29 ****
|
2195
|
+
#endif /* _MSC_VER */
|
2196
|
+
_STD_BEGIN
|
2197
|
+
// TEMPLATE CLASS list
|
2198
|
+
! template<class _Ty, class _A = allocator<_Ty> >
|
2199
|
+
class list {
|
2200
|
+
protected:
|
2201
|
+
struct _Node;
|
2202
|
+
friend struct _Node;
|
2203
|
+
! typedef _POINTER_X(_Node, _A) _Nodeptr;
|
2204
|
+
struct _Node {
|
2205
|
+
_Nodeptr _Next, _Prev;
|
2206
|
+
_Ty _Value;
|
2207
|
+
--- 18,29 ----
|
2208
|
+
#endif /* _MSC_VER */
|
2209
|
+
_STD_BEGIN
|
2210
|
+
// TEMPLATE CLASS list
|
2211
|
+
! template<class _Ty, class _AL = allocator<_Ty> >
|
2212
|
+
class list {
|
2213
|
+
protected:
|
2214
|
+
struct _Node;
|
2215
|
+
friend struct _Node;
|
2216
|
+
! typedef _POINTER_X(_Node, _AL) _Nodeptr;
|
2217
|
+
struct _Node {
|
2218
|
+
_Nodeptr _Next, _Prev;
|
2219
|
+
_Ty _Value;
|
2220
|
+
*************** protected:
|
2221
|
+
*** 31,38 ****
|
2222
|
+
struct _Acc;
|
2223
|
+
friend struct _Acc;
|
2224
|
+
struct _Acc {
|
2225
|
+
! typedef _REFERENCE_X(_Nodeptr, _A) _Nodepref;
|
2226
|
+
! typedef _A::reference _Vref;
|
2227
|
+
static _Nodepref _Next(_Nodeptr _P)
|
2228
|
+
{return ((_Nodepref)(*_P)._Next); }
|
2229
|
+
static _Nodepref _Prev(_Nodeptr _P)
|
2230
|
+
--- 31,38 ----
|
2231
|
+
struct _Acc;
|
2232
|
+
friend struct _Acc;
|
2233
|
+
struct _Acc {
|
2234
|
+
! typedef _REFERENCE_X(_Nodeptr, _AL) _Nodepref;
|
2235
|
+
! typedef typename _AL::reference _Vref;
|
2236
|
+
static _Nodepref _Next(_Nodeptr _P)
|
2237
|
+
{return ((_Nodepref)(*_P)._Next); }
|
2238
|
+
static _Nodepref _Prev(_Nodeptr _P)
|
2239
|
+
*************** protected:
|
2240
|
+
*** 41,55 ****
|
2241
|
+
{return ((_Vref)(*_P)._Value); }
|
2242
|
+
};
|
2243
|
+
public:
|
2244
|
+
! typedef list<_Ty, _A> _Myt;
|
2245
|
+
! typedef _A allocator_type;
|
2246
|
+
! typedef _A::size_type size_type;
|
2247
|
+
! typedef _A::difference_type difference_type;
|
2248
|
+
! typedef _A::pointer _Tptr;
|
2249
|
+
! typedef _A::const_pointer _Ctptr;
|
2250
|
+
! typedef _A::reference reference;
|
2251
|
+
! typedef _A::const_reference const_reference;
|
2252
|
+
! typedef _A::value_type value_type;
|
2253
|
+
// CLASS const_iterator
|
2254
|
+
class iterator;
|
2255
|
+
class const_iterator;
|
2256
|
+
--- 41,55 ----
|
2257
|
+
{return ((_Vref)(*_P)._Value); }
|
2258
|
+
};
|
2259
|
+
public:
|
2260
|
+
! typedef list<_Ty, _AL> _Myt;
|
2261
|
+
! typedef _AL allocator_type;
|
2262
|
+
! typedef typename _AL::size_type size_type;
|
2263
|
+
! typedef typename _AL::difference_type difference_type;
|
2264
|
+
! typedef typename _AL::pointer _Tptr;
|
2265
|
+
! typedef typename _AL::const_pointer _Ctptr;
|
2266
|
+
! typedef typename _AL::reference reference;
|
2267
|
+
! typedef typename _AL::const_reference const_reference;
|
2268
|
+
! typedef typename _AL::value_type value_type;
|
2269
|
+
// CLASS const_iterator
|
2270
|
+
class iterator;
|
2271
|
+
class const_iterator;
|
2272
|
+
*************** public:
|
2273
|
+
*** 98,122 ****
|
2274
|
+
iterator(_Nodeptr _P)
|
2275
|
+
: const_iterator(_P) {}
|
2276
|
+
reference operator*() const
|
2277
|
+
! {return (_Acc::_Value(_Ptr)); }
|
2278
|
+
_Tptr operator->() const
|
2279
|
+
{return (&**this); }
|
2280
|
+
iterator& operator++()
|
2281
|
+
! {_Ptr = _Acc::_Next(_Ptr);
|
2282
|
+
return (*this); }
|
2283
|
+
iterator operator++(int)
|
2284
|
+
{iterator _Tmp = *this;
|
2285
|
+
++*this;
|
2286
|
+
return (_Tmp); }
|
2287
|
+
iterator& operator--()
|
2288
|
+
! {_Ptr = _Acc::_Prev(_Ptr);
|
2289
|
+
return (*this); }
|
2290
|
+
iterator operator--(int)
|
2291
|
+
{iterator _Tmp = *this;
|
2292
|
+
--*this;
|
2293
|
+
return (_Tmp); }
|
2294
|
+
bool operator==(const iterator& _X) const
|
2295
|
+
! {return (_Ptr == _X._Ptr); }
|
2296
|
+
bool operator!=(const iterator& _X) const
|
2297
|
+
{return (!(*this == _X)); }
|
2298
|
+
};
|
2299
|
+
--- 98,122 ----
|
2300
|
+
iterator(_Nodeptr _P)
|
2301
|
+
: const_iterator(_P) {}
|
2302
|
+
reference operator*() const
|
2303
|
+
! {return (_Acc::_Value(this->_Ptr)); }
|
2304
|
+
_Tptr operator->() const
|
2305
|
+
{return (&**this); }
|
2306
|
+
iterator& operator++()
|
2307
|
+
! {this->_Ptr = _Acc::_Next(this->_Ptr);
|
2308
|
+
return (*this); }
|
2309
|
+
iterator operator++(int)
|
2310
|
+
{iterator _Tmp = *this;
|
2311
|
+
++*this;
|
2312
|
+
return (_Tmp); }
|
2313
|
+
iterator& operator--()
|
2314
|
+
! {this->_Ptr = _Acc::_Prev(this->_Ptr);
|
2315
|
+
return (*this); }
|
2316
|
+
iterator operator--(int)
|
2317
|
+
{iterator _Tmp = *this;
|
2318
|
+
--*this;
|
2319
|
+
return (_Tmp); }
|
2320
|
+
bool operator==(const iterator& _X) const
|
2321
|
+
! {return (this->_Ptr == _X._Ptr); }
|
2322
|
+
bool operator!=(const iterator& _X) const
|
2323
|
+
{return (!(*this == _X)); }
|
2324
|
+
};
|
2325
|
+
*************** public:
|
2326
|
+
*** 126,136 ****
|
2327
|
+
typedef reverse_bidirectional_iterator<const_iterator,
|
2328
|
+
value_type, const_reference, _Ctptr, difference_type>
|
2329
|
+
const_reverse_iterator;
|
2330
|
+
! explicit list(const _A& _Al = _A())
|
2331
|
+
: allocator(_Al),
|
2332
|
+
_Head(_Buynode()), _Size(0) {}
|
2333
|
+
explicit list(size_type _N, const _Ty& _V = _Ty(),
|
2334
|
+
! const _A& _Al = _A())
|
2335
|
+
: allocator(_Al),
|
2336
|
+
_Head(_Buynode()), _Size(0)
|
2337
|
+
{insert(begin(), _N, _V); }
|
2338
|
+
--- 126,136 ----
|
2339
|
+
typedef reverse_bidirectional_iterator<const_iterator,
|
2340
|
+
value_type, const_reference, _Ctptr, difference_type>
|
2341
|
+
const_reverse_iterator;
|
2342
|
+
! explicit list(const _AL& _Al = _AL())
|
2343
|
+
: allocator(_Al),
|
2344
|
+
_Head(_Buynode()), _Size(0) {}
|
2345
|
+
explicit list(size_type _N, const _Ty& _V = _Ty(),
|
2346
|
+
! const _AL& _Al = _AL())
|
2347
|
+
: allocator(_Al),
|
2348
|
+
_Head(_Buynode()), _Size(0)
|
2349
|
+
{insert(begin(), _N, _V); }
|
2350
|
+
*************** public:
|
2351
|
+
*** 138,149 ****
|
2352
|
+
: allocator(_X.allocator),
|
2353
|
+
_Head(_Buynode()), _Size(0)
|
2354
|
+
{insert(begin(), _X.begin(), _X.end()); }
|
2355
|
+
! list(const _Ty *_F, const _Ty *_L, const _A& _Al = _A())
|
2356
|
+
: allocator(_Al),
|
2357
|
+
_Head(_Buynode()), _Size(0)
|
2358
|
+
{insert(begin(), _F, _L); }
|
2359
|
+
typedef const_iterator _It;
|
2360
|
+
! list(_It _F, _It _L, const _A& _Al = _A())
|
2361
|
+
: allocator(_Al),
|
2362
|
+
_Head(_Buynode()), _Size(0)
|
2363
|
+
{insert(begin(), _F, _L); }
|
2364
|
+
--- 138,149 ----
|
2365
|
+
: allocator(_X.allocator),
|
2366
|
+
_Head(_Buynode()), _Size(0)
|
2367
|
+
{insert(begin(), _X.begin(), _X.end()); }
|
2368
|
+
! list(const _Ty *_F, const _Ty *_L, const _AL& _Al = _AL())
|
2369
|
+
: allocator(_Al),
|
2370
|
+
_Head(_Buynode()), _Size(0)
|
2371
|
+
{insert(begin(), _F, _L); }
|
2372
|
+
typedef const_iterator _It;
|
2373
|
+
! list(_It _F, _It _L, const _AL& _Al = _AL())
|
2374
|
+
: allocator(_Al),
|
2375
|
+
_Head(_Buynode()), _Size(0)
|
2376
|
+
{insert(begin(), _F, _L); }
|
2377
|
+
*************** public:
|
2378
|
+
*** 190,196 ****
|
2379
|
+
{return (allocator.max_size()); }
|
2380
|
+
bool empty() const
|
2381
|
+
{return (size() == 0); }
|
2382
|
+
! _A get_allocator() const
|
2383
|
+
{return (allocator); }
|
2384
|
+
reference front()
|
2385
|
+
{return (*begin()); }
|
2386
|
+
--- 190,196 ----
|
2387
|
+
{return (allocator.max_size()); }
|
2388
|
+
bool empty() const
|
2389
|
+
{return (size() == 0); }
|
2390
|
+
! _AL get_allocator() const
|
2391
|
+
{return (allocator); }
|
2392
|
+
reference front()
|
2393
|
+
{return (*begin()); }
|
2394
|
+
*************** protected:
|
2395
|
+
*** 409,415 ****
|
2396
|
+
_X.erase(_F, _L); }}
|
2397
|
+
void _Xran() const
|
2398
|
+
{_THROW(out_of_range, "invalid list<T> subscript"); }
|
2399
|
+
! _A allocator;
|
2400
|
+
_Nodeptr _Head;
|
2401
|
+
size_type _Size;
|
2402
|
+
};
|
2403
|
+
--- 409,415 ----
|
2404
|
+
_X.erase(_F, _L); }}
|
2405
|
+
void _Xran() const
|
2406
|
+
{_THROW(out_of_range, "invalid list<T> subscript"); }
|
2407
|
+
! _AL allocator;
|
2408
|
+
_Nodeptr _Head;
|
2409
|
+
size_type _Size;
|
2410
|
+
};
|
2411
|
+
Index: map
|
2412
|
+
===================================================================
|
2413
|
+
RCS file: /cvsroot/GxInclude/VcInclude/map,v
|
2414
|
+
retrieving revision 1.1.1.1
|
2415
|
+
retrieving revision 1.3
|
2416
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
2417
|
+
*** map 13 Jun 2001 19:31:08 -0000 1.1.1.1
|
2418
|
+
--- map 21 Oct 2007 19:06:49 -0000 1.3
|
2419
|
+
*************** public:
|
2420
|
+
*** 41,56 ****
|
2421
|
+
typedef _Ty referent_type;
|
2422
|
+
typedef _Pr key_compare;
|
2423
|
+
typedef _A allocator_type;
|
2424
|
+
! typedef _A::reference _Tref;
|
2425
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
2426
|
+
! typedef _Imp::size_type size_type;
|
2427
|
+
! typedef _Imp::difference_type difference_type;
|
2428
|
+
! typedef _Imp::reference reference;
|
2429
|
+
! typedef _Imp::const_reference const_reference;
|
2430
|
+
! typedef _Imp::iterator iterator;
|
2431
|
+
! typedef _Imp::const_iterator const_iterator;
|
2432
|
+
! typedef _Imp::reverse_iterator reverse_iterator;
|
2433
|
+
! typedef _Imp::const_reverse_iterator const_reverse_iterator;
|
2434
|
+
typedef pair<iterator, bool> _Pairib;
|
2435
|
+
typedef pair<iterator, iterator> _Pairii;
|
2436
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
2437
|
+
--- 41,56 ----
|
2438
|
+
typedef _Ty referent_type;
|
2439
|
+
typedef _Pr key_compare;
|
2440
|
+
typedef _A allocator_type;
|
2441
|
+
! typedef typename _A::reference _Tref;
|
2442
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
2443
|
+
! typedef typename _Imp::size_type size_type;
|
2444
|
+
! typedef typename _Imp::difference_type difference_type;
|
2445
|
+
! typedef typename _Imp::reference reference;
|
2446
|
+
! typedef typename _Imp::const_reference const_reference;
|
2447
|
+
! typedef typename _Imp::iterator iterator;
|
2448
|
+
! typedef typename _Imp::const_iterator const_iterator;
|
2449
|
+
! typedef typename _Imp::reverse_iterator reverse_iterator;
|
2450
|
+
! typedef typename _Imp::const_reverse_iterator const_reverse_iterator;
|
2451
|
+
typedef pair<iterator, bool> _Pairib;
|
2452
|
+
typedef pair<iterator, iterator> _Pairii;
|
2453
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
2454
|
+
*************** public:
|
2455
|
+
*** 93,110 ****
|
2456
|
+
{iterator _P = insert(value_type(_Kv, _Ty())).first;
|
2457
|
+
return ((*_P).second); }
|
2458
|
+
_Pairib insert(const value_type& _X)
|
2459
|
+
! {_Imp::_Pairib _Ans = _Tr.insert(_X);
|
2460
|
+
return (_Pairib(_Ans.first, _Ans.second)); }
|
2461
|
+
iterator insert(iterator _P, const value_type& _X)
|
2462
|
+
! {return (_Tr.insert((_Imp::iterator&)_P, _X)); }
|
2463
|
+
void insert(_It _F, _It _L)
|
2464
|
+
{for (; _F != _L; ++_F)
|
2465
|
+
_Tr.insert(*_F); }
|
2466
|
+
iterator erase(iterator _P)
|
2467
|
+
! {return (_Tr.erase((_Imp::iterator&)_P)); }
|
2468
|
+
iterator erase(iterator _F, iterator _L)
|
2469
|
+
! {return (_Tr.erase((_Imp::iterator&)_F,
|
2470
|
+
! (_Imp::iterator&)_L)); }
|
2471
|
+
size_type erase(const _K& _Kv)
|
2472
|
+
{return (_Tr.erase(_Kv)); }
|
2473
|
+
void clear()
|
2474
|
+
--- 93,110 ----
|
2475
|
+
{iterator _P = insert(value_type(_Kv, _Ty())).first;
|
2476
|
+
return ((*_P).second); }
|
2477
|
+
_Pairib insert(const value_type& _X)
|
2478
|
+
! {typename _Imp::_Pairib _Ans = _Tr.insert(_X);
|
2479
|
+
return (_Pairib(_Ans.first, _Ans.second)); }
|
2480
|
+
iterator insert(iterator _P, const value_type& _X)
|
2481
|
+
! {return (_Tr.insert((typename _Imp::iterator&)_P, _X)); }
|
2482
|
+
void insert(_It _F, _It _L)
|
2483
|
+
{for (; _F != _L; ++_F)
|
2484
|
+
_Tr.insert(*_F); }
|
2485
|
+
iterator erase(iterator _P)
|
2486
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_P)); }
|
2487
|
+
iterator erase(iterator _F, iterator _L)
|
2488
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_F,
|
2489
|
+
! (typename _Imp::iterator&)_L)); }
|
2490
|
+
size_type erase(const _K& _Kv)
|
2491
|
+
{return (_Tr.erase(_Kv)); }
|
2492
|
+
void clear()
|
2493
|
+
*************** public:
|
2494
|
+
*** 193,206 ****
|
2495
|
+
typedef _Pr key_compare;
|
2496
|
+
typedef _A allocator_type;
|
2497
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
2498
|
+
! typedef _Imp::size_type size_type;
|
2499
|
+
! typedef _Imp::difference_type difference_type;
|
2500
|
+
! typedef _Imp::reference reference;
|
2501
|
+
! typedef _Imp::const_reference const_reference;
|
2502
|
+
! typedef _Imp::iterator iterator;
|
2503
|
+
! typedef _Imp::const_iterator const_iterator;
|
2504
|
+
! typedef _Imp::reverse_iterator reverse_iterator;
|
2505
|
+
! typedef _Imp::const_reverse_iterator const_reverse_iterator;
|
2506
|
+
typedef pair<iterator, iterator> _Pairii;
|
2507
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
2508
|
+
explicit multimap(const _Pr& _Pred = _Pr(),
|
2509
|
+
--- 193,206 ----
|
2510
|
+
typedef _Pr key_compare;
|
2511
|
+
typedef _A allocator_type;
|
2512
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
2513
|
+
! typedef typename _Imp::size_type size_type;
|
2514
|
+
! typedef typename _Imp::difference_type difference_type;
|
2515
|
+
! typedef typename _Imp::reference reference;
|
2516
|
+
! typedef typename _Imp::const_reference const_reference;
|
2517
|
+
! typedef typename _Imp::iterator iterator;
|
2518
|
+
! typedef typename _Imp::const_iterator const_iterator;
|
2519
|
+
! typedef typename _Imp::reverse_iterator reverse_iterator;
|
2520
|
+
! typedef typename _Imp::const_reverse_iterator const_reverse_iterator;
|
2521
|
+
typedef pair<iterator, iterator> _Pairii;
|
2522
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
2523
|
+
explicit multimap(const _Pr& _Pred = _Pr(),
|
2524
|
+
*************** public:
|
2525
|
+
*** 242,256 ****
|
2526
|
+
iterator insert(const value_type& _X)
|
2527
|
+
{return (_Tr.insert(_X).first); }
|
2528
|
+
iterator insert(iterator _P, const value_type& _X)
|
2529
|
+
! {return (_Tr.insert((_Imp::iterator&)_P, _X)); }
|
2530
|
+
void insert(_It _F, _It _L)
|
2531
|
+
{for (; _F != _L; ++_F)
|
2532
|
+
_Tr.insert(*_F); }
|
2533
|
+
iterator erase(iterator _P)
|
2534
|
+
! {return (_Tr.erase((_Imp::iterator&)_P)); }
|
2535
|
+
iterator erase(iterator _F, iterator _L)
|
2536
|
+
! {return (_Tr.erase((_Imp::iterator&)_F,
|
2537
|
+
! (_Imp::iterator&)_L)); }
|
2538
|
+
size_type erase(const _K& _Kv = _K())
|
2539
|
+
{return (_Tr.erase(_Kv)); }
|
2540
|
+
void clear()
|
2541
|
+
--- 242,256 ----
|
2542
|
+
iterator insert(const value_type& _X)
|
2543
|
+
{return (_Tr.insert(_X).first); }
|
2544
|
+
iterator insert(iterator _P, const value_type& _X)
|
2545
|
+
! {return (_Tr.insert((typename _Imp::iterator&)_P, _X)); }
|
2546
|
+
void insert(_It _F, _It _L)
|
2547
|
+
{for (; _F != _L; ++_F)
|
2548
|
+
_Tr.insert(*_F); }
|
2549
|
+
iterator erase(iterator _P)
|
2550
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_P)); }
|
2551
|
+
iterator erase(iterator _F, iterator _L)
|
2552
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_F,
|
2553
|
+
! (typename _Imp::iterator&)_L)); }
|
2554
|
+
size_type erase(const _K& _Kv = _K())
|
2555
|
+
{return (_Tr.erase(_Kv)); }
|
2556
|
+
void clear()
|
2557
|
+
Index: oaidl.h
|
2558
|
+
===================================================================
|
2559
|
+
RCS file: /cvsroot/GxInclude/VcInclude/oaidl.h,v
|
2560
|
+
retrieving revision 1.1.1.1
|
2561
|
+
retrieving revision 1.2
|
2562
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
2563
|
+
*** oaidl.h 13 Jun 2001 19:31:35 -0000 1.1.1.1
|
2564
|
+
--- oaidl.h 3 Jul 2001 22:10:58 -0000 1.2
|
2565
|
+
*************** struct tagVARIANT
|
2566
|
+
*** 416,422 ****
|
2567
|
+
FLOAT fltVal;
|
2568
|
+
DOUBLE dblVal;
|
2569
|
+
VARIANT_BOOL boolVal;
|
2570
|
+
! _VARIANT_BOOL bool;
|
2571
|
+
SCODE scode;
|
2572
|
+
CY cyVal;
|
2573
|
+
DATE date;
|
2574
|
+
--- 416,422 ----
|
2575
|
+
FLOAT fltVal;
|
2576
|
+
DOUBLE dblVal;
|
2577
|
+
VARIANT_BOOL boolVal;
|
2578
|
+
! // _VARIANT_BOOL bool;
|
2579
|
+
SCODE scode;
|
2580
|
+
CY cyVal;
|
2581
|
+
DATE date;
|
2582
|
+
*************** struct tagVARIANT
|
2583
|
+
*** 430,436 ****
|
2584
|
+
FLOAT __RPC_FAR *pfltVal;
|
2585
|
+
DOUBLE __RPC_FAR *pdblVal;
|
2586
|
+
VARIANT_BOOL __RPC_FAR *pboolVal;
|
2587
|
+
! _VARIANT_BOOL __RPC_FAR *pbool;
|
2588
|
+
SCODE __RPC_FAR *pscode;
|
2589
|
+
CY __RPC_FAR *pcyVal;
|
2590
|
+
DATE __RPC_FAR *pdate;
|
2591
|
+
--- 430,436 ----
|
2592
|
+
FLOAT __RPC_FAR *pfltVal;
|
2593
|
+
DOUBLE __RPC_FAR *pdblVal;
|
2594
|
+
VARIANT_BOOL __RPC_FAR *pboolVal;
|
2595
|
+
! // _VARIANT_BOOL __RPC_FAR *pbool;
|
2596
|
+
SCODE __RPC_FAR *pscode;
|
2597
|
+
CY __RPC_FAR *pcyVal;
|
2598
|
+
DATE __RPC_FAR *pdate;
|
2599
|
+
Index: objidl.h
|
2600
|
+
===================================================================
|
2601
|
+
RCS file: /cvsroot/GxInclude/VcInclude/objidl.h,v
|
2602
|
+
retrieving revision 1.1.1.1
|
2603
|
+
retrieving revision 1.2
|
2604
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
2605
|
+
*** objidl.h 13 Jun 2001 19:31:37 -0000 1.1.1.1
|
2606
|
+
--- objidl.h 3 Jul 2001 22:10:58 -0000 1.2
|
2607
|
+
*************** struct tagPROPVARIANT
|
2608
|
+
*** 8885,8891 ****
|
2609
|
+
/* [case()] */ short iVal;
|
2610
|
+
/* [case()] */ USHORT uiVal;
|
2611
|
+
/* [case()] */ VARIANT_BOOL boolVal;
|
2612
|
+
! /* [case()] */ _VARIANT_BOOL bool;
|
2613
|
+
/* [case()] */ long lVal;
|
2614
|
+
/* [case()] */ ULONG ulVal;
|
2615
|
+
/* [case()] */ float fltVal;
|
2616
|
+
--- 8885,8891 ----
|
2617
|
+
/* [case()] */ short iVal;
|
2618
|
+
/* [case()] */ USHORT uiVal;
|
2619
|
+
/* [case()] */ VARIANT_BOOL boolVal;
|
2620
|
+
! // /* [case()] */ _VARIANT_BOOL bool;
|
2621
|
+
/* [case()] */ long lVal;
|
2622
|
+
/* [case()] */ ULONG ulVal;
|
2623
|
+
/* [case()] */ float fltVal;
|
2624
|
+
Index: ostream
|
2625
|
+
===================================================================
|
2626
|
+
RCS file: /cvsroot/GxInclude/VcInclude/ostream,v
|
2627
|
+
retrieving revision 1.1.1.1
|
2628
|
+
retrieving revision 1.4
|
2629
|
+
diff -c -3 -p -r1.1.1.1 -r1.4
|
2630
|
+
*** ostream 13 Jun 2001 19:31:44 -0000 1.1.1.1
|
2631
|
+
--- ostream 2 Nov 2007 19:15:19 -0000 1.4
|
2632
|
+
***************
|
2633
|
+
*** 14,25 ****
|
2634
|
+
// I/O exception macros
|
2635
|
+
#define _TRY_IO_BEGIN _TRY_BEGIN
|
2636
|
+
#define _CATCH_IO_END _CATCH_ALL \
|
2637
|
+
! setstate(ios_base::badbit, true); _CATCH_END
|
2638
|
+
#define _CATCH_IO_(x) _CATCH_ALL \
|
2639
|
+
(x).setstate(ios_base::badbit, true); _CATCH_END
|
2640
|
+
_STD_BEGIN
|
2641
|
+
// TEMPLATE CLASS basic_ostream
|
2642
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
2643
|
+
class basic_ostream : virtual public basic_ios<_E, _Tr> {
|
2644
|
+
public:
|
2645
|
+
typedef basic_ostream<_E, _Tr> _Myt;
|
2646
|
+
--- 14,25 ----
|
2647
|
+
// I/O exception macros
|
2648
|
+
#define _TRY_IO_BEGIN _TRY_BEGIN
|
2649
|
+
#define _CATCH_IO_END _CATCH_ALL \
|
2650
|
+
! this->setstate(ios_base::badbit, true); _CATCH_END
|
2651
|
+
#define _CATCH_IO_(x) _CATCH_ALL \
|
2652
|
+
(x).setstate(ios_base::badbit, true); _CATCH_END
|
2653
|
+
_STD_BEGIN
|
2654
|
+
// TEMPLATE CLASS basic_ostream
|
2655
|
+
! template<class _E, class _Tr >
|
2656
|
+
class basic_ostream : virtual public basic_ios<_E, _Tr> {
|
2657
|
+
public:
|
2658
|
+
typedef basic_ostream<_E, _Tr> _Myt;
|
2659
|
+
*************** public:
|
2660
|
+
*** 27,38 ****
|
2661
|
+
typedef basic_streambuf<_E, _Tr> _Mysb;
|
2662
|
+
typedef ostreambuf_iterator<_E, _Tr> _Iter;
|
2663
|
+
typedef num_put<_E, _Iter> _Nput;
|
2664
|
+
explicit basic_ostream(basic_streambuf<_E, _Tr> *_S,
|
2665
|
+
bool _Isstd = false, bool _Doinit = true)
|
2666
|
+
{if (_Doinit)
|
2667
|
+
init(_S, _Isstd); }
|
2668
|
+
basic_ostream(_Uninitialized)
|
2669
|
+
! {_Addstd(); }
|
2670
|
+
virtual ~basic_ostream()
|
2671
|
+
{}
|
2672
|
+
class sentry {
|
2673
|
+
--- 27,43 ----
|
2674
|
+
typedef basic_streambuf<_E, _Tr> _Mysb;
|
2675
|
+
typedef ostreambuf_iterator<_E, _Tr> _Iter;
|
2676
|
+
typedef num_put<_E, _Iter> _Nput;
|
2677
|
+
+ typedef typename _Myios::pos_type pos_type;
|
2678
|
+
+ typedef typename _Myios::off_type off_type;
|
2679
|
+
+ typedef typename _Myios::iostate iostate;
|
2680
|
+
+ typedef typename _Myios::fmtflags fmtflags;
|
2681
|
+
+ typedef typename _Myios::int_type int_type;
|
2682
|
+
explicit basic_ostream(basic_streambuf<_E, _Tr> *_S,
|
2683
|
+
bool _Isstd = false, bool _Doinit = true)
|
2684
|
+
{if (_Doinit)
|
2685
|
+
init(_S, _Isstd); }
|
2686
|
+
basic_ostream(_Uninitialized)
|
2687
|
+
! {this->_Addstd(); }
|
2688
|
+
virtual ~basic_ostream()
|
2689
|
+
{}
|
2690
|
+
class sentry {
|
2691
|
+
*************** public:
|
2692
|
+
*** 49,59 ****
|
2693
|
+
_Myt& _Ostr;
|
2694
|
+
};
|
2695
|
+
bool opfx()
|
2696
|
+
! {if (good() && tie() != 0)
|
2697
|
+
! tie()->flush();
|
2698
|
+
! return (good()); }
|
2699
|
+
void osfx()
|
2700
|
+
! {if (flags() & unitbuf)
|
2701
|
+
flush(); }
|
2702
|
+
_Myt& operator<<(_Myt& (__cdecl *_F)(_Myt&))
|
2703
|
+
{return ((*_F)(*this)); }
|
2704
|
+
--- 54,64 ----
|
2705
|
+
_Myt& _Ostr;
|
2706
|
+
};
|
2707
|
+
bool opfx()
|
2708
|
+
! {if (this->good() && this->tie() != 0)
|
2709
|
+
! this->tie()->flush();
|
2710
|
+
! return (this->good()); }
|
2711
|
+
void osfx()
|
2712
|
+
! {if (this->flags() & ios_base::unitbuf)
|
2713
|
+
flush(); }
|
2714
|
+
_Myt& operator<<(_Myt& (__cdecl *_F)(_Myt&))
|
2715
|
+
{return ((*_F)(*this)); }
|
2716
|
+
*************** public:
|
2717
|
+
*** 64,208 ****
|
2718
|
+
{(*_F)(*(ios_base *)this);
|
2719
|
+
return (*this); }
|
2720
|
+
_Myt& operator<<(_Bool _X)
|
2721
|
+
! {iostate _St = goodbit;
|
2722
|
+
const sentry _Ok(*this);
|
2723
|
+
if (_Ok)
|
2724
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2725
|
+
_TRY_IO_BEGIN
|
2726
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2727
|
+
! fill(), _X).failed())
|
2728
|
+
! _St |= badbit;
|
2729
|
+
_CATCH_IO_END }
|
2730
|
+
! setstate(_St);
|
2731
|
+
return (*this); }
|
2732
|
+
_Myt& operator<<(short _X)
|
2733
|
+
! {iostate _St = goodbit;
|
2734
|
+
const sentry _Ok(*this);
|
2735
|
+
if (_Ok)
|
2736
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2737
|
+
! fmtflags _Bfl = flags() & basefield;
|
2738
|
+
long _Y = (_Bfl == oct || _Bfl == hex)
|
2739
|
+
? (long)(unsigned short)_X : (long)_X;
|
2740
|
+
_TRY_IO_BEGIN
|
2741
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2742
|
+
! fill(), _Y).failed())
|
2743
|
+
! _St |= badbit;
|
2744
|
+
_CATCH_IO_END }
|
2745
|
+
! setstate(_St);
|
2746
|
+
return (*this); }
|
2747
|
+
_Myt& operator<<(unsigned short _X)
|
2748
|
+
! {iostate _St = goodbit;
|
2749
|
+
const sentry _Ok(*this);
|
2750
|
+
if (_Ok)
|
2751
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2752
|
+
_TRY_IO_BEGIN
|
2753
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2754
|
+
! fill(), (unsigned long)_X).failed())
|
2755
|
+
! _St |= badbit;
|
2756
|
+
_CATCH_IO_END }
|
2757
|
+
! setstate(_St);
|
2758
|
+
return (*this); }
|
2759
|
+
_Myt& operator<<(int _X)
|
2760
|
+
! {iostate _St = goodbit;
|
2761
|
+
const sentry _Ok(*this);
|
2762
|
+
if (_Ok)
|
2763
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2764
|
+
! fmtflags _Bfl = flags() & basefield;
|
2765
|
+
! long _Y = (_Bfl == oct || _Bfl == hex)
|
2766
|
+
? (long)(unsigned int)_X : (long)_X;
|
2767
|
+
_TRY_IO_BEGIN
|
2768
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2769
|
+
! fill(), _Y).failed())
|
2770
|
+
! _St |= badbit;
|
2771
|
+
_CATCH_IO_END }
|
2772
|
+
! setstate(_St);
|
2773
|
+
return (*this); }
|
2774
|
+
_Myt& operator<<(unsigned int _X)
|
2775
|
+
! {iostate _St = goodbit;
|
2776
|
+
const sentry _Ok(*this);
|
2777
|
+
if (_Ok)
|
2778
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2779
|
+
_TRY_IO_BEGIN
|
2780
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2781
|
+
! fill(), (unsigned long)_X).failed())
|
2782
|
+
! _St |= badbit;
|
2783
|
+
_CATCH_IO_END }
|
2784
|
+
! setstate(_St);
|
2785
|
+
return (*this); }
|
2786
|
+
_Myt& operator<<(long _X)
|
2787
|
+
! {iostate _St = goodbit;
|
2788
|
+
const sentry _Ok(*this);
|
2789
|
+
if (_Ok)
|
2790
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2791
|
+
_TRY_IO_BEGIN
|
2792
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2793
|
+
! fill(), _X).failed())
|
2794
|
+
! _St |= badbit;
|
2795
|
+
_CATCH_IO_END }
|
2796
|
+
! setstate(_St);
|
2797
|
+
return (*this); }
|
2798
|
+
_Myt& operator<<(unsigned long _X)
|
2799
|
+
! {iostate _St = goodbit;
|
2800
|
+
const sentry _Ok(*this);
|
2801
|
+
if (_Ok)
|
2802
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2803
|
+
_TRY_IO_BEGIN
|
2804
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2805
|
+
! fill(), _X).failed())
|
2806
|
+
! _St |= badbit;
|
2807
|
+
_CATCH_IO_END }
|
2808
|
+
! setstate(_St);
|
2809
|
+
return (*this); }
|
2810
|
+
_Myt& operator<<(float _X)
|
2811
|
+
! {iostate _St = goodbit;
|
2812
|
+
const sentry _Ok(*this);
|
2813
|
+
if (_Ok)
|
2814
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2815
|
+
_TRY_IO_BEGIN
|
2816
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2817
|
+
! fill(), (double)_X).failed())
|
2818
|
+
! _St |= badbit;
|
2819
|
+
_CATCH_IO_END }
|
2820
|
+
! setstate(_St);
|
2821
|
+
return (*this); }
|
2822
|
+
_Myt& operator<<(double _X)
|
2823
|
+
! {iostate _St = goodbit;
|
2824
|
+
const sentry _Ok(*this);
|
2825
|
+
if (_Ok)
|
2826
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2827
|
+
_TRY_IO_BEGIN
|
2828
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2829
|
+
! fill(), _X).failed())
|
2830
|
+
! _St |= badbit;
|
2831
|
+
_CATCH_IO_END }
|
2832
|
+
! setstate(_St);
|
2833
|
+
return (*this); }
|
2834
|
+
_Myt& operator<<(long double _X)
|
2835
|
+
! {iostate _St = goodbit;
|
2836
|
+
const sentry _Ok(*this);
|
2837
|
+
if (_Ok)
|
2838
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2839
|
+
_TRY_IO_BEGIN
|
2840
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2841
|
+
! fill(), _X).failed())
|
2842
|
+
! _St |= badbit;
|
2843
|
+
_CATCH_IO_END }
|
2844
|
+
! setstate(_St);
|
2845
|
+
return (*this); }
|
2846
|
+
_Myt& operator<<(const void *_X)
|
2847
|
+
! {iostate _St = goodbit;
|
2848
|
+
const sentry _Ok(*this);
|
2849
|
+
if (_Ok)
|
2850
|
+
! {const _Nput& _Fac = _USE(getloc(), _Nput);
|
2851
|
+
_TRY_IO_BEGIN
|
2852
|
+
! if (_Fac.put(_Iter(rdbuf()), *this,
|
2853
|
+
! fill(), _X).failed())
|
2854
|
+
! _St |= badbit;
|
2855
|
+
_CATCH_IO_END }
|
2856
|
+
! setstate(_St);
|
2857
|
+
return (*this); }
|
2858
|
+
_Myt& operator<<(_Mysb *_Pb)
|
2859
|
+
! {iostate _St = goodbit;
|
2860
|
+
bool _Copied = false;
|
2861
|
+
const sentry _Ok(*this);
|
2862
|
+
if (_Ok && _Pb != 0)
|
2863
|
+
--- 69,213 ----
|
2864
|
+
{(*_F)(*(ios_base *)this);
|
2865
|
+
return (*this); }
|
2866
|
+
_Myt& operator<<(_Bool _X)
|
2867
|
+
! {iostate _St = ios_base::goodbit;
|
2868
|
+
const sentry _Ok(*this);
|
2869
|
+
if (_Ok)
|
2870
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2871
|
+
_TRY_IO_BEGIN
|
2872
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2873
|
+
! this->fill(), _X).failed())
|
2874
|
+
! _St |= ios_base::badbit;
|
2875
|
+
_CATCH_IO_END }
|
2876
|
+
! this->setstate(_St);
|
2877
|
+
return (*this); }
|
2878
|
+
_Myt& operator<<(short _X)
|
2879
|
+
! {iostate _St = ios_base::goodbit;
|
2880
|
+
const sentry _Ok(*this);
|
2881
|
+
if (_Ok)
|
2882
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2883
|
+
! fmtflags _Bfl = this->flags() & ios_base::basefield;
|
2884
|
+
long _Y = (_Bfl == oct || _Bfl == hex)
|
2885
|
+
? (long)(unsigned short)_X : (long)_X;
|
2886
|
+
_TRY_IO_BEGIN
|
2887
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2888
|
+
! this->fill(), _Y).failed())
|
2889
|
+
! _St |= ios_base::badbit;
|
2890
|
+
_CATCH_IO_END }
|
2891
|
+
! this->setstate(_St);
|
2892
|
+
return (*this); }
|
2893
|
+
_Myt& operator<<(unsigned short _X)
|
2894
|
+
! {iostate _St = ios_base::goodbit;
|
2895
|
+
const sentry _Ok(*this);
|
2896
|
+
if (_Ok)
|
2897
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2898
|
+
_TRY_IO_BEGIN
|
2899
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2900
|
+
! this->fill(), (unsigned long)_X).failed())
|
2901
|
+
! _St |= ios_base::badbit;
|
2902
|
+
_CATCH_IO_END }
|
2903
|
+
! this->setstate(_St);
|
2904
|
+
return (*this); }
|
2905
|
+
_Myt& operator<<(int _X)
|
2906
|
+
! {iostate _St = ios_base::goodbit;
|
2907
|
+
const sentry _Ok(*this);
|
2908
|
+
if (_Ok)
|
2909
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2910
|
+
! fmtflags _Bfl = this->flags() & this->basefield;
|
2911
|
+
! long _Y = (_Bfl == ios::oct || _Bfl == ios::hex)
|
2912
|
+
? (long)(unsigned int)_X : (long)_X;
|
2913
|
+
_TRY_IO_BEGIN
|
2914
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2915
|
+
! this->fill(), _Y).failed())
|
2916
|
+
! _St |= ios_base::badbit;
|
2917
|
+
_CATCH_IO_END }
|
2918
|
+
! this->setstate(_St);
|
2919
|
+
return (*this); }
|
2920
|
+
_Myt& operator<<(unsigned int _X)
|
2921
|
+
! {iostate _St = ios_base::goodbit;
|
2922
|
+
const sentry _Ok(*this);
|
2923
|
+
if (_Ok)
|
2924
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2925
|
+
_TRY_IO_BEGIN
|
2926
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2927
|
+
! this->fill(), (unsigned long)_X).failed())
|
2928
|
+
! _St |= ios_base::badbit;
|
2929
|
+
_CATCH_IO_END }
|
2930
|
+
! this->setstate(_St);
|
2931
|
+
return (*this); }
|
2932
|
+
_Myt& operator<<(long _X)
|
2933
|
+
! {iostate _St = ios_base::goodbit;
|
2934
|
+
const sentry _Ok(*this);
|
2935
|
+
if (_Ok)
|
2936
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2937
|
+
_TRY_IO_BEGIN
|
2938
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2939
|
+
! this->fill(), _X).failed())
|
2940
|
+
! _St |= ios_base::badbit;
|
2941
|
+
_CATCH_IO_END }
|
2942
|
+
! this->setstate(_St);
|
2943
|
+
return (*this); }
|
2944
|
+
_Myt& operator<<(unsigned long _X)
|
2945
|
+
! {iostate _St = ios_base::goodbit;
|
2946
|
+
const sentry _Ok(*this);
|
2947
|
+
if (_Ok)
|
2948
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2949
|
+
_TRY_IO_BEGIN
|
2950
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2951
|
+
! this->fill(), _X).failed())
|
2952
|
+
! _St |= ios_base::badbit;
|
2953
|
+
_CATCH_IO_END }
|
2954
|
+
! this->setstate(_St);
|
2955
|
+
return (*this); }
|
2956
|
+
_Myt& operator<<(float _X)
|
2957
|
+
! {iostate _St = ios_base::goodbit;
|
2958
|
+
const sentry _Ok(*this);
|
2959
|
+
if (_Ok)
|
2960
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2961
|
+
_TRY_IO_BEGIN
|
2962
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2963
|
+
! this->fill(), (double)_X).failed())
|
2964
|
+
! _St |= ios_base::badbit;
|
2965
|
+
_CATCH_IO_END }
|
2966
|
+
! this->setstate(_St);
|
2967
|
+
return (*this); }
|
2968
|
+
_Myt& operator<<(double _X)
|
2969
|
+
! {iostate _St = ios_base::goodbit;
|
2970
|
+
const sentry _Ok(*this);
|
2971
|
+
if (_Ok)
|
2972
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2973
|
+
_TRY_IO_BEGIN
|
2974
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2975
|
+
! this->fill(), _X).failed())
|
2976
|
+
! _St |= ios_base::badbit;
|
2977
|
+
_CATCH_IO_END }
|
2978
|
+
! this->setstate(_St);
|
2979
|
+
return (*this); }
|
2980
|
+
_Myt& operator<<(long double _X)
|
2981
|
+
! {iostate _St = ios_base::goodbit;
|
2982
|
+
const sentry _Ok(*this);
|
2983
|
+
if (_Ok)
|
2984
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2985
|
+
_TRY_IO_BEGIN
|
2986
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2987
|
+
! this->fill(), _X).failed())
|
2988
|
+
! _St |= ios_base::badbit;
|
2989
|
+
_CATCH_IO_END }
|
2990
|
+
! this->setstate(_St);
|
2991
|
+
return (*this); }
|
2992
|
+
_Myt& operator<<(const void *_X)
|
2993
|
+
! {iostate _St = ios_base::goodbit;
|
2994
|
+
const sentry _Ok(*this);
|
2995
|
+
if (_Ok)
|
2996
|
+
! {const _Nput& _Fac = _USE(this->getloc(), _Nput);
|
2997
|
+
_TRY_IO_BEGIN
|
2998
|
+
! if (_Fac.put(_Iter(this->rdbuf()), *this,
|
2999
|
+
! this->fill(), _X).failed())
|
3000
|
+
! _St |= ios_base::badbit;
|
3001
|
+
_CATCH_IO_END }
|
3002
|
+
! this->setstate(_St);
|
3003
|
+
return (*this); }
|
3004
|
+
_Myt& operator<<(_Mysb *_Pb)
|
3005
|
+
! {iostate _St = ios_base::goodbit;
|
3006
|
+
bool _Copied = false;
|
3007
|
+
const sentry _Ok(*this);
|
3008
|
+
if (_Ok && _Pb != 0)
|
3009
|
+
*************** public:
|
3010
|
+
*** 211,272 ****
|
3011
|
+
_C = _Tr::eq_int_type(_Tr::eof(), _C)
|
3012
|
+
? _Pb->sgetc() : _Pb->snextc();
|
3013
|
+
_CATCH_ALL
|
3014
|
+
! setstate(failbit);
|
3015
|
+
_RERAISE;
|
3016
|
+
_CATCH_END
|
3017
|
+
if (_Tr::eq_int_type(_Tr::eof(),_C))
|
3018
|
+
break;
|
3019
|
+
_TRY_IO_BEGIN
|
3020
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
3021
|
+
! rdbuf()->sputc(_Tr::to_char_type(_C))))
|
3022
|
+
! {_St |= badbit;
|
3023
|
+
break; }
|
3024
|
+
_CATCH_IO_END }
|
3025
|
+
! width(0);
|
3026
|
+
! setstate(!_Copied ? _St | failbit : _St);
|
3027
|
+
return (*this); }
|
3028
|
+
_Myt& put(_E _X)
|
3029
|
+
! {iostate _St = goodbit;
|
3030
|
+
const sentry _Ok(*this);
|
3031
|
+
if (!_Ok)
|
3032
|
+
! _St |= badbit;
|
3033
|
+
else
|
3034
|
+
{_TRY_IO_BEGIN
|
3035
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
3036
|
+
! rdbuf()->sputc(_X)))
|
3037
|
+
! _St |= badbit;
|
3038
|
+
_CATCH_IO_END }
|
3039
|
+
! setstate(_St);
|
3040
|
+
return (*this); }
|
3041
|
+
_Myt& write(const _E *_S, streamsize _N)
|
3042
|
+
! {iostate _St = goodbit;
|
3043
|
+
const sentry _Ok(*this);
|
3044
|
+
if (!_Ok)
|
3045
|
+
! _St |= badbit;
|
3046
|
+
else
|
3047
|
+
{_TRY_IO_BEGIN
|
3048
|
+
! if (rdbuf()->sputn(_S, _N) != _N)
|
3049
|
+
! _St |= badbit;
|
3050
|
+
_CATCH_IO_END }
|
3051
|
+
! setstate(_St);
|
3052
|
+
return (*this); }
|
3053
|
+
_Myt& flush()
|
3054
|
+
! {iostate _St = goodbit;
|
3055
|
+
! if (!fail() && rdbuf()->pubsync() == -1)
|
3056
|
+
! _St |= badbit;
|
3057
|
+
! setstate(_St);
|
3058
|
+
return (*this); }
|
3059
|
+
_Myt& seekp(pos_type _P)
|
3060
|
+
! {if (!fail())
|
3061
|
+
! rdbuf()->pubseekpos(_P, out);
|
3062
|
+
return (*this); }
|
3063
|
+
_Myt& seekp(off_type _O, ios_base::seekdir _W)
|
3064
|
+
! {if (!fail())
|
3065
|
+
! rdbuf()->pubseekoff(_O, _W, out);
|
3066
|
+
return (*this); }
|
3067
|
+
pos_type tellp()
|
3068
|
+
! {if (!fail())
|
3069
|
+
! return (rdbuf()->pubseekoff(0, cur, out));
|
3070
|
+
else
|
3071
|
+
return (streampos(_BADOFF)); }
|
3072
|
+
};
|
3073
|
+
--- 216,277 ----
|
3074
|
+
_C = _Tr::eq_int_type(_Tr::eof(), _C)
|
3075
|
+
? _Pb->sgetc() : _Pb->snextc();
|
3076
|
+
_CATCH_ALL
|
3077
|
+
! this->setstate(ios_base::failbit);
|
3078
|
+
_RERAISE;
|
3079
|
+
_CATCH_END
|
3080
|
+
if (_Tr::eq_int_type(_Tr::eof(),_C))
|
3081
|
+
break;
|
3082
|
+
_TRY_IO_BEGIN
|
3083
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
3084
|
+
! this->rdbuf()->sputc(_Tr::to_char_type(_C))))
|
3085
|
+
! {_St |= ios_base::badbit;
|
3086
|
+
break; }
|
3087
|
+
_CATCH_IO_END }
|
3088
|
+
! this->width(0);
|
3089
|
+
! this->setstate(!_Copied ? _St | ios_base::failbit : _St);
|
3090
|
+
return (*this); }
|
3091
|
+
_Myt& put(_E _X)
|
3092
|
+
! {iostate _St = ios_base::goodbit;
|
3093
|
+
const sentry _Ok(*this);
|
3094
|
+
if (!_Ok)
|
3095
|
+
! _St |= ios_base::badbit;
|
3096
|
+
else
|
3097
|
+
{_TRY_IO_BEGIN
|
3098
|
+
if (_Tr::eq_int_type(_Tr::eof(),
|
3099
|
+
! this->rdbuf()->sputc(_X)))
|
3100
|
+
! _St |= ios_base::badbit;
|
3101
|
+
_CATCH_IO_END }
|
3102
|
+
! this->setstate(_St);
|
3103
|
+
return (*this); }
|
3104
|
+
_Myt& write(const _E *_S, streamsize _N)
|
3105
|
+
! {iostate _St = ios_base::goodbit;
|
3106
|
+
const sentry _Ok(*this);
|
3107
|
+
if (!_Ok)
|
3108
|
+
! _St |= ios_base::badbit;
|
3109
|
+
else
|
3110
|
+
{_TRY_IO_BEGIN
|
3111
|
+
! if (this->rdbuf()->sputn(_S, _N) != _N)
|
3112
|
+
! _St |= ios_base::badbit;
|
3113
|
+
_CATCH_IO_END }
|
3114
|
+
! this->setstate(_St);
|
3115
|
+
return (*this); }
|
3116
|
+
_Myt& flush()
|
3117
|
+
! {iostate _St = ios_base::goodbit;
|
3118
|
+
! if (!this->fail() && this->rdbuf()->pubsync() == -1)
|
3119
|
+
! _St |= ios_base::badbit;
|
3120
|
+
! this->setstate(_St);
|
3121
|
+
return (*this); }
|
3122
|
+
_Myt& seekp(pos_type _P)
|
3123
|
+
! {if (!this->fail())
|
3124
|
+
! this->rdbuf()->pubseekpos(_P, ios_base::out);
|
3125
|
+
return (*this); }
|
3126
|
+
_Myt& seekp(off_type _O, ios_base::seekdir _W)
|
3127
|
+
! {if (!this->fail())
|
3128
|
+
! this->rdbuf()->pubseekoff(_O, _W, ios_base::out);
|
3129
|
+
return (*this); }
|
3130
|
+
pos_type tellp()
|
3131
|
+
! {if (!this->fail())
|
3132
|
+
! return (this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out));
|
3133
|
+
else
|
3134
|
+
return (streampos(_BADOFF)); }
|
3135
|
+
};
|
3136
|
+
*************** template<class _E, class _Tr> inline
|
3137
|
+
*** 289,295 ****
|
3138
|
+
size_t _N = _Tr::length(_X);
|
3139
|
+
size_t _M = _O.width() <= 0 || _O.width() <= _N
|
3140
|
+
? 0 : _O.width() - _N;
|
3141
|
+
! const _Myos::sentry _Ok(_O);
|
3142
|
+
if (!_Ok)
|
3143
|
+
_St |= ios_base::badbit;
|
3144
|
+
else
|
3145
|
+
--- 294,300 ----
|
3146
|
+
size_t _N = _Tr::length(_X);
|
3147
|
+
size_t _M = _O.width() <= 0 || _O.width() <= _N
|
3148
|
+
? 0 : _O.width() - _N;
|
3149
|
+
! const typename _Myos::sentry _Ok(_O);
|
3150
|
+
if (!_Ok)
|
3151
|
+
_St |= ios_base::badbit;
|
3152
|
+
else
|
3153
|
+
*************** template<class _E, class _Tr> inline
|
3154
|
+
*** 319,325 ****
|
3155
|
+
basic_ostream<_E, _Tr>& _O, _E _C)
|
3156
|
+
{typedef basic_ostream<_E, _Tr> _Myos;
|
3157
|
+
ios_base::iostate _St = ios_base::goodbit;
|
3158
|
+
! const _Myos::sentry _Ok(_O);
|
3159
|
+
if (_Ok)
|
3160
|
+
{size_t _M = _O.width() <= 1 ? 0 : _O.width() - 1;
|
3161
|
+
_TRY_IO_BEGIN
|
3162
|
+
--- 324,330 ----
|
3163
|
+
basic_ostream<_E, _Tr>& _O, _E _C)
|
3164
|
+
{typedef basic_ostream<_E, _Tr> _Myos;
|
3165
|
+
ios_base::iostate _St = ios_base::goodbit;
|
3166
|
+
! const typename _Myos::sentry _Ok(_O);
|
3167
|
+
if (_Ok)
|
3168
|
+
{size_t _M = _O.width() <= 1 ? 0 : _O.width() - 1;
|
3169
|
+
_TRY_IO_BEGIN
|
3170
|
+
Index: process.h
|
3171
|
+
===================================================================
|
3172
|
+
RCS file: /cvsroot/GxInclude/VcInclude/process.h,v
|
3173
|
+
retrieving revision 1.1.1.1
|
3174
|
+
retrieving revision 1.3
|
3175
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
3176
|
+
*** process.h 13 Jun 2001 19:31:45 -0000 1.1.1.1
|
3177
|
+
--- process.h 1 Feb 2005 20:47:33 -0000 1.3
|
3178
|
+
*************** _CRTIMP int __cdecl _wsystem(const wchar
|
3179
|
+
*** 183,189 ****
|
3180
|
+
*/
|
3181
|
+
int __cdecl _loaddll(char *);
|
3182
|
+
int __cdecl _unloaddll(int);
|
3183
|
+
! int (__cdecl * __cdecl _getdllprocaddr(int, char *, int))();
|
3184
|
+
/* --------- The preceding functions are OBSOLETE --------- */
|
3185
|
+
|
3186
|
+
|
3187
|
+
--- 183,190 ----
|
3188
|
+
*/
|
3189
|
+
int __cdecl _loaddll(char *);
|
3190
|
+
int __cdecl _unloaddll(int);
|
3191
|
+
! typedef int (__cdecl * _getdllprocaddr_type)();
|
3192
|
+
! _getdllprocaddr_type __cdecl _getdllprocaddr(int, char *, int);
|
3193
|
+
/* --------- The preceding functions are OBSOLETE --------- */
|
3194
|
+
|
3195
|
+
|
3196
|
+
Index: queue
|
3197
|
+
===================================================================
|
3198
|
+
RCS file: /cvsroot/GxInclude/VcInclude/queue,v
|
3199
|
+
retrieving revision 1.1.1.1
|
3200
|
+
retrieving revision 1.3
|
3201
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
3202
|
+
*** queue 13 Jun 2001 19:31:46 -0000 1.1.1.1
|
3203
|
+
--- queue 14 Jun 2001 18:20:43 -0000 1.3
|
3204
|
+
*************** _STD_BEGIN
|
3205
|
+
*** 19,27 ****
|
3206
|
+
template<class _Ty, class _C = deque<_Ty> >
|
3207
|
+
class queue {
|
3208
|
+
public:
|
3209
|
+
! typedef _C::allocator_type allocator_type;
|
3210
|
+
! typedef _C::value_type value_type;
|
3211
|
+
! typedef _C::size_type size_type;
|
3212
|
+
explicit queue(const allocator_type& _Al = allocator_type())
|
3213
|
+
: c(_Al) {}
|
3214
|
+
allocator_type get_allocator() const
|
3215
|
+
--- 19,27 ----
|
3216
|
+
template<class _Ty, class _C = deque<_Ty> >
|
3217
|
+
class queue {
|
3218
|
+
public:
|
3219
|
+
! typedef typename _C::allocator_type allocator_type;
|
3220
|
+
! typedef typename _C::value_type value_type;
|
3221
|
+
! typedef typename _C::size_type size_type;
|
3222
|
+
explicit queue(const allocator_type& _Al = allocator_type())
|
3223
|
+
: c(_Al) {}
|
3224
|
+
allocator_type get_allocator() const
|
3225
|
+
*************** protected:
|
3226
|
+
*** 59,70 ****
|
3227
|
+
};
|
3228
|
+
// TEMPLATE CLASS priority_queue
|
3229
|
+
template<class _Ty, class _C = vector<_Ty>,
|
3230
|
+
! class _Pr = less<_C::value_type> >
|
3231
|
+
class priority_queue {
|
3232
|
+
public:
|
3233
|
+
! typedef _C::allocator_type allocator_type;
|
3234
|
+
! typedef _C::value_type value_type;
|
3235
|
+
! typedef _C::size_type size_type;
|
3236
|
+
explicit priority_queue(const _Pr& _X = _Pr(),
|
3237
|
+
const allocator_type& _Al = allocator_type())
|
3238
|
+
: c(_Al), comp(_X) {}
|
3239
|
+
--- 59,70 ----
|
3240
|
+
};
|
3241
|
+
// TEMPLATE CLASS priority_queue
|
3242
|
+
template<class _Ty, class _C = vector<_Ty>,
|
3243
|
+
! class _Pr = less<typename _C::value_type> >
|
3244
|
+
class priority_queue {
|
3245
|
+
public:
|
3246
|
+
! typedef typename _C::allocator_type allocator_type;
|
3247
|
+
! typedef typename _C::value_type value_type;
|
3248
|
+
! typedef typename _C::size_type size_type;
|
3249
|
+
explicit priority_queue(const _Pr& _X = _Pr(),
|
3250
|
+
const allocator_type& _Al = allocator_type())
|
3251
|
+
: c(_Al), comp(_X) {}
|
3252
|
+
Index: set
|
3253
|
+
===================================================================
|
3254
|
+
RCS file: /cvsroot/GxInclude/VcInclude/set,v
|
3255
|
+
retrieving revision 1.1.1.1
|
3256
|
+
retrieving revision 1.2
|
3257
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
3258
|
+
*** set 13 Jun 2001 19:31:50 -0000 1.1.1.1
|
3259
|
+
--- set 21 Oct 2007 19:06:49 -0000 1.2
|
3260
|
+
*************** public:
|
3261
|
+
*** 30,43 ****
|
3262
|
+
typedef _Pr key_compare;
|
3263
|
+
typedef _A allocator_type;
|
3264
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
3265
|
+
! typedef _Imp::size_type size_type;
|
3266
|
+
! typedef _Imp::difference_type difference_type;
|
3267
|
+
! typedef _Imp::reference reference;
|
3268
|
+
! typedef _Imp::const_reference const_reference;
|
3269
|
+
! typedef _Imp::iterator iterator;
|
3270
|
+
! typedef _Imp::const_iterator const_iterator;
|
3271
|
+
! typedef _Imp::reverse_iterator reverse_iterator;
|
3272
|
+
! typedef _Imp::const_reverse_iterator const_reverse_iterator;
|
3273
|
+
typedef pair<iterator, bool> _Pairib;
|
3274
|
+
typedef pair<iterator, iterator> _Pairii;
|
3275
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
3276
|
+
--- 30,43 ----
|
3277
|
+
typedef _Pr key_compare;
|
3278
|
+
typedef _A allocator_type;
|
3279
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
3280
|
+
! typedef typename _Imp::size_type size_type;
|
3281
|
+
! typedef typename _Imp::difference_type difference_type;
|
3282
|
+
! typedef typename _Imp::reference reference;
|
3283
|
+
! typedef typename _Imp::const_reference const_reference;
|
3284
|
+
! typedef typename _Imp::iterator iterator;
|
3285
|
+
! typedef typename _Imp::const_iterator const_iterator;
|
3286
|
+
! typedef typename _Imp::reverse_iterator reverse_iterator;
|
3287
|
+
! typedef typename _Imp::const_reverse_iterator const_reverse_iterator;
|
3288
|
+
typedef pair<iterator, bool> _Pairib;
|
3289
|
+
typedef pair<iterator, iterator> _Pairii;
|
3290
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
3291
|
+
*************** public:
|
3292
|
+
*** 77,94 ****
|
3293
|
+
_A get_allocator() const
|
3294
|
+
{return (_Tr.get_allocator()); }
|
3295
|
+
_Pairib insert(const value_type& _X)
|
3296
|
+
! {_Imp::_Pairib _Ans = _Tr.insert(_X);
|
3297
|
+
return (_Pairib(_Ans.first, _Ans.second)); }
|
3298
|
+
iterator insert(iterator _P, const value_type& _X)
|
3299
|
+
! {return (_Tr.insert((_Imp::iterator&)_P, _X)); }
|
3300
|
+
void insert(_It _F, _It _L)
|
3301
|
+
{for (; _F != _L; ++_F)
|
3302
|
+
_Tr.insert(*_F); }
|
3303
|
+
iterator erase(iterator _P)
|
3304
|
+
! {return (_Tr.erase((_Imp::iterator&)_P)); }
|
3305
|
+
iterator erase(iterator _F, iterator _L)
|
3306
|
+
! {return (_Tr.erase((_Imp::iterator&)_F,
|
3307
|
+
! (_Imp::iterator&)_L)); }
|
3308
|
+
size_type erase(const _K& _Kv)
|
3309
|
+
{return (_Tr.erase(_Kv)); }
|
3310
|
+
void clear()
|
3311
|
+
--- 77,94 ----
|
3312
|
+
_A get_allocator() const
|
3313
|
+
{return (_Tr.get_allocator()); }
|
3314
|
+
_Pairib insert(const value_type& _X)
|
3315
|
+
! {typename _Imp::_Pairib _Ans = _Tr.insert(_X);
|
3316
|
+
return (_Pairib(_Ans.first, _Ans.second)); }
|
3317
|
+
iterator insert(iterator _P, const value_type& _X)
|
3318
|
+
! {return (_Tr.insert((typename _Imp::iterator&)_P, _X)); }
|
3319
|
+
void insert(_It _F, _It _L)
|
3320
|
+
{for (; _F != _L; ++_F)
|
3321
|
+
_Tr.insert(*_F); }
|
3322
|
+
iterator erase(iterator _P)
|
3323
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_P)); }
|
3324
|
+
iterator erase(iterator _F, iterator _L)
|
3325
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_F,
|
3326
|
+
! (typename _Imp::iterator&)_L)); }
|
3327
|
+
size_type erase(const _K& _Kv)
|
3328
|
+
{return (_Tr.erase(_Kv)); }
|
3329
|
+
void clear()
|
3330
|
+
*************** public:
|
3331
|
+
*** 165,178 ****
|
3332
|
+
typedef _Pr key_compare;
|
3333
|
+
typedef _A allocator_type;
|
3334
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
3335
|
+
! typedef _Imp::size_type size_type;
|
3336
|
+
! typedef _Imp::difference_type difference_type;
|
3337
|
+
! typedef _Imp::reference reference;
|
3338
|
+
! typedef _Imp::const_reference const_reference;
|
3339
|
+
! typedef _Imp::iterator iterator;
|
3340
|
+
! typedef _Imp::const_iterator const_iterator;
|
3341
|
+
! typedef _Imp::reverse_iterator reverse_iterator;
|
3342
|
+
! typedef _Imp::const_reverse_iterator const_reverse_iterator;
|
3343
|
+
typedef pair<iterator, iterator> _Pairii;
|
3344
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
3345
|
+
explicit multiset(const _Pr& _Pred = _Pr(),
|
3346
|
+
--- 165,178 ----
|
3347
|
+
typedef _Pr key_compare;
|
3348
|
+
typedef _A allocator_type;
|
3349
|
+
typedef _Tree<_K, value_type, _Kfn, _Pr, _A> _Imp;
|
3350
|
+
! typedef typename _Imp::size_type size_type;
|
3351
|
+
! typedef typename _Imp::difference_type difference_type;
|
3352
|
+
! typedef typename _Imp::reference reference;
|
3353
|
+
! typedef typename _Imp::const_reference const_reference;
|
3354
|
+
! typedef typename _Imp::iterator iterator;
|
3355
|
+
! typedef typename _Imp::const_iterator const_iterator;
|
3356
|
+
! typedef typename _Imp::reverse_iterator reverse_iterator;
|
3357
|
+
! typedef typename _Imp::const_reverse_iterator const_reverse_iterator;
|
3358
|
+
typedef pair<iterator, iterator> _Pairii;
|
3359
|
+
typedef pair<const_iterator, const_iterator> _Paircc;
|
3360
|
+
explicit multiset(const _Pr& _Pred = _Pr(),
|
3361
|
+
*************** public:
|
3362
|
+
*** 214,228 ****
|
3363
|
+
iterator insert(const value_type& _X)
|
3364
|
+
{return (_Tr.insert(_X).first); }
|
3365
|
+
iterator insert(iterator _P, const value_type& _X)
|
3366
|
+
! {return (_Tr.insert((_Imp::iterator&)_P, _X)); }
|
3367
|
+
void insert(_It _F, _It _L)
|
3368
|
+
{for (; _F != _L; ++_F)
|
3369
|
+
_Tr.insert(*_F); }
|
3370
|
+
iterator erase(iterator _P)
|
3371
|
+
! {return (_Tr.erase((_Imp::iterator&)_P)); }
|
3372
|
+
iterator erase(iterator _F, iterator _L)
|
3373
|
+
! {return (_Tr.erase((_Imp::iterator&)_F,
|
3374
|
+
! (_Imp::iterator&)_L)); }
|
3375
|
+
size_type erase(const _K& _Kv)
|
3376
|
+
{return (_Tr.erase(_Kv)); }
|
3377
|
+
void clear()
|
3378
|
+
--- 214,228 ----
|
3379
|
+
iterator insert(const value_type& _X)
|
3380
|
+
{return (_Tr.insert(_X).first); }
|
3381
|
+
iterator insert(iterator _P, const value_type& _X)
|
3382
|
+
! {return (_Tr.insert((typename _Imp::iterator&)_P, _X)); }
|
3383
|
+
void insert(_It _F, _It _L)
|
3384
|
+
{for (; _F != _L; ++_F)
|
3385
|
+
_Tr.insert(*_F); }
|
3386
|
+
iterator erase(iterator _P)
|
3387
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_P)); }
|
3388
|
+
iterator erase(iterator _F, iterator _L)
|
3389
|
+
! {return (_Tr.erase((typename _Imp::iterator&)_F,
|
3390
|
+
! (typename _Imp::iterator&)_L)); }
|
3391
|
+
size_type erase(const _K& _Kv)
|
3392
|
+
{return (_Tr.erase(_Kv)); }
|
3393
|
+
void clear()
|
3394
|
+
Index: signal.h
|
3395
|
+
===================================================================
|
3396
|
+
RCS file: /cvsroot/GxInclude/VcInclude/signal.h,v
|
3397
|
+
retrieving revision 1.1.1.1
|
3398
|
+
retrieving revision 1.2
|
3399
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
3400
|
+
*** signal.h 13 Jun 2001 19:31:52 -0000 1.1.1.1
|
3401
|
+
--- signal.h 17 May 2004 17:34:46 -0000 1.2
|
3402
|
+
*************** extern void * _pxcptinfoptrs;
|
3403
|
+
*** 99,105 ****
|
3404
|
+
|
3405
|
+
/* Function prototypes */
|
3406
|
+
|
3407
|
+
! _CRTIMP void (__cdecl * __cdecl signal(int, void (__cdecl *)(int)))(int);
|
3408
|
+
_CRTIMP int __cdecl raise(int);
|
3409
|
+
|
3410
|
+
|
3411
|
+
--- 99,106 ----
|
3412
|
+
|
3413
|
+
/* Function prototypes */
|
3414
|
+
|
3415
|
+
! typedef void (__cdecl * __signal_handler_t)(int);
|
3416
|
+
! _CRTIMP __signal_handler_t __cdecl signal(int, __signal_handler_t);
|
3417
|
+
_CRTIMP int __cdecl raise(int);
|
3418
|
+
|
3419
|
+
|
3420
|
+
Index: sstream
|
3421
|
+
===================================================================
|
3422
|
+
RCS file: /cvsroot/GxInclude/VcInclude/sstream,v
|
3423
|
+
retrieving revision 1.1.1.1
|
3424
|
+
retrieving revision 1.4
|
3425
|
+
diff -c -3 -p -r1.1.1.1 -r1.4
|
3426
|
+
*** sstream 13 Jun 2001 19:31:56 -0000 1.1.1.1
|
3427
|
+
--- sstream 2 Nov 2007 19:15:19 -0000 1.4
|
3428
|
+
*************** _BITMASK(__Strstate, _Strstate);
|
3429
|
+
*** 17,26 ****
|
3430
|
+
_BITMASK_OPS(__Strstate)
|
3431
|
+
// TEMPLATE CLASS basic_stringbuf
|
3432
|
+
template<class _E,
|
3433
|
+
! class _Tr = char_traits<_E>,
|
3434
|
+
! class _A = allocator<_E> >
|
3435
|
+
class basic_stringbuf : public basic_streambuf<_E, _Tr> {
|
3436
|
+
public:
|
3437
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3438
|
+
explicit basic_stringbuf(
|
3439
|
+
ios_base::openmode _W = ios_base::in | ios_base::out)
|
3440
|
+
--- 17,29 ----
|
3441
|
+
_BITMASK_OPS(__Strstate)
|
3442
|
+
// TEMPLATE CLASS basic_stringbuf
|
3443
|
+
template<class _E,
|
3444
|
+
! class _Tr,
|
3445
|
+
! class _A >
|
3446
|
+
class basic_stringbuf : public basic_streambuf<_E, _Tr> {
|
3447
|
+
public:
|
3448
|
+
+ typedef typename basic_streambuf<_E, _Tr>::int_type int_type;
|
3449
|
+
+ typedef typename basic_streambuf<_E, _Tr>::pos_type pos_type;
|
3450
|
+
+ typedef typename basic_streambuf<_E, _Tr>::off_type off_type;
|
3451
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3452
|
+
explicit basic_stringbuf(
|
3453
|
+
ios_base::openmode _W = ios_base::in | ios_base::out)
|
3454
|
+
*************** public:
|
3455
|
+
*** 31,42 ****
|
3456
|
+
virtual ~basic_stringbuf()
|
3457
|
+
{_Tidy(); }
|
3458
|
+
_Mystr str() const
|
3459
|
+
! {if (!(_Strmode & _Constant) && pptr() != 0)
|
3460
|
+
! {_Mystr _Str(pbase(), (_Seekhigh < pptr()
|
3461
|
+
! ? pptr() : _Seekhigh) - pbase());
|
3462
|
+
return (_Str); }
|
3463
|
+
! else if (!(_Strmode & _Noread) && gptr() != 0)
|
3464
|
+
! {_Mystr _Str(eback(), egptr() - eback());
|
3465
|
+
return (_Str); }
|
3466
|
+
else
|
3467
|
+
{_Mystr _Nul;
|
3468
|
+
--- 34,45 ----
|
3469
|
+
virtual ~basic_stringbuf()
|
3470
|
+
{_Tidy(); }
|
3471
|
+
_Mystr str() const
|
3472
|
+
! {if (!(_Strmode & _Constant) && this->pptr() != 0)
|
3473
|
+
! {_Mystr _Str(this->pbase(), (_Seekhigh < this->pptr()
|
3474
|
+
! ? this->pptr() : _Seekhigh) - this->pbase());
|
3475
|
+
return (_Str); }
|
3476
|
+
! else if (!(_Strmode & _Noread) && this->gptr() != 0)
|
3477
|
+
! {_Mystr _Str(this->eback(), this->egptr() - this->eback());
|
3478
|
+
return (_Str); }
|
3479
|
+
else
|
3480
|
+
{_Mystr _Nul;
|
3481
|
+
*************** protected:
|
3482
|
+
*** 48,134 ****
|
3483
|
+
virtual int_type overflow(int_type _C = _Tr::eof())
|
3484
|
+
{if (_Tr::eq_int_type(_Tr::eof(), _C))
|
3485
|
+
return (_Tr::not_eof(_C));
|
3486
|
+
! else if (pptr() != 0 && pptr() < epptr())
|
3487
|
+
! {*_Pninc() = _Tr::to_char_type(_C);
|
3488
|
+
return (_C); }
|
3489
|
+
else if (_Strmode & _Constant)
|
3490
|
+
return (_Tr::eof());
|
3491
|
+
else
|
3492
|
+
! {size_t _Os = gptr() == 0 ? 0 : epptr() - eback();
|
3493
|
+
size_t _Ns = _Os + _Alsize;
|
3494
|
+
_E *_P = _Al.allocate(_Ns, (void *)0);
|
3495
|
+
if (0 < _Os)
|
3496
|
+
! _Tr::copy(_P, eback(), _Os);
|
3497
|
+
else if (_ALSIZE < _Alsize)
|
3498
|
+
_Alsize = _ALSIZE;
|
3499
|
+
if (_Strmode & _Allocated)
|
3500
|
+
! _Al.deallocate(eback(), _Os);
|
3501
|
+
_Strmode |= _Allocated;
|
3502
|
+
if (_Os == 0)
|
3503
|
+
{_Seekhigh = _P;
|
3504
|
+
! setp(_P, _P + _Ns);
|
3505
|
+
! setg(_P, _P, _P); }
|
3506
|
+
else
|
3507
|
+
! {_Seekhigh = _Seekhigh - eback() + _P;
|
3508
|
+
! setp(pbase() - eback() + _P,
|
3509
|
+
! pptr() - eback() + _P, _P + _Ns);
|
3510
|
+
if (_Strmode & _Noread)
|
3511
|
+
! setg(_P, _P, _P);
|
3512
|
+
else
|
3513
|
+
! setg(_P, gptr() - eback() + _P, pptr() + 1); }
|
3514
|
+
! *_Pninc() = _Tr::to_char_type(_C);
|
3515
|
+
return (_C); }}
|
3516
|
+
virtual int_type pbackfail(int_type _C = _Tr::eof())
|
3517
|
+
! {if (gptr() == 0 || gptr() <= eback()
|
3518
|
+
|| !_Tr::eq_int_type(_Tr::eof(), _C)
|
3519
|
+
! && !_Tr::eq(_Tr::to_char_type(_C), gptr()[-1])
|
3520
|
+
&& _Strmode & _Constant)
|
3521
|
+
return (_Tr::eof());
|
3522
|
+
else
|
3523
|
+
! {gbump(-1);
|
3524
|
+
if (!_Tr::eq_int_type(_Tr::eof(), _C))
|
3525
|
+
! *gptr() = _Tr::to_char_type(_C);
|
3526
|
+
return (_Tr::not_eof(_C)); }}
|
3527
|
+
virtual int_type underflow()
|
3528
|
+
! {if (gptr() == 0)
|
3529
|
+
return (_Tr::eof());
|
3530
|
+
! else if (gptr() < egptr())
|
3531
|
+
! return (_Tr::to_int_type(*gptr()));
|
3532
|
+
! else if (_Strmode & _Noread || pptr() == 0
|
3533
|
+
! || pptr() <= gptr() && _Seekhigh <= gptr())
|
3534
|
+
return (_Tr::eof());
|
3535
|
+
else
|
3536
|
+
! {if (_Seekhigh < pptr())
|
3537
|
+
! _Seekhigh = pptr();
|
3538
|
+
! setg(eback(), gptr(), _Seekhigh);
|
3539
|
+
! return (_Tr::to_int_type(*gptr())); }}
|
3540
|
+
virtual pos_type seekoff(off_type _O, ios_base::seekdir _Way,
|
3541
|
+
ios_base::openmode _Which = ios_base::in | ios_base::out)
|
3542
|
+
! {if (pptr() != 0 && _Seekhigh < pptr())
|
3543
|
+
! _Seekhigh = pptr();
|
3544
|
+
! if (_Which & ios_base::in && gptr() != 0)
|
3545
|
+
{if (_Way == ios_base::end)
|
3546
|
+
! _O += _Seekhigh - eback();
|
3547
|
+
else if (_Way == ios_base::cur
|
3548
|
+
&& !(_Which & ios_base::out))
|
3549
|
+
! _O += gptr() - eback();
|
3550
|
+
else if (_Way != ios_base::beg)
|
3551
|
+
_O = _BADOFF;
|
3552
|
+
! if (0 <= _O && _O <= _Seekhigh - eback())
|
3553
|
+
! {gbump(eback() - gptr() + _O);
|
3554
|
+
! if (_Which & ios_base::out && pptr() != 0)
|
3555
|
+
! setp(pbase(), gptr(), epptr()); }
|
3556
|
+
else
|
3557
|
+
_O = _BADOFF; }
|
3558
|
+
! else if (_Which & ios_base::out && pptr() != 0)
|
3559
|
+
{if (_Way == ios_base::end)
|
3560
|
+
! _O += _Seekhigh - eback();
|
3561
|
+
else if (_Way == ios_base::cur)
|
3562
|
+
! _O += pptr() - eback();
|
3563
|
+
else if (_Way != ios_base::beg)
|
3564
|
+
_O = _BADOFF;
|
3565
|
+
! if (0 <= _O && _O <= _Seekhigh - eback())
|
3566
|
+
! pbump(eback() - pptr() + _O);
|
3567
|
+
else
|
3568
|
+
_O = _BADOFF; }
|
3569
|
+
else
|
3570
|
+
--- 51,137 ----
|
3571
|
+
virtual int_type overflow(int_type _C = _Tr::eof())
|
3572
|
+
{if (_Tr::eq_int_type(_Tr::eof(), _C))
|
3573
|
+
return (_Tr::not_eof(_C));
|
3574
|
+
! else if (this->pptr() != 0 && this->pptr() < this->epptr())
|
3575
|
+
! {*this->_Pninc() = _Tr::to_char_type(_C);
|
3576
|
+
return (_C); }
|
3577
|
+
else if (_Strmode & _Constant)
|
3578
|
+
return (_Tr::eof());
|
3579
|
+
else
|
3580
|
+
! {size_t _Os = this->gptr() == 0 ? 0 : this->epptr() - this->eback();
|
3581
|
+
size_t _Ns = _Os + _Alsize;
|
3582
|
+
_E *_P = _Al.allocate(_Ns, (void *)0);
|
3583
|
+
if (0 < _Os)
|
3584
|
+
! _Tr::copy(_P, this->eback(), _Os);
|
3585
|
+
else if (_ALSIZE < _Alsize)
|
3586
|
+
_Alsize = _ALSIZE;
|
3587
|
+
if (_Strmode & _Allocated)
|
3588
|
+
! _Al.deallocate(this->eback(), _Os);
|
3589
|
+
_Strmode |= _Allocated;
|
3590
|
+
if (_Os == 0)
|
3591
|
+
{_Seekhigh = _P;
|
3592
|
+
! this->setp(_P, _P + _Ns);
|
3593
|
+
! this->setg(_P, _P, _P); }
|
3594
|
+
else
|
3595
|
+
! {_Seekhigh = _Seekhigh - this->eback() + _P;
|
3596
|
+
! this->setp(this->pbase() - this->eback() + _P,
|
3597
|
+
! this->pptr() - this->eback() + _P, _P + _Ns);
|
3598
|
+
if (_Strmode & _Noread)
|
3599
|
+
! this->setg(_P, _P, _P);
|
3600
|
+
else
|
3601
|
+
! this->setg(_P, this->gptr() - this->eback() + _P, this->pptr() + 1); }
|
3602
|
+
! *this->_Pninc() = _Tr::to_char_type(_C);
|
3603
|
+
return (_C); }}
|
3604
|
+
virtual int_type pbackfail(int_type _C = _Tr::eof())
|
3605
|
+
! {if (this->gptr() == 0 || this->gptr() <= this->eback()
|
3606
|
+
|| !_Tr::eq_int_type(_Tr::eof(), _C)
|
3607
|
+
! && !_Tr::eq(_Tr::to_char_type(_C), this->gptr()[-1])
|
3608
|
+
&& _Strmode & _Constant)
|
3609
|
+
return (_Tr::eof());
|
3610
|
+
else
|
3611
|
+
! {this->gbump(-1);
|
3612
|
+
if (!_Tr::eq_int_type(_Tr::eof(), _C))
|
3613
|
+
! *this->gptr() = _Tr::to_char_type(_C);
|
3614
|
+
return (_Tr::not_eof(_C)); }}
|
3615
|
+
virtual int_type underflow()
|
3616
|
+
! {if (this->gptr() == 0)
|
3617
|
+
return (_Tr::eof());
|
3618
|
+
! else if (this->gptr() < this->egptr())
|
3619
|
+
! return (_Tr::to_int_type(*this->gptr()));
|
3620
|
+
! else if (_Strmode & _Noread || this->pptr() == 0
|
3621
|
+
! || this->pptr() <= this->gptr() && _Seekhigh <= this->gptr())
|
3622
|
+
return (_Tr::eof());
|
3623
|
+
else
|
3624
|
+
! {if (_Seekhigh < this->pptr())
|
3625
|
+
! _Seekhigh = this->pptr();
|
3626
|
+
! this->setg(this->eback(), this->gptr(), _Seekhigh);
|
3627
|
+
! return (_Tr::to_int_type(*this->gptr())); }}
|
3628
|
+
virtual pos_type seekoff(off_type _O, ios_base::seekdir _Way,
|
3629
|
+
ios_base::openmode _Which = ios_base::in | ios_base::out)
|
3630
|
+
! {if (this->pptr() != 0 && _Seekhigh < this->pptr())
|
3631
|
+
! _Seekhigh = this->pptr();
|
3632
|
+
! if (_Which & ios_base::in && this->gptr() != 0)
|
3633
|
+
{if (_Way == ios_base::end)
|
3634
|
+
! _O += _Seekhigh - this->eback();
|
3635
|
+
else if (_Way == ios_base::cur
|
3636
|
+
&& !(_Which & ios_base::out))
|
3637
|
+
! _O += this->gptr() - this->eback();
|
3638
|
+
else if (_Way != ios_base::beg)
|
3639
|
+
_O = _BADOFF;
|
3640
|
+
! if (0 <= _O && _O <= _Seekhigh - this->eback())
|
3641
|
+
! {this->gbump(this->eback() - this->gptr() + _O);
|
3642
|
+
! if (_Which & ios_base::out && this->pptr() != 0)
|
3643
|
+
! this->setp(this->pbase(), this->gptr(), this->epptr()); }
|
3644
|
+
else
|
3645
|
+
_O = _BADOFF; }
|
3646
|
+
! else if (_Which & ios_base::out && this->pptr() != 0)
|
3647
|
+
{if (_Way == ios_base::end)
|
3648
|
+
! _O += _Seekhigh - this->eback();
|
3649
|
+
else if (_Way == ios_base::cur)
|
3650
|
+
! _O += this->pptr() - this->eback();
|
3651
|
+
else if (_Way != ios_base::beg)
|
3652
|
+
_O = _BADOFF;
|
3653
|
+
! if (0 <= _O && _O <= _Seekhigh - this->eback())
|
3654
|
+
! this->pbump(this->eback() - this->pptr() + _O);
|
3655
|
+
else
|
3656
|
+
_O = _BADOFF; }
|
3657
|
+
else
|
3658
|
+
*************** protected:
|
3659
|
+
*** 137,156 ****
|
3660
|
+
virtual pos_type seekpos(pos_type _P,
|
3661
|
+
ios_base::openmode _Which = ios_base::in | ios_base::out)
|
3662
|
+
{streamoff _O = (streamoff)_P;
|
3663
|
+
! if (pptr() != 0 && _Seekhigh < pptr())
|
3664
|
+
! _Seekhigh = pptr();
|
3665
|
+
if (_O == _BADOFF)
|
3666
|
+
;
|
3667
|
+
! else if (_Which & ios_base::in && gptr() != 0)
|
3668
|
+
! {if (0 <= _O && _O <= _Seekhigh - eback())
|
3669
|
+
! {gbump(eback() - gptr() + _O);
|
3670
|
+
! if (_Which & ios_base::out && pptr() != 0)
|
3671
|
+
! setp(pbase(), gptr(), epptr()); }
|
3672
|
+
else
|
3673
|
+
_O = _BADOFF; }
|
3674
|
+
! else if (_Which & ios_base::out && pptr() != 0)
|
3675
|
+
! {if (0 <= _O && _O <= _Seekhigh - eback())
|
3676
|
+
! pbump(eback() - pptr() + _O);
|
3677
|
+
else
|
3678
|
+
_O = _BADOFF; }
|
3679
|
+
else
|
3680
|
+
--- 140,159 ----
|
3681
|
+
virtual pos_type seekpos(pos_type _P,
|
3682
|
+
ios_base::openmode _Which = ios_base::in | ios_base::out)
|
3683
|
+
{streamoff _O = (streamoff)_P;
|
3684
|
+
! if (this->pptr() != 0 && _Seekhigh < this->pptr())
|
3685
|
+
! _Seekhigh = this->pptr();
|
3686
|
+
if (_O == _BADOFF)
|
3687
|
+
;
|
3688
|
+
! else if (_Which & ios_base::in && this->gptr() != 0)
|
3689
|
+
! {if (0 <= _O && _O <= _Seekhigh - this->eback())
|
3690
|
+
! {this->gbump(this->eback() - this->gptr() + _O);
|
3691
|
+
! if (_Which & ios_base::out && this->pptr() != 0)
|
3692
|
+
! this->setp(this->pbase(), this->gptr(), this->epptr()); }
|
3693
|
+
else
|
3694
|
+
_O = _BADOFF; }
|
3695
|
+
! else if (_Which & ios_base::out && this->pptr() != 0)
|
3696
|
+
! {if (0 <= _O && _O <= _Seekhigh - this->eback())
|
3697
|
+
! this->pbump(this->eback() - this->pptr() + _O);
|
3698
|
+
else
|
3699
|
+
_O = _BADOFF; }
|
3700
|
+
else
|
3701
|
+
*************** protected:
|
3702
|
+
*** 161,183 ****
|
3703
|
+
_Alsize = _MINSIZE, _Strmode = _M;
|
3704
|
+
if (_N == 0 || (_Strmode & (_Noread | _Constant))
|
3705
|
+
== (_Noread | _Constant))
|
3706
|
+
! {setg(0, 0, 0);
|
3707
|
+
! setp(0, 0); }
|
3708
|
+
else
|
3709
|
+
{_E *_P = _Al.allocate(_N, (void *)0);
|
3710
|
+
_Tr::copy(_P, _S, _N);
|
3711
|
+
_Seekhigh = _P + _N;
|
3712
|
+
if (!(_Strmode & _Noread))
|
3713
|
+
! setg(_P, _P, _P + _N);
|
3714
|
+
if (!(_Strmode & _Constant))
|
3715
|
+
! {setp(_P, _P + _N);
|
3716
|
+
! if (gptr() == 0)
|
3717
|
+
! setg(_P, _P, _P); }
|
3718
|
+
_Strmode |= _Allocated; }}
|
3719
|
+
void _Tidy()
|
3720
|
+
{if (_Strmode & _Allocated)
|
3721
|
+
! _Al.deallocate(eback(),
|
3722
|
+
! (pptr() != 0 ? epptr() : egptr()) - eback());
|
3723
|
+
_Seekhigh = 0;
|
3724
|
+
_Strmode &= ~_Allocated; }
|
3725
|
+
private:
|
3726
|
+
--- 164,186 ----
|
3727
|
+
_Alsize = _MINSIZE, _Strmode = _M;
|
3728
|
+
if (_N == 0 || (_Strmode & (_Noread | _Constant))
|
3729
|
+
== (_Noread | _Constant))
|
3730
|
+
! {this->setg(0, 0, 0);
|
3731
|
+
! this->setp(0, 0); }
|
3732
|
+
else
|
3733
|
+
{_E *_P = _Al.allocate(_N, (void *)0);
|
3734
|
+
_Tr::copy(_P, _S, _N);
|
3735
|
+
_Seekhigh = _P + _N;
|
3736
|
+
if (!(_Strmode & _Noread))
|
3737
|
+
! this->setg(_P, _P, _P + _N);
|
3738
|
+
if (!(_Strmode & _Constant))
|
3739
|
+
! {this->setp(_P, _P + _N);
|
3740
|
+
! if (this->gptr() == 0)
|
3741
|
+
! this->setg(_P, _P, _P); }
|
3742
|
+
_Strmode |= _Allocated; }}
|
3743
|
+
void _Tidy()
|
3744
|
+
{if (_Strmode & _Allocated)
|
3745
|
+
! _Al.deallocate(this->eback(),
|
3746
|
+
! (this->pptr() != 0 ? this->epptr() : this->egptr()) - this->eback());
|
3747
|
+
_Seekhigh = 0;
|
3748
|
+
_Strmode &= ~_Allocated; }
|
3749
|
+
private:
|
3750
|
+
*************** private:
|
3751
|
+
*** 196,212 ****
|
3752
|
+
};
|
3753
|
+
// TEMPLATE CLASS basic_istringstream
|
3754
|
+
template<class _E,
|
3755
|
+
! class _Tr = char_traits<_E>,
|
3756
|
+
! class _A = allocator<_E> >
|
3757
|
+
class basic_istringstream : public basic_istream<_E, _Tr> {
|
3758
|
+
public:
|
3759
|
+
typedef basic_stringbuf<_E, _Tr, _A> _Mysb;
|
3760
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3761
|
+
! explicit basic_istringstream(openmode _M = in)
|
3762
|
+
! : basic_istream<_E, _Tr>(&_Sb), _Sb(_M | in) {}
|
3763
|
+
explicit basic_istringstream(const _Mystr& _S,
|
3764
|
+
! openmode _M = in)
|
3765
|
+
! : basic_istream<_E, _Tr>(&_Sb), _Sb(_S, _M | in) {}
|
3766
|
+
virtual ~basic_istringstream()
|
3767
|
+
{}
|
3768
|
+
_Mysb *rdbuf() const
|
3769
|
+
--- 199,215 ----
|
3770
|
+
};
|
3771
|
+
// TEMPLATE CLASS basic_istringstream
|
3772
|
+
template<class _E,
|
3773
|
+
! class _Tr,
|
3774
|
+
! class _A >
|
3775
|
+
class basic_istringstream : public basic_istream<_E, _Tr> {
|
3776
|
+
public:
|
3777
|
+
typedef basic_stringbuf<_E, _Tr, _A> _Mysb;
|
3778
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3779
|
+
! explicit basic_istringstream(ios_base::openmode _M = ios_base::in)
|
3780
|
+
! : basic_istream<_E, _Tr>(&_Sb), _Sb(_M | ios_base::in) {}
|
3781
|
+
explicit basic_istringstream(const _Mystr& _S,
|
3782
|
+
! ios_base::openmode _M = ios_base::in)
|
3783
|
+
! : basic_istream<_E, _Tr>(&_Sb), _Sb(_S, _M | ios_base::in) {}
|
3784
|
+
virtual ~basic_istringstream()
|
3785
|
+
{}
|
3786
|
+
_Mysb *rdbuf() const
|
3787
|
+
*************** private:
|
3788
|
+
*** 220,236 ****
|
3789
|
+
};
|
3790
|
+
// TEMPLATE CLASS basic_ostringstream
|
3791
|
+
template<class _E,
|
3792
|
+
! class _Tr = char_traits<_E>,
|
3793
|
+
! class _A = allocator<_E> >
|
3794
|
+
class basic_ostringstream : public basic_ostream<_E, _Tr> {
|
3795
|
+
public:
|
3796
|
+
typedef basic_stringbuf<_E, _Tr, _A> _Mysb;
|
3797
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3798
|
+
! explicit basic_ostringstream(openmode _M = out)
|
3799
|
+
! : basic_ostream<_E, _Tr>(&_Sb), _Sb(_M | out) {}
|
3800
|
+
explicit basic_ostringstream(const _Mystr& _S,
|
3801
|
+
! openmode _M = out)
|
3802
|
+
! : basic_ostream<_E, _Tr>(&_Sb), _Sb(_S, _M | out) {}
|
3803
|
+
virtual ~basic_ostringstream()
|
3804
|
+
{}
|
3805
|
+
_Mysb *rdbuf() const
|
3806
|
+
--- 223,239 ----
|
3807
|
+
};
|
3808
|
+
// TEMPLATE CLASS basic_ostringstream
|
3809
|
+
template<class _E,
|
3810
|
+
! class _Tr,
|
3811
|
+
! class _A >
|
3812
|
+
class basic_ostringstream : public basic_ostream<_E, _Tr> {
|
3813
|
+
public:
|
3814
|
+
typedef basic_stringbuf<_E, _Tr, _A> _Mysb;
|
3815
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3816
|
+
! explicit basic_ostringstream(ios_base::openmode _M = ios_base::out)
|
3817
|
+
! : basic_ostream<_E, _Tr>(&_Sb), _Sb(_M | ios_base::out) {}
|
3818
|
+
explicit basic_ostringstream(const _Mystr& _S,
|
3819
|
+
! ios_base::openmode _M = ios_base::out)
|
3820
|
+
! : basic_ostream<_E, _Tr>(&_Sb), _Sb(_S, _M | ios_base::out) {}
|
3821
|
+
virtual ~basic_ostringstream()
|
3822
|
+
{}
|
3823
|
+
_Mysb *rdbuf() const
|
3824
|
+
*************** private:
|
3825
|
+
*** 244,258 ****
|
3826
|
+
};
|
3827
|
+
// TEMPLATE CLASS basic_stringstream
|
3828
|
+
template<class _E,
|
3829
|
+
! class _Tr = char_traits<_E>,
|
3830
|
+
! class _A = allocator<_E> >
|
3831
|
+
class basic_stringstream : public basic_iostream<_E, _Tr> {
|
3832
|
+
public:
|
3833
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3834
|
+
! explicit basic_stringstream(openmode _W = in | out)
|
3835
|
+
: basic_iostream<_E, _Tr>(&_Sb), _Sb(_W) {}
|
3836
|
+
explicit basic_stringstream(const _Mystr& _S,
|
3837
|
+
! openmode _W = in | out)
|
3838
|
+
: basic_iostream<_E, _Tr>(&_Sb), _Sb(_S, _W) {}
|
3839
|
+
virtual ~basic_stringstream()
|
3840
|
+
{}
|
3841
|
+
--- 247,261 ----
|
3842
|
+
};
|
3843
|
+
// TEMPLATE CLASS basic_stringstream
|
3844
|
+
template<class _E,
|
3845
|
+
! class _Tr,
|
3846
|
+
! class _A >
|
3847
|
+
class basic_stringstream : public basic_iostream<_E, _Tr> {
|
3848
|
+
public:
|
3849
|
+
typedef basic_string<_E, _Tr, _A> _Mystr;
|
3850
|
+
! explicit basic_stringstream(ios_base::openmode _W = ios_base::in | ios_base::out)
|
3851
|
+
: basic_iostream<_E, _Tr>(&_Sb), _Sb(_W) {}
|
3852
|
+
explicit basic_stringstream(const _Mystr& _S,
|
3853
|
+
! ios_base::openmode _W = ios_base::in | ios_base::out)
|
3854
|
+
: basic_iostream<_E, _Tr>(&_Sb), _Sb(_S, _W) {}
|
3855
|
+
virtual ~basic_stringstream()
|
3856
|
+
{}
|
3857
|
+
Index: stack
|
3858
|
+
===================================================================
|
3859
|
+
RCS file: /cvsroot/GxInclude/VcInclude/stack,v
|
3860
|
+
retrieving revision 1.1.1.1
|
3861
|
+
retrieving revision 1.2
|
3862
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
3863
|
+
*** stack 13 Jun 2001 19:31:56 -0000 1.1.1.1
|
3864
|
+
--- stack 13 Jun 2001 21:16:23 -0000 1.2
|
3865
|
+
*************** _STD_BEGIN
|
3866
|
+
*** 16,24 ****
|
3867
|
+
template<class _Ty, class _C = deque<_Ty> >
|
3868
|
+
class stack {
|
3869
|
+
public:
|
3870
|
+
! typedef _C::allocator_type allocator_type;
|
3871
|
+
! typedef _C::value_type value_type;
|
3872
|
+
! typedef _C::size_type size_type;
|
3873
|
+
explicit stack(const allocator_type& _Al = allocator_type())
|
3874
|
+
: c(_Al) {}
|
3875
|
+
allocator_type get_allocator() const
|
3876
|
+
--- 16,24 ----
|
3877
|
+
template<class _Ty, class _C = deque<_Ty> >
|
3878
|
+
class stack {
|
3879
|
+
public:
|
3880
|
+
! typedef typename _C::allocator_type allocator_type;
|
3881
|
+
! typedef typename _C::value_type value_type;
|
3882
|
+
! typedef typename _C::size_type size_type;
|
3883
|
+
explicit stack(const allocator_type& _Al = allocator_type())
|
3884
|
+
: c(_Al) {}
|
3885
|
+
allocator_type get_allocator() const
|
3886
|
+
Index: stddef.h
|
3887
|
+
===================================================================
|
3888
|
+
RCS file: /cvsroot/GxInclude/VcInclude/stddef.h,v
|
3889
|
+
retrieving revision 1.1.1.1
|
3890
|
+
retrieving revision 1.2
|
3891
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
3892
|
+
*** stddef.h 13 Jun 2001 19:31:56 -0000 1.1.1.1
|
3893
|
+
--- stddef.h 9 Jan 2009 13:47:14 -0000 1.2
|
3894
|
+
*************** extern "C" {
|
3895
|
+
*** 68,74 ****
|
3896
|
+
--- 68,77 ----
|
3897
|
+
#endif
|
3898
|
+
|
3899
|
+
|
3900
|
+
+ #define offsetof(s,m) ((size_t)__builtin_offsetof(s,m))
|
3901
|
+
+ #if 0 /* replaced for gccxml */
|
3902
|
+
#define offsetof(s,m) (size_t)&(((s *)0)->m)
|
3903
|
+
+ #endif /* 0 */
|
3904
|
+
|
3905
|
+
|
3906
|
+
/* Declare reference to errno */
|
3907
|
+
Index: streambuf
|
3908
|
+
===================================================================
|
3909
|
+
RCS file: /cvsroot/GxInclude/VcInclude/streambuf,v
|
3910
|
+
retrieving revision 1.1.1.1
|
3911
|
+
retrieving revision 1.2
|
3912
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
3913
|
+
*** streambuf 13 Jun 2001 19:31:57 -0000 1.1.1.1
|
3914
|
+
--- streambuf 13 Jun 2001 21:16:23 -0000 1.2
|
3915
|
+
***************
|
3916
|
+
*** 13,19 ****
|
3917
|
+
#endif /* _MSC_VER */
|
3918
|
+
_STD_BEGIN
|
3919
|
+
// TEMPLATE CLASS basic_streambuf
|
3920
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
3921
|
+
class basic_streambuf {
|
3922
|
+
protected:
|
3923
|
+
basic_streambuf()
|
3924
|
+
--- 13,19 ----
|
3925
|
+
#endif /* _MSC_VER */
|
3926
|
+
_STD_BEGIN
|
3927
|
+
// TEMPLATE CLASS basic_streambuf
|
3928
|
+
! template<class _E, class _Tr >
|
3929
|
+
class basic_streambuf {
|
3930
|
+
protected:
|
3931
|
+
basic_streambuf()
|
3932
|
+
*************** public:
|
3933
|
+
*** 26,34 ****
|
3934
|
+
typedef _Tr traits_type;
|
3935
|
+
virtual ~basic_streambuf()
|
3936
|
+
{}
|
3937
|
+
! typedef _Tr::int_type int_type;
|
3938
|
+
! typedef _Tr::pos_type pos_type;
|
3939
|
+
! typedef _Tr::off_type off_type;
|
3940
|
+
pos_type pubseekoff(off_type _O, ios_base::seekdir _W,
|
3941
|
+
ios_base::openmode _M = ios_base::in | ios_base::out)
|
3942
|
+
{return (seekoff(_O, _W, _M)); }
|
3943
|
+
--- 26,34 ----
|
3944
|
+
typedef _Tr traits_type;
|
3945
|
+
virtual ~basic_streambuf()
|
3946
|
+
{}
|
3947
|
+
! typedef typename _Tr::int_type int_type;
|
3948
|
+
! typedef typename _Tr::pos_type pos_type;
|
3949
|
+
! typedef typename _Tr::off_type off_type;
|
3950
|
+
pos_type pubseekoff(off_type _O, ios_base::seekdir _W,
|
3951
|
+
ios_base::openmode _M = ios_base::in | ios_base::out)
|
3952
|
+
{return (seekoff(_O, _W, _M)); }
|
3953
|
+
Index: string
|
3954
|
+
===================================================================
|
3955
|
+
RCS file: /cvsroot/GxInclude/VcInclude/string,v
|
3956
|
+
retrieving revision 1.1.1.1
|
3957
|
+
retrieving revision 1.3
|
3958
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
3959
|
+
*** string 13 Jun 2001 19:31:57 -0000 1.1.1.1
|
3960
|
+
--- string 21 Oct 2007 19:06:49 -0000 1.3
|
3961
|
+
*************** template<class _E, class _Tr, class _A>
|
3962
|
+
*** 117,130 ****
|
3963
|
+
ios_base::iostate _St = ios_base::goodbit;
|
3964
|
+
bool _Chg = false;
|
3965
|
+
_X.erase();
|
3966
|
+
! const _Myis::sentry _Ok(_I);
|
3967
|
+
if (_Ok)
|
3968
|
+
{const _Ctype& _Fac = _USE(_I.getloc(), _Ctype);
|
3969
|
+
_TRY_IO_BEGIN
|
3970
|
+
! _A::size_type _N = 0 < _I.width()
|
3971
|
+
&& _I.width() < _X.max_size()
|
3972
|
+
? _I.width() : _X.max_size();
|
3973
|
+
! _Tr::int_type _C = _I.rdbuf()->sgetc();
|
3974
|
+
for (; 0 < --_N; _C = _I.rdbuf()->snextc())
|
3975
|
+
if(_Tr::eq_int_type(_Tr::eof(), _C))
|
3976
|
+
{_St |= ios_base::eofbit;
|
3977
|
+
--- 117,130 ----
|
3978
|
+
ios_base::iostate _St = ios_base::goodbit;
|
3979
|
+
bool _Chg = false;
|
3980
|
+
_X.erase();
|
3981
|
+
! const typename _Myis::sentry _Ok(_I);
|
3982
|
+
if (_Ok)
|
3983
|
+
{const _Ctype& _Fac = _USE(_I.getloc(), _Ctype);
|
3984
|
+
_TRY_IO_BEGIN
|
3985
|
+
! typename _A::size_type _N = 0 < _I.width()
|
3986
|
+
&& _I.width() < _X.max_size()
|
3987
|
+
? _I.width() : _X.max_size();
|
3988
|
+
! typename _Tr::int_type _C = _I.rdbuf()->sgetc();
|
3989
|
+
for (; 0 < --_N; _C = _I.rdbuf()->snextc())
|
3990
|
+
if(_Tr::eq_int_type(_Tr::eof(), _C))
|
3991
|
+
{_St |= ios_base::eofbit;
|
3992
|
+
*************** template<class _E, class _Tr, class _A>
|
3993
|
+
*** 152,161 ****
|
3994
|
+
ios_base::iostate _St = ios_base::goodbit;
|
3995
|
+
bool _Chg = false;
|
3996
|
+
_X.erase();
|
3997
|
+
! const _Myis::sentry _Ok(_I, true);
|
3998
|
+
if (_Ok)
|
3999
|
+
{_TRY_IO_BEGIN
|
4000
|
+
! _Tr::int_type _C = _I.rdbuf()->sgetc();
|
4001
|
+
for (; ; _C = _I.rdbuf()->snextc())
|
4002
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
4003
|
+
{_St |= ios_base::eofbit;
|
4004
|
+
--- 152,161 ----
|
4005
|
+
ios_base::iostate _St = ios_base::goodbit;
|
4006
|
+
bool _Chg = false;
|
4007
|
+
_X.erase();
|
4008
|
+
! const typename _Myis::sentry _Ok(_I, true);
|
4009
|
+
if (_Ok)
|
4010
|
+
{_TRY_IO_BEGIN
|
4011
|
+
! typename _Tr::int_type _C = _I.rdbuf()->sgetc();
|
4012
|
+
for (; ; _C = _I.rdbuf()->snextc())
|
4013
|
+
if (_Tr::eq_int_type(_Tr::eof(), _C))
|
4014
|
+
{_St |= ios_base::eofbit;
|
4015
|
+
Index: typeinfo
|
4016
|
+
===================================================================
|
4017
|
+
RCS file: /cvsroot/GxInclude/VcInclude/typeinfo,v
|
4018
|
+
retrieving revision 1.1.1.1
|
4019
|
+
retrieving revision 1.5
|
4020
|
+
diff -c -3 -p -r1.1.1.1 -r1.5
|
4021
|
+
*** typeinfo 13 Jun 2001 19:32:04 -0000 1.1.1.1
|
4022
|
+
--- typeinfo 3 Jun 2004 12:41:16 -0000 1.5
|
4023
|
+
***************
|
4024
|
+
*** 51,56 ****
|
4025
|
+
--- 51,57 ----
|
4026
|
+
#pragma pack(push,8)
|
4027
|
+
#endif /* _MSC_VER */
|
4028
|
+
|
4029
|
+
+ namespace std {
|
4030
|
+
class type_info {
|
4031
|
+
public:
|
4032
|
+
_CRTIMP virtual ~type_info();
|
4033
|
+
*************** private:
|
4034
|
+
*** 65,71 ****
|
4035
|
+
type_info(const type_info& rhs);
|
4036
|
+
type_info& operator=(const type_info& rhs);
|
4037
|
+
};
|
4038
|
+
!
|
4039
|
+
|
4040
|
+
// This include must occur below the definition of class type_info
|
4041
|
+
#include <exception>
|
4042
|
+
--- 66,73 ----
|
4043
|
+
type_info(const type_info& rhs);
|
4044
|
+
type_info& operator=(const type_info& rhs);
|
4045
|
+
};
|
4046
|
+
! }
|
4047
|
+
! using std::type_info;
|
4048
|
+
|
4049
|
+
// This include must occur below the definition of class type_info
|
4050
|
+
#include <exception>
|
4051
|
+
Index: typeinfo.h
|
4052
|
+
===================================================================
|
4053
|
+
RCS file: /cvsroot/GxInclude/VcInclude/typeinfo.h,v
|
4054
|
+
retrieving revision 1.1.1.1
|
4055
|
+
retrieving revision 1.2
|
4056
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
4057
|
+
*** typeinfo.h 13 Jun 2001 19:32:04 -0000 1.1.1.1
|
4058
|
+
--- typeinfo.h 17 May 2004 14:29:56 -0000 1.2
|
4059
|
+
***************
|
4060
|
+
*** 37,42 ****
|
4061
|
+
--- 37,43 ----
|
4062
|
+
#endif /* _DLL */
|
4063
|
+
#endif /* _CRTIMP */
|
4064
|
+
|
4065
|
+
+ namespace std {
|
4066
|
+
class type_info {
|
4067
|
+
public:
|
4068
|
+
_CRTIMP virtual ~type_info();
|
4069
|
+
*************** private:
|
4070
|
+
*** 51,56 ****
|
4071
|
+
--- 52,59 ----
|
4072
|
+
type_info(const type_info& rhs);
|
4073
|
+
type_info& operator=(const type_info& rhs);
|
4074
|
+
};
|
4075
|
+
+ }
|
4076
|
+
+ using std::type_info;
|
4077
|
+
|
4078
|
+
|
4079
|
+
// This include must occur below the definition of class type_info
|
4080
|
+
Index: utility
|
4081
|
+
===================================================================
|
4082
|
+
RCS file: /cvsroot/GxInclude/VcInclude/utility,v
|
4083
|
+
retrieving revision 1.1.1.1
|
4084
|
+
retrieving revision 1.2
|
4085
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
4086
|
+
*** utility 13 Jun 2001 19:32:05 -0000 1.1.1.1
|
4087
|
+
--- utility 13 Jun 2001 21:16:23 -0000 1.2
|
4088
|
+
*************** template<class _Ty, class _D>
|
4089
|
+
*** 78,86 ****
|
4090
|
+
// TEMPLATE CLASS iterator_traits (from <iterator>)
|
4091
|
+
template<class _It>
|
4092
|
+
struct iterator_traits {
|
4093
|
+
! typedef _It::iterator_category iterator_category;
|
4094
|
+
! typedef _It::value_type value_type;
|
4095
|
+
! typedef _It::distance_type distance_type;
|
4096
|
+
};
|
4097
|
+
// TEMPLATE FUNCTION _Iter_cat (from <iterator>)
|
4098
|
+
template<class _C, class _Ty, class _D> inline
|
4099
|
+
--- 78,86 ----
|
4100
|
+
// TEMPLATE CLASS iterator_traits (from <iterator>)
|
4101
|
+
template<class _It>
|
4102
|
+
struct iterator_traits {
|
4103
|
+
! typedef typename _It::iterator_category iterator_category;
|
4104
|
+
! typedef typename _It::value_type value_type;
|
4105
|
+
! typedef typename _It::distance_type distance_type;
|
4106
|
+
};
|
4107
|
+
// TEMPLATE FUNCTION _Iter_cat (from <iterator>)
|
4108
|
+
template<class _C, class _Ty, class _D> inline
|
4109
|
+
*************** template<class _RI, class _Ty, class _Rt
|
4110
|
+
*** 221,234 ****
|
4111
|
+
{return (reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>(
|
4112
|
+
_Y.base() - _N)); }
|
4113
|
+
// TEMPLATE CLASS istreambuf_iterator (from <iterator>)
|
4114
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
4115
|
+
class istreambuf_iterator
|
4116
|
+
! : public iterator<input_iterator_tag, _E, _Tr::off_type> {
|
4117
|
+
public:
|
4118
|
+
typedef istreambuf_iterator<_E, _Tr> _Myt;
|
4119
|
+
typedef _E char_type;
|
4120
|
+
typedef _Tr traits_type;
|
4121
|
+
! typedef _Tr::int_type int_type;
|
4122
|
+
typedef basic_streambuf<_E, _Tr> streambuf_type;
|
4123
|
+
typedef basic_istream<_E, _Tr> istream_type;
|
4124
|
+
istreambuf_iterator(streambuf_type *_Sb = 0) _THROW0()
|
4125
|
+
--- 221,234 ----
|
4126
|
+
{return (reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>(
|
4127
|
+
_Y.base() - _N)); }
|
4128
|
+
// TEMPLATE CLASS istreambuf_iterator (from <iterator>)
|
4129
|
+
! template<class _E, class _Tr >
|
4130
|
+
class istreambuf_iterator
|
4131
|
+
! : public iterator<input_iterator_tag, _E, typename _Tr::off_type> {
|
4132
|
+
public:
|
4133
|
+
typedef istreambuf_iterator<_E, _Tr> _Myt;
|
4134
|
+
typedef _E char_type;
|
4135
|
+
typedef _Tr traits_type;
|
4136
|
+
! typedef typename _Tr::int_type int_type;
|
4137
|
+
typedef basic_streambuf<_E, _Tr> streambuf_type;
|
4138
|
+
typedef basic_istream<_E, _Tr> istream_type;
|
4139
|
+
istreambuf_iterator(streambuf_type *_Sb = 0) _THROW0()
|
4140
|
+
*************** template<class _E, class _Tr> inline
|
4141
|
+
*** 286,292 ****
|
4142
|
+
const istreambuf_iterator<_E, _Tr>& _Y)
|
4143
|
+
{return (!(_X == _Y)); }
|
4144
|
+
// TEMPLATE CLASS ostreambuf_iterator (from <iterator>)
|
4145
|
+
! template<class _E, class _Tr = char_traits<_E> >
|
4146
|
+
class ostreambuf_iterator
|
4147
|
+
: public iterator<output_iterator_tag, void, void> {
|
4148
|
+
typedef ostreambuf_iterator<_E, _Tr> _Myt;
|
4149
|
+
--- 286,292 ----
|
4150
|
+
const istreambuf_iterator<_E, _Tr>& _Y)
|
4151
|
+
{return (!(_X == _Y)); }
|
4152
|
+
// TEMPLATE CLASS ostreambuf_iterator (from <iterator>)
|
4153
|
+
! template<class _E, class _Tr >
|
4154
|
+
class ostreambuf_iterator
|
4155
|
+
: public iterator<output_iterator_tag, void, void> {
|
4156
|
+
typedef ostreambuf_iterator<_E, _Tr> _Myt;
|
4157
|
+
Index: valarray
|
4158
|
+
===================================================================
|
4159
|
+
RCS file: /cvsroot/GxInclude/VcInclude/valarray,v
|
4160
|
+
retrieving revision 1.1.1.1
|
4161
|
+
retrieving revision 1.3
|
4162
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
4163
|
+
*** valarray 13 Jun 2001 19:32:06 -0000 1.1.1.1
|
4164
|
+
--- valarray 2 Nov 2007 19:15:19 -0000 1.3
|
4165
|
+
***************
|
4166
|
+
*** 8,13 ****
|
4167
|
+
--- 8,16 ----
|
4168
|
+
#define _VALARRAY_
|
4169
|
+
#include <cstring>
|
4170
|
+
#include <xstddef>
|
4171
|
+
+ #include <cmath>
|
4172
|
+
+
|
4173
|
+
+ #define __GCCXML_AVOID_MACRO_EXPANSION
|
4174
|
+
|
4175
|
+
#ifdef _MSC_VER
|
4176
|
+
#pragma pack(push,8)
|
4177
|
+
*************** public:
|
4178
|
+
*** 101,113 ****
|
4179
|
+
for (size_t _I = 0; ++_I < size(); )
|
4180
|
+
_Sum += _Ptr[_I];
|
4181
|
+
return (_Sum); }
|
4182
|
+
! _Ty min() const
|
4183
|
+
{_Ty _Min = _Ptr[0];
|
4184
|
+
for (size_t _I = 0; ++_I < size(); )
|
4185
|
+
if (_Ptr[_I] < _Min)
|
4186
|
+
_Min = _Ptr[_I];
|
4187
|
+
return (_Min); }
|
4188
|
+
! _Ty max() const
|
4189
|
+
{_Ty _Max = _Ptr[0];
|
4190
|
+
for (size_t _I = 0; ++_I < size(); )
|
4191
|
+
if (_Max < _Ptr[_I])
|
4192
|
+
--- 104,116 ----
|
4193
|
+
for (size_t _I = 0; ++_I < size(); )
|
4194
|
+
_Sum += _Ptr[_I];
|
4195
|
+
return (_Sum); }
|
4196
|
+
! _Ty min __GCCXML_AVOID_MACRO_EXPANSION() const
|
4197
|
+
{_Ty _Min = _Ptr[0];
|
4198
|
+
for (size_t _I = 0; ++_I < size(); )
|
4199
|
+
if (_Ptr[_I] < _Min)
|
4200
|
+
_Min = _Ptr[_I];
|
4201
|
+
return (_Min); }
|
4202
|
+
! _Ty max __GCCXML_AVOID_MACRO_EXPANSION() const
|
4203
|
+
{_Ty _Max = _Ptr[0];
|
4204
|
+
for (size_t _I = 0; ++_I < size(); )
|
4205
|
+
if (_Max < _Ptr[_I])
|
4206
|
+
Index: vector
|
4207
|
+
===================================================================
|
4208
|
+
RCS file: /cvsroot/GxInclude/VcInclude/vector,v
|
4209
|
+
retrieving revision 1.1.1.1
|
4210
|
+
retrieving revision 1.3
|
4211
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
4212
|
+
*** vector 13 Jun 2001 19:32:07 -0000 1.1.1.1
|
4213
|
+
--- vector 21 Oct 2007 19:06:49 -0000 1.3
|
4214
|
+
*************** template<class _Ty, class _A = allocator
|
4215
|
+
*** 21,33 ****
|
4216
|
+
public:
|
4217
|
+
typedef vector<_Ty, _A> _Myt;
|
4218
|
+
typedef _A allocator_type;
|
4219
|
+
! typedef _A::size_type size_type;
|
4220
|
+
! typedef _A::difference_type difference_type;
|
4221
|
+
! typedef _A::pointer _Tptr;
|
4222
|
+
! typedef _A::const_pointer _Ctptr;
|
4223
|
+
! typedef _A::reference reference;
|
4224
|
+
! typedef _A::const_reference const_reference;
|
4225
|
+
! typedef _A::value_type value_type;
|
4226
|
+
typedef _Tptr iterator;
|
4227
|
+
typedef _Ctptr const_iterator;
|
4228
|
+
typedef reverse_iterator<const_iterator, value_type,
|
4229
|
+
--- 21,33 ----
|
4230
|
+
public:
|
4231
|
+
typedef vector<_Ty, _A> _Myt;
|
4232
|
+
typedef _A allocator_type;
|
4233
|
+
! typedef typename _A::size_type size_type;
|
4234
|
+
! typedef typename _A::difference_type difference_type;
|
4235
|
+
! typedef typename _A::pointer _Tptr;
|
4236
|
+
! typedef typename _A::const_pointer _Ctptr;
|
4237
|
+
! typedef typename _A::reference reference;
|
4238
|
+
! typedef typename _A::const_reference const_reference;
|
4239
|
+
! typedef typename _A::value_type value_type;
|
4240
|
+
typedef _Tptr iterator;
|
4241
|
+
typedef _Ctptr const_iterator;
|
4242
|
+
typedef reverse_iterator<const_iterator, value_type,
|
4243
|
+
*************** protected:
|
4244
|
+
*** 246,251 ****
|
4245
|
+
--- 246,252 ----
|
4246
|
+
typedef unsigned int _Vbase;
|
4247
|
+
const int _VBITS = CHAR_BIT * sizeof (_Vbase);
|
4248
|
+
typedef allocator<_Vbase> _Bool_allocator;
|
4249
|
+
+ template <>
|
4250
|
+
class vector<_Bool, _Bool_allocator> {
|
4251
|
+
public:
|
4252
|
+
typedef _Bool_allocator _A;
|
4253
|
+
Index: winnt.h
|
4254
|
+
===================================================================
|
4255
|
+
RCS file: /cvsroot/GxInclude/VcInclude/winnt.h,v
|
4256
|
+
retrieving revision 1.1.1.1
|
4257
|
+
retrieving revision 1.2
|
4258
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
4259
|
+
*** winnt.h 13 Jun 2001 19:32:16 -0000 1.1.1.1
|
4260
|
+
--- winnt.h 3 Jul 2001 22:10:58 -0000 1.2
|
4261
|
+
*************** typedef unsigned long POINTER_64_INT;
|
4262
|
+
*** 92,104 ****
|
4263
|
+
|
4264
|
+
|
4265
|
+
#if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64)) && !defined(MIDL_PASS)
|
4266
|
+
! #define DECLSPEC_IMPORT __declspec(dllimport)
|
4267
|
+
#else
|
4268
|
+
#define DECLSPEC_IMPORT
|
4269
|
+
#endif
|
4270
|
+
|
4271
|
+
#if (_MSC_VER >= 1200)
|
4272
|
+
! #define DECLSPEC_NORETURN __declspec(noreturn)
|
4273
|
+
#else
|
4274
|
+
#define DECLSPEC_NORETURN
|
4275
|
+
#endif
|
4276
|
+
--- 92,104 ----
|
4277
|
+
|
4278
|
+
|
4279
|
+
#if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64)) && !defined(MIDL_PASS)
|
4280
|
+
! #define DECLSPEC_IMPORT
|
4281
|
+
#else
|
4282
|
+
#define DECLSPEC_IMPORT
|
4283
|
+
#endif
|
4284
|
+
|
4285
|
+
#if (_MSC_VER >= 1200)
|
4286
|
+
! #define DECLSPEC_NORETURN
|
4287
|
+
#else
|
4288
|
+
#define DECLSPEC_NORETURN
|
4289
|
+
#endif
|
4290
|
+
*************** Int64ShllMod32 (
|
4291
|
+
*** 527,539 ****
|
4292
|
+
DWORD ShiftCount
|
4293
|
+
)
|
4294
|
+
{
|
4295
|
+
- __asm {
|
4296
|
+
- mov ecx, ShiftCount
|
4297
|
+
- mov eax, dword ptr [Value]
|
4298
|
+
- mov edx, dword ptr [Value+4]
|
4299
|
+
- shld edx, eax, cl
|
4300
|
+
- shl eax, cl
|
4301
|
+
- }
|
4302
|
+
}
|
4303
|
+
|
4304
|
+
__inline LONGLONG
|
4305
|
+
--- 527,532 ----
|
4306
|
+
*************** Int64ShraMod32 (
|
4307
|
+
*** 543,555 ****
|
4308
|
+
DWORD ShiftCount
|
4309
|
+
)
|
4310
|
+
{
|
4311
|
+
- __asm {
|
4312
|
+
- mov ecx, ShiftCount
|
4313
|
+
- mov eax, dword ptr [Value]
|
4314
|
+
- mov edx, dword ptr [Value+4]
|
4315
|
+
- shrd eax, edx, cl
|
4316
|
+
- sar edx, cl
|
4317
|
+
- }
|
4318
|
+
}
|
4319
|
+
|
4320
|
+
__inline ULONGLONG
|
4321
|
+
--- 536,541 ----
|
4322
|
+
*************** Int64ShrlMod32 (
|
4323
|
+
*** 559,571 ****
|
4324
|
+
DWORD ShiftCount
|
4325
|
+
)
|
4326
|
+
{
|
4327
|
+
- __asm {
|
4328
|
+
- mov ecx, ShiftCount
|
4329
|
+
- mov eax, dword ptr [Value]
|
4330
|
+
- mov edx, dword ptr [Value+4]
|
4331
|
+
- shrd eax, edx, cl
|
4332
|
+
- shr edx, cl
|
4333
|
+
- }
|
4334
|
+
}
|
4335
|
+
|
4336
|
+
#pragma warning(default:4035)
|
4337
|
+
--- 545,550 ----
|
4338
|
+
*************** __jump_unwind (
|
4339
|
+
*** 1516,1527 ****
|
4340
|
+
|
4341
|
+
#if !defined(MIDL_PASS) && defined(_M_IX86)
|
4342
|
+
#pragma warning (disable:4035) // disable 4035 (function must return something)
|
4343
|
+
! _inline PVOID GetFiberData( void ) { __asm {
|
4344
|
+
! mov eax, fs:[0x10]
|
4345
|
+
! mov eax,[eax]
|
4346
|
+
! }
|
4347
|
+
! }
|
4348
|
+
! _inline PVOID GetCurrentFiber( void ) { __asm mov eax, fs:[0x10] }
|
4349
|
+
|
4350
|
+
#pragma warning (default:4035) // Reenable it
|
4351
|
+
#endif
|
4352
|
+
--- 1495,1502 ----
|
4353
|
+
|
4354
|
+
#if !defined(MIDL_PASS) && defined(_M_IX86)
|
4355
|
+
#pragma warning (disable:4035) // disable 4035 (function must return something)
|
4356
|
+
! _inline PVOID GetFiberData( void ) {}
|
4357
|
+
! _inline PVOID GetCurrentFiber( void ) {}
|
4358
|
+
|
4359
|
+
#pragma warning (default:4035) // Reenable it
|
4360
|
+
#endif
|
4361
|
+
Index: xlocale
|
4362
|
+
===================================================================
|
4363
|
+
RCS file: /cvsroot/GxInclude/VcInclude/xlocale,v
|
4364
|
+
retrieving revision 1.1.1.1
|
4365
|
+
retrieving revision 1.2
|
4366
|
+
diff -c -3 -p -r1.1.1.1 -r1.2
|
4367
|
+
*** xlocale 13 Jun 2001 19:32:20 -0000 1.1.1.1
|
4368
|
+
--- xlocale 21 Oct 2007 19:06:49 -0000 1.2
|
4369
|
+
*************** private:
|
4370
|
+
*** 293,298 ****
|
4371
|
+
--- 293,299 ----
|
4372
|
+
template<class _E, class _To, class _St>
|
4373
|
+
locale::id codecvt<_E, _To, _St>::id;
|
4374
|
+
// CLASS codecvt<wchar_t, char, mbstate_t>
|
4375
|
+
+ template<>
|
4376
|
+
class _CRTIMP codecvt<wchar_t, char, mbstate_t> : public codecvt_base {
|
4377
|
+
public:
|
4378
|
+
typedef wchar_t _E;
|
4379
|
+
*************** template<class _E>
|
4380
|
+
*** 516,521 ****
|
4381
|
+
--- 517,523 ----
|
4382
|
+
locale::id ctype<_E>::id;
|
4383
|
+
|
4384
|
+
// CLASS ctype<char>
|
4385
|
+
+ template <>
|
4386
|
+
class _CRTIMP ctype<char> : public ctype_base {
|
4387
|
+
public:
|
4388
|
+
typedef char _E;
|
4389
|
+
Index: xstring
|
4390
|
+
===================================================================
|
4391
|
+
RCS file: /cvsroot/GxInclude/VcInclude/xstring,v
|
4392
|
+
retrieving revision 1.1.1.1
|
4393
|
+
retrieving revision 1.3
|
4394
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
4395
|
+
*** xstring 13 Jun 2001 19:32:20 -0000 1.1.1.1
|
4396
|
+
--- xstring 21 Oct 2007 19:06:49 -0000 1.3
|
4397
|
+
*************** template<class _E,
|
4398
|
+
*** 22,36 ****
|
4399
|
+
class basic_string {
|
4400
|
+
public:
|
4401
|
+
typedef basic_string<_E, _Tr, _A> _Myt;
|
4402
|
+
! typedef _A::size_type size_type;
|
4403
|
+
! typedef _A::difference_type difference_type;
|
4404
|
+
! typedef _A::pointer pointer;
|
4405
|
+
! typedef _A::const_pointer const_pointer;
|
4406
|
+
! typedef _A::reference reference;
|
4407
|
+
! typedef _A::const_reference const_reference;
|
4408
|
+
! typedef _A::value_type value_type;
|
4409
|
+
! typedef _A::pointer iterator;
|
4410
|
+
! typedef _A::const_pointer const_iterator;
|
4411
|
+
typedef reverse_iterator<const_iterator, value_type,
|
4412
|
+
const_reference, const_pointer, difference_type>
|
4413
|
+
const_reverse_iterator;
|
4414
|
+
--- 22,36 ----
|
4415
|
+
class basic_string {
|
4416
|
+
public:
|
4417
|
+
typedef basic_string<_E, _Tr, _A> _Myt;
|
4418
|
+
! typedef typename _A::size_type size_type;
|
4419
|
+
! typedef typename _A::difference_type difference_type;
|
4420
|
+
! typedef typename _A::pointer pointer;
|
4421
|
+
! typedef typename _A::const_pointer const_pointer;
|
4422
|
+
! typedef typename _A::reference reference;
|
4423
|
+
! typedef typename _A::const_reference const_reference;
|
4424
|
+
! typedef typename _A::value_type value_type;
|
4425
|
+
! typedef typename _A::pointer iterator;
|
4426
|
+
! typedef typename _A::const_pointer const_iterator;
|
4427
|
+
typedef reverse_iterator<const_iterator, value_type,
|
4428
|
+
const_reference, const_pointer, difference_type>
|
4429
|
+
const_reverse_iterator;
|
4430
|
+
*************** private:
|
4431
|
+
*** 596,602 ****
|
4432
|
+
size_type _Len, _Res;
|
4433
|
+
};
|
4434
|
+
template<class _E, class _Tr, class _A>
|
4435
|
+
! const basic_string<_E, _Tr, _A>::size_type
|
4436
|
+
basic_string<_E, _Tr, _A>::npos = -1;
|
4437
|
+
|
4438
|
+
#ifdef _DLL
|
4439
|
+
--- 596,602 ----
|
4440
|
+
size_type _Len, _Res;
|
4441
|
+
};
|
4442
|
+
template<class _E, class _Tr, class _A>
|
4443
|
+
! const typename basic_string<_E, _Tr, _A>::size_type
|
4444
|
+
basic_string<_E, _Tr, _A>::npos = -1;
|
4445
|
+
|
4446
|
+
#ifdef _DLL
|
4447
|
+
Index: xtree
|
4448
|
+
===================================================================
|
4449
|
+
RCS file: /cvsroot/GxInclude/VcInclude/xtree,v
|
4450
|
+
retrieving revision 1.1.1.1
|
4451
|
+
retrieving revision 1.3
|
4452
|
+
diff -c -3 -p -r1.1.1.1 -r1.3
|
4453
|
+
*** xtree 13 Jun 2001 19:32:20 -0000 1.1.1.1
|
4454
|
+
--- xtree 21 Oct 2007 19:06:49 -0000 1.3
|
4455
|
+
*************** protected:
|
4456
|
+
*** 35,41 ****
|
4457
|
+
static _Rbref _Color(_Nodeptr _P)
|
4458
|
+
{return ((_Rbref)(*_P)._Color); }
|
4459
|
+
static _Keyref _Key(_Nodeptr _P)
|
4460
|
+
! {return (_Kfn()(_Value(_P))); }
|
4461
|
+
static _Nodepref _Left(_Nodeptr _P)
|
4462
|
+
{return ((_Nodepref)(*_P)._Left); }
|
4463
|
+
static _Nodepref _Parent(_Nodeptr _P)
|
4464
|
+
--- 35,41 ----
|
4465
|
+
static _Rbref _Color(_Nodeptr _P)
|
4466
|
+
{return ((_Rbref)(*_P)._Color); }
|
4467
|
+
static _Keyref _Key(_Nodeptr _P)
|
4468
|
+
! {return ((_Kfn())(_Value(_P))); }
|
4469
|
+
static _Nodepref _Left(_Nodeptr _P)
|
4470
|
+
{return ((_Nodepref)(*_P)._Left); }
|
4471
|
+
static _Nodepref _Parent(_Nodeptr _P)
|
4472
|
+
*************** public:
|
4473
|
+
*** 48,55 ****
|
4474
|
+
typedef _Tree<_K, _Ty, _Kfn, _Pr, _A> _Myt;
|
4475
|
+
typedef _K key_type;
|
4476
|
+
typedef _Ty value_type;
|
4477
|
+
! typedef _A::size_type size_type;
|
4478
|
+
! typedef _A::difference_type difference_type;
|
4479
|
+
typedef _POINTER_X(_Ty, _A) _Tptr;
|
4480
|
+
typedef _POINTER_X(const _Ty, _A) _Ctptr;
|
4481
|
+
typedef _REFERENCE_X(_Ty, _A) reference;
|
4482
|
+
--- 48,55 ----
|
4483
|
+
typedef _Tree<_K, _Ty, _Kfn, _Pr, _A> _Myt;
|
4484
|
+
typedef _K key_type;
|
4485
|
+
typedef _Ty value_type;
|
4486
|
+
! typedef typename _A::size_type size_type;
|
4487
|
+
! typedef typename _A::difference_type difference_type;
|
4488
|
+
typedef _POINTER_X(_Ty, _A) _Tptr;
|
4489
|
+
typedef _POINTER_X(const _Ty, _A) _Ctptr;
|
4490
|
+
typedef _REFERENCE_X(_Ty, _A) reference;
|
4491
|
+
*************** public:
|
4492
|
+
*** 122,146 ****
|
4493
|
+
iterator(_Nodeptr _P)
|
4494
|
+
: const_iterator(_P) {}
|
4495
|
+
reference operator*() const
|
4496
|
+
! {return (_Value(_Ptr)); }
|
4497
|
+
_Tptr operator->() const
|
4498
|
+
{return (&**this); }
|
4499
|
+
iterator& operator++()
|
4500
|
+
! {_Inc();
|
4501
|
+
return (*this); }
|
4502
|
+
iterator operator++(int)
|
4503
|
+
{iterator _Tmp = *this;
|
4504
|
+
++*this;
|
4505
|
+
return (_Tmp); }
|
4506
|
+
iterator& operator--()
|
4507
|
+
! {_Dec();
|
4508
|
+
return (*this); }
|
4509
|
+
iterator operator--(int)
|
4510
|
+
{iterator _Tmp = *this;
|
4511
|
+
--*this;
|
4512
|
+
return (_Tmp); }
|
4513
|
+
bool operator==(const iterator& _X) const
|
4514
|
+
! {return (_Ptr == _X._Ptr); }
|
4515
|
+
bool operator!=(const iterator& _X) const
|
4516
|
+
{return (!(*this == _X)); }
|
4517
|
+
};
|
4518
|
+
--- 122,146 ----
|
4519
|
+
iterator(_Nodeptr _P)
|
4520
|
+
: const_iterator(_P) {}
|
4521
|
+
reference operator*() const
|
4522
|
+
! {return (_Value(this->_Ptr)); }
|
4523
|
+
_Tptr operator->() const
|
4524
|
+
{return (&**this); }
|
4525
|
+
iterator& operator++()
|
4526
|
+
! {this->_Inc();
|
4527
|
+
return (*this); }
|
4528
|
+
iterator operator++(int)
|
4529
|
+
{iterator _Tmp = *this;
|
4530
|
+
++*this;
|
4531
|
+
return (_Tmp); }
|
4532
|
+
iterator& operator--()
|
4533
|
+
! {this->_Dec();
|
4534
|
+
return (*this); }
|
4535
|
+
iterator operator--(int)
|
4536
|
+
{iterator _Tmp = *this;
|
4537
|
+
--*this;
|
4538
|
+
return (_Tmp); }
|
4539
|
+
bool operator==(const iterator& _X) const
|
4540
|
+
! {return (this->_Ptr == _X._Ptr); }
|
4541
|
+
bool operator!=(const iterator& _X) const
|
4542
|
+
{return (!(*this == _X)); }
|
4543
|
+
};
|
4544
|
+
*************** protected:
|
4545
|
+
*** 592,598 ****
|
4546
|
+
size_type _Size;
|
4547
|
+
};
|
4548
|
+
template<class _K, class _Ty, class _Kfn, class _Pr, class _A>
|
4549
|
+
! _Tree<_K, _Ty, _Kfn, _Pr, _A>::_Nodeptr
|
4550
|
+
_Tree<_K, _Ty, _Kfn, _Pr, _A>::_Nil = 0;
|
4551
|
+
template<class _K, class _Ty, class _Kfn, class _Pr, class _A>
|
4552
|
+
size_t _Tree<_K, _Ty, _Kfn, _Pr, _A>::_Nilrefs = 0;
|
4553
|
+
--- 592,598 ----
|
4554
|
+
size_type _Size;
|
4555
|
+
};
|
4556
|
+
template<class _K, class _Ty, class _Kfn, class _Pr, class _A>
|
4557
|
+
! typename _Tree<_K, _Ty, _Kfn, _Pr, _A>::_Nodeptr
|
4558
|
+
_Tree<_K, _Ty, _Kfn, _Pr, _A>::_Nil = 0;
|
4559
|
+
template<class _K, class _Ty, class _Kfn, class _Pr, class _A>
|
4560
|
+
size_t _Tree<_K, _Ty, _Kfn, _Pr, _A>::_Nilrefs = 0;
|