gccxml_gem 0.9-x86-cygwin
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +75 -0
- data/bin/gccxml.exe +0 -0
- data/bin/gccxml_cc1plus.exe +0 -0
- data/gccxml.rb +50 -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/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/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/find_flags +105 -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 +137 -0
- data/share/gccxml-0.9/Sun/5.8/adaptation.patch +168 -0
- data/share/gccxml-0.9/Sun/README +8 -0
- data/share/gccxml-0.9/Sun/adapt_headers.sh +24 -0
- data/share/gccxml-0.9/Sun/find_flags +69 -0
- data/share/gccxml-0.9/gccxml_config +2 -0
- data/share/gccxml-0.9/gccxml_find_flags +93 -0
- data/share/man/man1/gccxml.1 +246 -0
- metadata +324 -0
@@ -0,0 +1,431 @@
|
|
1
|
+
#ifndef __FSTREAM_H
|
2
|
+
#define __FSTREAM_H
|
3
|
+
#pragma option push -b -a8 -pc -Vx- -Ve- -w-inl -w-aus -w-sig
|
4
|
+
// -*- C++ -*-
|
5
|
+
#ifndef __STD_FSTREAM__
|
6
|
+
#define __STD_FSTREAM__
|
7
|
+
|
8
|
+
/***************************************************************************
|
9
|
+
*
|
10
|
+
* fstream -- Declarations for the Standard Library file bufs and streams
|
11
|
+
*
|
12
|
+
***************************************************************************
|
13
|
+
*
|
14
|
+
* Copyright (c) 1994-1999 Rogue Wave Software, Inc. All Rights Reserved.
|
15
|
+
*
|
16
|
+
* This computer software is owned by Rogue Wave Software, Inc. and is
|
17
|
+
* protected by U.S. copyright laws and other laws and by international
|
18
|
+
* treaties. This computer software is furnished by Rogue Wave Software,
|
19
|
+
* Inc. pursuant to a written license agreement and may be used, copied,
|
20
|
+
* transmitted, and stored only in accordance with the terms of such
|
21
|
+
* license and with the inclusion of the above copyright notice. This
|
22
|
+
* computer software or any other copies thereof may not be provided or
|
23
|
+
* otherwise made available to any other person.
|
24
|
+
*
|
25
|
+
* U.S. Government Restricted Rights. This computer software is provided
|
26
|
+
* with Restricted Rights. Use, duplication, or disclosure by the
|
27
|
+
* Government is subject to restrictions as set forth in subparagraph (c)
|
28
|
+
* (1) (ii) of The Rights in Technical Data and Computer Software clause
|
29
|
+
* at DFARS 252.227-7013 or subparagraphs (c) (1) and (2) of the
|
30
|
+
* Commercial Computer Software � Restricted Rights at 48 CFR 52.227-19,
|
31
|
+
* as applicable. Manufacturer is Rogue Wave Software, Inc., 5500
|
32
|
+
* Flatiron Parkway, Boulder, Colorado 80301 USA.
|
33
|
+
*
|
34
|
+
**************************************************************************/
|
35
|
+
|
36
|
+
#include <stdcomp.h>
|
37
|
+
|
38
|
+
#include <istream>
|
39
|
+
#include <ostream>
|
40
|
+
#include <streambuf>
|
41
|
+
|
42
|
+
#ifndef _RWSTD_NO_NEW_HEADER
|
43
|
+
#include <cstdlib>
|
44
|
+
#else
|
45
|
+
#include <stdlib.h>
|
46
|
+
#endif
|
47
|
+
|
48
|
+
#ifndef _RWSTD_STRICT_ANSI
|
49
|
+
# if defined (_MSC_VER) || defined (__TURBOC__)
|
50
|
+
# include <io.h>
|
51
|
+
# else
|
52
|
+
#ifdef _HPACC_
|
53
|
+
using std::off_t;
|
54
|
+
using std::ssize_t;
|
55
|
+
using std::pid_t;
|
56
|
+
using std::useconds_t;
|
57
|
+
using std::mode_t;
|
58
|
+
#endif
|
59
|
+
# include <unistd.h>
|
60
|
+
# endif // defined (_MSC_VER) || defined (__TURBOC__)
|
61
|
+
# include <fcntl.h>
|
62
|
+
#else
|
63
|
+
# ifndef _RWSTD_NO_EXTENSION
|
64
|
+
# define _RWSTD_NO_EXTENSION 1
|
65
|
+
# endif
|
66
|
+
#endif // _RWSTD_STRICT_ANSI
|
67
|
+
|
68
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
69
|
+
namespace __rwstd {
|
70
|
+
#endif
|
71
|
+
|
72
|
+
#ifndef _RWSTD_STRICT_ANSI
|
73
|
+
extern const int _RWSTDExport __rwOpenTable[32];
|
74
|
+
#else
|
75
|
+
extern const char _RWSTDExportFunc(*) __rwOpenTable[32];
|
76
|
+
#endif
|
77
|
+
|
78
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
79
|
+
} namespace std {
|
80
|
+
#endif
|
81
|
+
|
82
|
+
/*
|
83
|
+
* Class basic_filebuf
|
84
|
+
*/
|
85
|
+
|
86
|
+
template<class charT, class traits>
|
87
|
+
class _RWSTDExportTemplate basic_filebuf : public basic_streambuf<charT, traits> {
|
88
|
+
|
89
|
+
#ifndef _RWSTD_STRICT_ANSI
|
90
|
+
typedef int __file_type;
|
91
|
+
#else
|
92
|
+
typedef FILE* __file_type;
|
93
|
+
#endif
|
94
|
+
|
95
|
+
typedef basic_ios<charT, traits> ios_type;
|
96
|
+
typedef _TYPENAME traits::state_type state_t;
|
97
|
+
|
98
|
+
public:
|
99
|
+
//
|
100
|
+
// Types:
|
101
|
+
//
|
102
|
+
typedef charT char_type;
|
103
|
+
typedef _TYPENAME traits::int_type int_type;
|
104
|
+
typedef _TYPENAME traits::pos_type pos_type;
|
105
|
+
typedef _TYPENAME traits::off_type off_type;
|
106
|
+
typedef traits traits_type;
|
107
|
+
|
108
|
+
basic_filebuf();
|
109
|
+
virtual ~basic_filebuf();
|
110
|
+
|
111
|
+
bool is_open() const;
|
112
|
+
basic_filebuf<charT, traits> *
|
113
|
+
open(const char *s, ios_base::openmode, long protection = 0666 );
|
114
|
+
basic_filebuf<charT, traits> *close();
|
115
|
+
basic_filebuf(__file_type fd);
|
116
|
+
|
117
|
+
#ifndef _RWSTD_NO_EXTENSION
|
118
|
+
basic_filebuf<charT, traits> *open(int fd);
|
119
|
+
int fd() const { return __file;}
|
120
|
+
#endif //_RWSTD_NO_EXTENSION
|
121
|
+
|
122
|
+
protected:
|
123
|
+
|
124
|
+
virtual streamsize showmanyc();
|
125
|
+
virtual int_type underflow();
|
126
|
+
virtual int_type overflow(int_type c = traits::eof());
|
127
|
+
virtual int_type pbackfail(int_type c = traits::eof());
|
128
|
+
|
129
|
+
virtual basic_streambuf<charT,traits>*
|
130
|
+
setbuf(char_type *s,streamsize n);
|
131
|
+
|
132
|
+
virtual pos_type seekoff(off_type off,
|
133
|
+
ios_base::seekdir way,
|
134
|
+
ios_base::openmode which =
|
135
|
+
ios_base::in | ios_base::out);
|
136
|
+
virtual pos_type seekpos(pos_type sp,
|
137
|
+
ios_base::openmode which =
|
138
|
+
ios_base::in | ios_base::out);
|
139
|
+
|
140
|
+
virtual int sync( );
|
141
|
+
virtual streamsize xsputn(const char_type *s, streamsize n);
|
142
|
+
|
143
|
+
private:
|
144
|
+
|
145
|
+
// Deal with CR/LF translation on win32
|
146
|
+
off_type __get_chars(charT* start, charT* finish)
|
147
|
+
{
|
148
|
+
#ifndef __WIN32__
|
149
|
+
return finish-start;
|
150
|
+
#else
|
151
|
+
if (this->mode_ & ios_base::binary)
|
152
|
+
return finish-start;
|
153
|
+
|
154
|
+
#ifndef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE
|
155
|
+
charT eol = use_facet< ctype<charT> >(this->getloc()).widen('\n');
|
156
|
+
#else
|
157
|
+
charT eol = use_facet( this->getloc(), (ctype<charT>* )0).widen('\n');
|
158
|
+
#endif
|
159
|
+
|
160
|
+
off_type n=0;
|
161
|
+
while (start != finish)
|
162
|
+
{
|
163
|
+
if (*start++ == eol)
|
164
|
+
n+=2;
|
165
|
+
else
|
166
|
+
++n;
|
167
|
+
}
|
168
|
+
return n;
|
169
|
+
#endif // __WIN32__
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
off_type __file_seek(__file_type f, long offset, int origin)
|
174
|
+
{
|
175
|
+
#ifndef _RWSTD_STRICT_ANSI
|
176
|
+
return lseek(f, offset, origin);
|
177
|
+
#else
|
178
|
+
fseek(f, offset, origin);
|
179
|
+
return ftell(f);
|
180
|
+
#endif // _RWSTD_STRICT_ANSI
|
181
|
+
}
|
182
|
+
|
183
|
+
int __file_close(__file_type f)
|
184
|
+
{
|
185
|
+
#ifndef _RWSTD_STRICT_ANSI
|
186
|
+
return ::close(f);
|
187
|
+
#else
|
188
|
+
return fclose(f);
|
189
|
+
#endif // _RWSTD_STRICT_ANSI
|
190
|
+
}
|
191
|
+
|
192
|
+
bool __file_write(__file_type f, const char* buffer, size_t size, size_t count)
|
193
|
+
{
|
194
|
+
#ifndef _RWSTD_STRICT_ANSI
|
195
|
+
return (size_t) ::write(f,buffer,size*count) == size*count ? true : false;
|
196
|
+
#else
|
197
|
+
return fwrite(buffer,size,count,f) == count ? true : false;
|
198
|
+
#endif // _RWSTD_STRICT_ANSI
|
199
|
+
}
|
200
|
+
|
201
|
+
size_t __file_read(__file_type f, char* buffer, size_t size, size_t count)
|
202
|
+
{
|
203
|
+
#ifndef _RWSTD_STRICT_ANSI
|
204
|
+
int n = ::read(f,buffer,size*count);
|
205
|
+
return n < 0 ? 0 : (size_t)n;
|
206
|
+
#else
|
207
|
+
return fread(buffer,size,count,f)*size;
|
208
|
+
#endif
|
209
|
+
}
|
210
|
+
|
211
|
+
__file_type __closed()
|
212
|
+
{
|
213
|
+
#ifndef _RWSTD_STRICT_ANSI
|
214
|
+
return -1;
|
215
|
+
#else
|
216
|
+
return 0;
|
217
|
+
#endif
|
218
|
+
}
|
219
|
+
|
220
|
+
bool __file_is_std(__file_type f)
|
221
|
+
{
|
222
|
+
#ifndef _RWSTD_STRICT_ANSI
|
223
|
+
return f < 3;
|
224
|
+
#else
|
225
|
+
return (f == stdin || f == stdout || f == stderr);
|
226
|
+
#endif
|
227
|
+
}
|
228
|
+
|
229
|
+
__file_type __file;
|
230
|
+
bool __read_buff;
|
231
|
+
bool __write_buff;
|
232
|
+
streamsize __last_numb_read;
|
233
|
+
streamsize __rwBufferSize;
|
234
|
+
streamsize __absolute_pos;
|
235
|
+
state_t *__state_beg;
|
236
|
+
state_t *__state_end;
|
237
|
+
char_type *__data;
|
238
|
+
};
|
239
|
+
template<class charT, class traits>
|
240
|
+
class _RWSTDExportTemplate basic_ifstream : public basic_istream<charT, traits> {
|
241
|
+
|
242
|
+
public:
|
243
|
+
//
|
244
|
+
// Types:
|
245
|
+
//
|
246
|
+
typedef charT char_type;
|
247
|
+
typedef _TYPENAME traits::int_type int_type;
|
248
|
+
typedef _TYPENAME traits::pos_type pos_type;
|
249
|
+
typedef _TYPENAME traits::off_type off_type;
|
250
|
+
typedef traits traits_type;
|
251
|
+
typedef basic_ios<charT, traits> ios_type;
|
252
|
+
|
253
|
+
public:
|
254
|
+
|
255
|
+
basic_ifstream();
|
256
|
+
_EXPLICIT basic_ifstream(const char *s,
|
257
|
+
ios_base::openmode mode = ios_base::in,
|
258
|
+
long protection = 0666 );
|
259
|
+
|
260
|
+
#ifndef _RWSTD_NO_EXTENSION
|
261
|
+
_EXPLICIT basic_ifstream(int fd);
|
262
|
+
basic_ifstream(int fd, char_type *buf, int len);
|
263
|
+
#endif //_RWSTD_NO_EXTENSION
|
264
|
+
|
265
|
+
virtual ~basic_ifstream();
|
266
|
+
basic_filebuf<charT, traits> *rdbuf() const;
|
267
|
+
bool is_open();
|
268
|
+
void open(const char *s, ios_base::openmode mode = ios_base::in,
|
269
|
+
long protection = 0666 );
|
270
|
+
|
271
|
+
void close();
|
272
|
+
protected:
|
273
|
+
|
274
|
+
private:
|
275
|
+
basic_filebuf<charT, traits> __fb;
|
276
|
+
};
|
277
|
+
template<class charT, class traits>
|
278
|
+
class _RWSTDExportTemplate basic_ofstream : public basic_ostream<charT, traits> {
|
279
|
+
|
280
|
+
public:
|
281
|
+
//
|
282
|
+
//Types:
|
283
|
+
//
|
284
|
+
typedef charT char_type;
|
285
|
+
typedef _TYPENAME traits::int_type int_type;
|
286
|
+
typedef _TYPENAME traits::pos_type pos_type;
|
287
|
+
typedef _TYPENAME traits::off_type off_type;
|
288
|
+
typedef traits traits_type;
|
289
|
+
|
290
|
+
typedef basic_ios<charT, traits> ios_type;
|
291
|
+
|
292
|
+
public:
|
293
|
+
|
294
|
+
basic_ofstream();
|
295
|
+
_EXPLICIT basic_ofstream(const char *s, ios_base::openmode mode =
|
296
|
+
ios_base::out,
|
297
|
+
long protection = 0666 );
|
298
|
+
|
299
|
+
#ifndef _RWSTD_NO_EXTENSION
|
300
|
+
_EXPLICIT basic_ofstream(int fd);
|
301
|
+
basic_ofstream(int fd, char_type *buf, int len);
|
302
|
+
#endif //_RWSTD_NO_EXTENSION
|
303
|
+
|
304
|
+
virtual ~basic_ofstream();
|
305
|
+
|
306
|
+
basic_filebuf<charT, traits> *rdbuf() const;
|
307
|
+
bool is_open();
|
308
|
+
|
309
|
+
void open(const char *s, ios_base::openmode mode =
|
310
|
+
ios_base::out,
|
311
|
+
long protection = 0666 );
|
312
|
+
|
313
|
+
void close();
|
314
|
+
protected:
|
315
|
+
|
316
|
+
private:
|
317
|
+
basic_filebuf<charT, traits> __fb;
|
318
|
+
};
|
319
|
+
|
320
|
+
/*
|
321
|
+
* Class basic_fstream
|
322
|
+
*/
|
323
|
+
|
324
|
+
template<class charT, class traits>
|
325
|
+
class _RWSTDExportTemplate basic_fstream : public basic_iostream<charT, traits> {
|
326
|
+
|
327
|
+
public:
|
328
|
+
//
|
329
|
+
// Types:
|
330
|
+
//
|
331
|
+
typedef charT char_type;
|
332
|
+
typedef _TYPENAME traits::int_type int_type;
|
333
|
+
typedef _TYPENAME traits::pos_type pos_type;
|
334
|
+
typedef _TYPENAME traits::off_type off_type;
|
335
|
+
typedef traits traits_type;
|
336
|
+
typedef basic_ios<charT, traits> ios_type;
|
337
|
+
|
338
|
+
basic_fstream();
|
339
|
+
_EXPLICIT basic_fstream(const char *s, ios_base::openmode mode =
|
340
|
+
ios_base::in | ios_base::out,
|
341
|
+
long protection= 0666 );
|
342
|
+
|
343
|
+
#ifndef _RWSTD_NO_EXTENSION
|
344
|
+
_EXPLICIT basic_fstream(int fd);
|
345
|
+
basic_fstream(int fd, char_type *buf, int len);
|
346
|
+
#endif //_RWSTD_NO_EXTENSION
|
347
|
+
|
348
|
+
virtual ~basic_fstream();
|
349
|
+
|
350
|
+
basic_filebuf<charT, traits> *rdbuf() const;
|
351
|
+
bool is_open();
|
352
|
+
void open(const char *s, ios_base::openmode mode =
|
353
|
+
ios_base::in | ios_base::out,
|
354
|
+
long protection = 0666 );
|
355
|
+
|
356
|
+
void close();
|
357
|
+
protected:
|
358
|
+
|
359
|
+
private:
|
360
|
+
basic_filebuf<charT, traits> __fb;
|
361
|
+
};
|
362
|
+
#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
363
|
+
typedef basic_filebuf<char> filebuf;
|
364
|
+
#else
|
365
|
+
typedef basic_filebuf<char, char_traits<char> > filebuf;
|
366
|
+
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
367
|
+
|
368
|
+
#ifndef _RWSTD_NO_WIDE_CHAR
|
369
|
+
#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
370
|
+
typedef basic_filebuf<wchar_t> wfilebuf;
|
371
|
+
#else
|
372
|
+
typedef basic_filebuf<wchar_t, char_traits<wchar_t> > wfilebuf;
|
373
|
+
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
374
|
+
#endif // _RWSTD_NO_WIDE_CHAR
|
375
|
+
#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
376
|
+
typedef basic_ifstream<char> ifstream;
|
377
|
+
#else
|
378
|
+
typedef basic_ifstream<char, char_traits<char> > ifstream;
|
379
|
+
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
380
|
+
|
381
|
+
#ifndef _RWSTD_NO_WIDE_CHAR
|
382
|
+
#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
383
|
+
typedef basic_ifstream<wchar_t> wifstream;
|
384
|
+
#else
|
385
|
+
typedef basic_ifstream<wchar_t, char_traits<wchar_t> > wifstream;
|
386
|
+
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
387
|
+
#endif // _RWSTD_NO_WIDE_CHAR
|
388
|
+
#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
389
|
+
typedef basic_ofstream<char> ofstream;
|
390
|
+
#else
|
391
|
+
typedef basic_ofstream<char, char_traits<char> > ofstream;
|
392
|
+
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
393
|
+
|
394
|
+
#ifndef _RWSTD_NO_WIDE_CHAR
|
395
|
+
#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
396
|
+
typedef basic_ofstream<wchar_t> wofstream;
|
397
|
+
#else
|
398
|
+
typedef basic_ofstream<wchar_t, char_traits<wchar_t> > wofstream;
|
399
|
+
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
|
400
|
+
#endif // _RWSTD_NO_WIDE_CHAR
|
401
|
+
|
402
|
+
#ifndef _RWSTD_NO_DEFAULT_TEMPLATES
|
403
|
+
typedef basic_fstream<char> fstream;
|
404
|
+
#else
|
405
|
+
typedef basic_fstream<char, char_traits<char> > fstream;
|
406
|
+
#endif // _RWSTD_NO_DEFAULT_TEMPLATES
|
407
|
+
|
408
|
+
#ifndef _RWSTD_NO_WIDE_CHAR
|
409
|
+
#ifndef _RWSTD_NO_DEFAULT_TEMPLATES
|
410
|
+
typedef basic_fstream<wchar_t> wfstream;
|
411
|
+
#else
|
412
|
+
typedef basic_fstream<wchar_t, char_traits<wchar_t> > wfstream;
|
413
|
+
#endif // _RWSTD_NO_DEFAULT_TEMPLATES
|
414
|
+
#endif // _RWSTD_NO_WIDE_CHAR
|
415
|
+
|
416
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
417
|
+
}
|
418
|
+
#endif
|
419
|
+
|
420
|
+
#ifdef _RWSTD_COMPILE_INSTANTIATE
|
421
|
+
#include <fstream.cc>
|
422
|
+
#endif
|
423
|
+
|
424
|
+
#endif //__STD_FSTREAM__
|
425
|
+
|
426
|
+
#ifndef __USING_STD_NAMES__
|
427
|
+
using namespace std;
|
428
|
+
#endif
|
429
|
+
|
430
|
+
#pragma option pop
|
431
|
+
#endif /* __FSTREAM_H */
|
@@ -0,0 +1,166 @@
|
|
1
|
+
#ifndef __NEW_H
|
2
|
+
#define __NEW_H
|
3
|
+
#pragma option push -b -a8 -pc -Vx- -Ve- -w-inl -w-aus -w-sig
|
4
|
+
// -*- C++ -*-
|
5
|
+
#if !defined(_HPACC_)
|
6
|
+
#ifndef __STD_NEW
|
7
|
+
#define __STD_NEW
|
8
|
+
|
9
|
+
/***************************************************************************
|
10
|
+
*
|
11
|
+
* new - declarations for the Standard Library new header
|
12
|
+
*
|
13
|
+
***************************************************************************
|
14
|
+
*
|
15
|
+
* Copyright (c) 1994-1999 Rogue Wave Software, Inc. All Rights Reserved.
|
16
|
+
*
|
17
|
+
* This computer software is owned by Rogue Wave Software, Inc. and is
|
18
|
+
* protected by U.S. copyright laws and other laws and by international
|
19
|
+
* treaties. This computer software is furnished by Rogue Wave Software,
|
20
|
+
* Inc. pursuant to a written license agreement and may be used, copied,
|
21
|
+
* transmitted, and stored only in accordance with the terms of such
|
22
|
+
* license and with the inclusion of the above copyright notice. This
|
23
|
+
* computer software or any other copies thereof may not be provided or
|
24
|
+
* otherwise made available to any other person.
|
25
|
+
*
|
26
|
+
* U.S. Government Restricted Rights. This computer software is provided
|
27
|
+
* with Restricted Rights. Use, duplication, or disclosure by the
|
28
|
+
* Government is subject to restrictions as set forth in subparagraph (c)
|
29
|
+
* (1) (ii) of The Rights in Technical Data and Computer Software clause
|
30
|
+
* at DFARS 252.227-7013 or subparagraphs (c) (1) and (2) of the
|
31
|
+
* Commercial Computer Software � Restricted Rights at 48 CFR 52.227-19,
|
32
|
+
* as applicable. Manufacturer is Rogue Wave Software, Inc., 5500
|
33
|
+
* Flatiron Parkway, Boulder, Colorado 80301 USA.
|
34
|
+
*
|
35
|
+
**************************************************************************/
|
36
|
+
|
37
|
+
#include <stdcomp.h>
|
38
|
+
#include <rw/stddefs.h>
|
39
|
+
#include <exception>
|
40
|
+
#include <alloc.h> // __BORLANDC__ needed for malloc
|
41
|
+
|
42
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
43
|
+
namespace __rwstd {
|
44
|
+
#endif
|
45
|
+
|
46
|
+
extern const char _RWSTDExportFunc(*) __rw_stdexcept_BadAllocException;
|
47
|
+
|
48
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
49
|
+
}
|
50
|
+
namespace std {
|
51
|
+
#endif
|
52
|
+
|
53
|
+
#if !defined(_RWSTD_BAD_ALLOC_DEFINED) || defined(__TURBOC__)
|
54
|
+
class _RWSTDExport bad_alloc : public exception
|
55
|
+
{
|
56
|
+
public:
|
57
|
+
bad_alloc () _RWSTD_THROW_SPEC_NULL : exception( )
|
58
|
+
{ ; }
|
59
|
+
bad_alloc(const bad_alloc&) _RWSTD_THROW_SPEC_NULL
|
60
|
+
{ ; }
|
61
|
+
bad_alloc& operator=(const bad_alloc&) _RWSTD_THROW_SPEC_NULL
|
62
|
+
{ return *this; }
|
63
|
+
virtual ~bad_alloc () _RWSTD_THROW_SPEC_NULL;
|
64
|
+
|
65
|
+
virtual const char * what () const _RWSTD_THROW_SPEC_NULL
|
66
|
+
{
|
67
|
+
return __RWSTD::__rw_stdexcept_BadAllocException;
|
68
|
+
}
|
69
|
+
};
|
70
|
+
#else
|
71
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
72
|
+
}
|
73
|
+
#endif
|
74
|
+
#if defined(_MSC_VER) && !defined(__BORLANDC__)
|
75
|
+
#include _RWSTD_MS42_HEADER(new)
|
76
|
+
#else
|
77
|
+
#include <new.h>
|
78
|
+
#endif
|
79
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
80
|
+
namespace std {
|
81
|
+
#endif
|
82
|
+
#endif /*_RWSTD_BAD_ALLOC_DEFINED */
|
83
|
+
|
84
|
+
#ifndef _RWSTD_NOTHROW_IN_STD
|
85
|
+
struct nothrow_t {};
|
86
|
+
extern nothrow_t nothrow;
|
87
|
+
#endif // _RWSTD_NOTHROW_IN_STD
|
88
|
+
|
89
|
+
#if !defined(_RWSTD_EXCEPTION_HANDLER_IN_STD) || defined(__BORLANDC__)
|
90
|
+
typedef void ( _RTLENTRY *new_handler) ();
|
91
|
+
|
92
|
+
#if !defined(_MSC_VER) || defined(__BORLANDC__)
|
93
|
+
extern new_handler _RTLENTRY _EXPFUNC set_new_handler( new_handler new_p );
|
94
|
+
#endif
|
95
|
+
#endif // ! _RWSTD_EXCEPTION_HANDLER_IN_STD || __BORLANDC__
|
96
|
+
#ifndef _RWSTD_NO_NAMESPACE
|
97
|
+
}
|
98
|
+
#endif
|
99
|
+
|
100
|
+
#ifndef _RWSTD_NO_NEW_BRACKETS
|
101
|
+
#ifndef _RWSTD_NO_THROW_SPEC_ON_NEW
|
102
|
+
inline void * _RTLENTRY operator new(size_t, void* ptr) _RWSTD_THROW_SPEC_NULL
|
103
|
+
{ return ptr; }
|
104
|
+
#if !defined(__sgi) || (defined(__sgi) && defined(_COMPILER_VERSION) && (_COMPILER_VERSION < 0x2D1))
|
105
|
+
inline void* _RTLENTRY operator new[] ( size_t, void* ptr) _RWSTD_THROW_SPEC_NULL
|
106
|
+
{ return ptr; }
|
107
|
+
#endif
|
108
|
+
#else
|
109
|
+
inline void * _RTLENTRY _EXPFUNC operator new(size_t, void*)
|
110
|
+
{ return ptr; }
|
111
|
+
#if !defined(__sgi) || (defined(__sgi) && defined(_COMPILER_VERSION) && (_COMPILER_VERSION < 0x2D1))
|
112
|
+
inline void* _RTLENTRY operator new[] ( size_t, void* ptr)
|
113
|
+
{ return ptr; }
|
114
|
+
#endif
|
115
|
+
#endif // _RWSTD_NO_THROW_SPEC_ON_NEW
|
116
|
+
#else
|
117
|
+
#if defined(_MSC_VER) && !defined(__BORLANDC__)
|
118
|
+
#include <new.h>
|
119
|
+
extern void * _RTLENTRY _EXPFUNC operator new(size_t, void* ptr);
|
120
|
+
#else
|
121
|
+
#ifndef _RWSTD_NO_THROW_SPEC_ON_NEW
|
122
|
+
inline void * _RTLENTRY operator new(size_t, void* ptr) _RWSTD_THROW_SPEC_NULL;
|
123
|
+
// { return ptr; }
|
124
|
+
#else
|
125
|
+
inline void * _RTLENTRY operator new(size_t, void* ptr);
|
126
|
+
// { return ptr; }
|
127
|
+
#endif // _RWSTD_NO_THROW_SPEC_ON_NEW
|
128
|
+
#endif // _MSC_VER
|
129
|
+
#endif // _RWSTD_NO_NEW_BRACKETS
|
130
|
+
|
131
|
+
#ifdef __BORLANDC__
|
132
|
+
// Prototypes for the standard global new & delete operators
|
133
|
+
void * _RTLENTRY _EXPFUNC operator new (size_t);
|
134
|
+
void _RTLENTRY _EXPFUNC operator delete (void *);
|
135
|
+
|
136
|
+
// inline versions of the nothrow_t versions of new & delete operators
|
137
|
+
inline void * _RTLENTRY operator new (size_t size, const std::nothrow_t &)
|
138
|
+
{
|
139
|
+
size = size ? size : 1;
|
140
|
+
return malloc(size);
|
141
|
+
}
|
142
|
+
inline void * _RTLENTRY operator new[] (size_t size, const std::nothrow_t &nt)
|
143
|
+
{
|
144
|
+
return ::operator new (size, nt);
|
145
|
+
}
|
146
|
+
inline void _RTLENTRY operator delete (void *v, const std::nothrow_t &nt)
|
147
|
+
{
|
148
|
+
::operator delete (v); // The standard operator doesn't throw any exceptions
|
149
|
+
}
|
150
|
+
inline void _RTLENTRY operator delete[] (void *v, const std::nothrow_t &nt)
|
151
|
+
{
|
152
|
+
::operator delete[] (v); // The standard operator doesn't throw any exceptions
|
153
|
+
}
|
154
|
+
#endif // __BORLANDC__
|
155
|
+
#endif /*__STD_NEW */
|
156
|
+
|
157
|
+
#else
|
158
|
+
#include <new.h>
|
159
|
+
#endif /* !defined (_HPACC_) */
|
160
|
+
|
161
|
+
#pragma option pop
|
162
|
+
#endif /* __NEW_H */
|
163
|
+
|
164
|
+
#ifndef __USING_STD_NAMES__
|
165
|
+
using namespace std;
|
166
|
+
#endif
|