├── .gitignore
├── INSTALL
├── LICENSE
├── README
├── STLPort-Debug.vgdbsettings
├── STLPort-Debug.vgdbsettings.old
├── STLPort-Release.vgdbsettings
├── STLPort.vcxproj
├── STLPort.vcxproj.filters
├── build
├── Makefiles
│ ├── clean.mak
│ ├── gmake
│ │ ├── CC.mak
│ │ ├── aCC.mak
│ │ ├── app
│ │ │ ├── CC.mak
│ │ │ ├── aCC.mak
│ │ │ ├── bcc.mak
│ │ │ ├── clean.mak
│ │ │ ├── dmc.mak
│ │ │ ├── gcc.mak
│ │ │ ├── icc.mak
│ │ │ ├── macro.mak
│ │ │ ├── mwccnlm.mak
│ │ │ ├── rules-install.mak
│ │ │ ├── rules.mak
│ │ │ └── top.mak
│ │ ├── bcc.mak
│ │ ├── cygming
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── darwin
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── depend.mak
│ │ ├── dirsrc.mak
│ │ ├── dmc.mak
│ │ ├── freebsd
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── gcc.mak
│ │ ├── hp-ux
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── icc.mak
│ │ ├── lib
│ │ │ ├── CC.mak
│ │ │ ├── aCC.mak
│ │ │ ├── bcc.mak
│ │ │ ├── clean.mak
│ │ │ ├── dmc.mak
│ │ │ ├── gcc.mak
│ │ │ ├── icc.mak
│ │ │ ├── mwccnlm.mak
│ │ │ ├── rules-a.mak
│ │ │ ├── rules-install-a.mak
│ │ │ └── top.mak
│ │ ├── linux
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── mwccnlm.mak
│ │ ├── netware
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── openbsd
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── sunos
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ └── targetsys.mak
│ │ ├── sysid.mak
│ │ ├── targetdirs.mak
│ │ ├── targets.mak
│ │ ├── unix
│ │ │ └── lib.mak
│ │ └── windows
│ │ │ ├── extern.mak
│ │ │ ├── lib.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── sys.mak
│ │ │ ├── sysid.mak
│ │ │ └── targetsys.mak
│ ├── make.mak
│ ├── nmake
│ │ ├── app
│ │ │ ├── clean.mak
│ │ │ ├── evc-common.mak
│ │ │ ├── evc3.mak
│ │ │ ├── evc4.mak
│ │ │ ├── evc8.mak
│ │ │ ├── icl.mak
│ │ │ ├── macro.mak
│ │ │ ├── rules-exe-windows.mak
│ │ │ ├── rules-install-a.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── top.mak
│ │ │ ├── vc-common.mak
│ │ │ ├── vc6.mak
│ │ │ ├── vc70.mak
│ │ │ ├── vc71.mak
│ │ │ └── vc8.mak
│ │ ├── clean.mak
│ │ ├── evc-common.mak
│ │ ├── evc3.mak
│ │ ├── evc4.mak
│ │ ├── evc8.mak
│ │ ├── extern.mak
│ │ ├── icl.mak
│ │ ├── lib
│ │ │ ├── clean.mak
│ │ │ ├── evc-common.mak
│ │ │ ├── evc3.mak
│ │ │ ├── evc4.mak
│ │ │ ├── evc8.mak
│ │ │ ├── icl.mak
│ │ │ ├── macro.mak
│ │ │ ├── rules-a.mak
│ │ │ ├── rules-install-a.mak
│ │ │ ├── rules-install-so.mak
│ │ │ ├── rules-so.mak
│ │ │ ├── top.mak
│ │ │ ├── vc-common.mak
│ │ │ ├── vc6.mak
│ │ │ ├── vc70.mak
│ │ │ ├── vc71.mak
│ │ │ └── vc8.mak
│ │ ├── rules-o.mak
│ │ ├── sys.mak
│ │ ├── sysid.mak
│ │ ├── targetdirs.mak
│ │ ├── targets.mak
│ │ ├── top.mak
│ │ ├── vc-common.mak
│ │ ├── vc6.mak
│ │ ├── vc70.mak
│ │ ├── vc71.mak
│ │ └── vc8.mak
│ ├── rules-d.mak
│ ├── rules-o.mak
│ ├── rules-res.mak
│ ├── templates
│ │ ├── Makefile-app.inc
│ │ ├── Makefile-gcc-app
│ │ ├── Makefile-gcc-lib
│ │ └── Makefile-lib.inc
│ └── top.mak
├── lib
│ ├── CC.mak
│ ├── Makefile.inc
│ ├── README
│ ├── aCC.mak
│ ├── bcc.mak
│ ├── configure
│ ├── configure.bat
│ ├── dmc.mak
│ ├── evc.mak
│ ├── gcc.mak
│ ├── icc.mak
│ ├── icl.mak
│ ├── msvc.mak
│ ├── mwccnlm.mak
│ └── nmake-src-prefix.mak
├── misc
│ └── cxa_atexit
│ │ ├── Makefile.inc
│ │ └── gcc.mak
└── test
│ ├── eh
│ ├── Makefile.inc
│ ├── bcc.mak
│ ├── evc.mak
│ ├── gcc.mak
│ ├── icl.mak
│ ├── msvc.mak
│ └── nmake-src-prefix.mak
│ └── unit
│ ├── CC.mak
│ ├── Makefile.inc
│ ├── README
│ ├── STATUS
│ ├── aCC.mak
│ ├── bcc.mak
│ ├── dmc.mak
│ ├── evc.mak
│ ├── gcc.mak
│ ├── icc.mak
│ ├── icl.mak
│ ├── msvc.mak
│ ├── mwccnlm.mak
│ ├── nmake-src-prefix.mak
│ └── novelltest.def
├── doc
├── FAQ
├── README.borland
├── README.cygwin
├── README.evc3
├── README.evc4
├── README.evc8
├── README.intel
├── README.mingw
├── README.msvc
├── README.wince
├── build_system.txt
├── pointer_specialization.txt
└── stlport_namespaces.txt
├── etc
├── ChangeLog-4.0
├── ChangeLog-5.1
├── ReleaseNote.txt
├── STLport-4.5.1.spec
├── STLport-4.5.3.spec
├── STLport-4.6.spec
├── cvsignore
├── msvcincl.dat
├── std_headers.txt
├── std_headers_c.txt
├── std_headers_c_h.txt
├── std_headers_classic_iostreams.txt
├── std_headers_cpp_runtime.txt
├── std_headers_cpp_runtime_h.txt
├── stlport_powered_red.gif
└── stlport_powered_white.gif
├── src
├── _stdio_file.h
├── acquire_release.h
├── aligned_buffer.h
├── allocators.cpp
├── bitset.cpp
├── c_locale.c
├── c_locale.h
├── c_locale_dummy
│ └── c_locale_dummy.c
├── c_locale_glibc
│ ├── c_locale_glibc.c
│ ├── c_locale_glibc2.c
│ └── gcc_localeinfo.h
├── c_locale_win32
│ └── c_locale_win32.c
├── codecvt.cpp
├── collate.cpp
├── complex.cpp
├── complex_io.cpp
├── complex_trig.cpp
├── ctype.cpp
├── cxa.c
├── dll_main.cpp
├── facets_byname.cpp
├── fstream.cpp
├── fstream_impl.h
├── ios.cpp
├── iostream.cpp
├── istream.cpp
├── locale.cpp
├── locale_catalog.cpp
├── locale_impl.cpp
├── locale_impl.h
├── lock_free_slist.h
├── message_facets.h
├── messages.cpp
├── monetary.cpp
├── num_get.cpp
├── num_get_float.cpp
├── num_put.cpp
├── num_put_float.cpp
├── numpunct.cpp
├── ostream.cpp
├── sparc_atomic.s
├── sparc_atomic64.s
├── sstream.cpp
├── stdio_streambuf.cpp
├── stdio_streambuf.h
├── stlport.rc
├── stlport_prefix.h
├── string.cpp
├── strstream.cpp
├── time_facets.cpp
├── uint64.h
├── vc_warning_disable.h
└── warning_disable.h
├── stlport
├── algorithm
├── assert.h
├── bitset
├── cassert
├── cctype
├── cerrno
├── cfloat
├── ciso646
├── climits
├── clocale
├── cmath
├── complex
├── csetjmp
├── csignal
├── cstdarg
├── cstddef
├── cstdio
├── cstdlib
├── cstring
├── ctime
├── ctype.h
├── cwchar
├── cwctype
├── deque
├── errno.h
├── exception.h
├── exception.x
├── float.h
├── fstream
├── fstream.h
├── functional
├── hash_map
├── hash_set
├── iomanip
├── iomanip.h
├── ios
├── ios.h
├── iosfwd
├── iostream
├── iostream.h
├── iso646.h
├── istream
├── istream.h
├── iterator
├── kext
│ ├── assert.h
│ ├── c++
│ │ ├── X
│ │ │ ├── _types.h
│ │ │ ├── bits
│ │ │ │ ├── c++config.h
│ │ │ │ └── cpu_defines.h
│ │ │ ├── cstddef
│ │ │ ├── cstdio
│ │ │ ├── cstdlib
│ │ │ ├── cstring
│ │ │ ├── fts.h
│ │ │ └── stddef.h
│ │ ├── _types.h
│ │ ├── climits
│ │ ├── cstddef
│ │ ├── cstdio
│ │ ├── cstdlib
│ │ ├── cstring
│ │ ├── cwchar
│ │ └── stddef.h
│ ├── errno.h
│ └── stdio.h
├── limits
├── limits.h
├── list
├── locale
├── locale.h
├── map
├── math.h
├── mem.h
├── memory
├── new
├── new.h
├── numeric
├── ostream
├── ostream.h
├── pthread.h
├── pthread_alloc
├── queue
├── rlocks.h
├── rope
├── set
├── setjmp.h
├── signal.h
├── slist
├── sstream
├── stack
├── stdarg.h
├── stddef.h
├── stdexcept
├── stdio.h
├── stdiostream.h
├── stdlib.h
├── stl
│ ├── _abbrevs.h
│ ├── _algo.c
│ ├── _algo.h
│ ├── _algobase.c
│ ├── _algobase.h
│ ├── _alloc.c
│ ├── _alloc.h
│ ├── _alloc_old.h
│ ├── _auto_ptr.h
│ ├── _bitset.c
│ ├── _bitset.h
│ ├── _bvector.h
│ ├── _carray.h
│ ├── _cctype.h
│ ├── _check_config.h
│ ├── _clocale.h
│ ├── _cmath.h
│ ├── _codecvt.h
│ ├── _collate.h
│ ├── _complex.c
│ ├── _complex.h
│ ├── _config_compat_post.h
│ ├── _construct.h
│ ├── _csetjmp.h
│ ├── _csignal.h
│ ├── _cstdarg.h
│ ├── _cstddef.h
│ ├── _cstdio.h
│ ├── _cstdlib.h
│ ├── _cstring.h
│ ├── _ctime.h
│ ├── _ctraits_fns.h
│ ├── _ctype.h
│ ├── _cwchar.h
│ ├── _cwctype.h
│ ├── _deque.c
│ ├── _deque.h
│ ├── _epilog.h
│ ├── _exception.h
│ ├── _fstream.c
│ ├── _fstream.h
│ ├── _function.h
│ ├── _function_adaptors.h
│ ├── _function_base.h
│ ├── _hash_fun.h
│ ├── _hash_map.h
│ ├── _hash_set.h
│ ├── _hashtable.c
│ ├── _hashtable.h
│ ├── _heap.c
│ ├── _heap.h
│ ├── _ios.c
│ ├── _ios.h
│ ├── _ios_base.h
│ ├── _ioserr.h
│ ├── _iosfwd.h
│ ├── _iostream_string.h
│ ├── _istream.c
│ ├── _istream.h
│ ├── _istreambuf_iterator.h
│ ├── _iterator.h
│ ├── _iterator_base.h
│ ├── _iterator_old.h
│ ├── _limits.c
│ ├── _limits.h
│ ├── _list.c
│ ├── _list.h
│ ├── _locale.h
│ ├── _map.h
│ ├── _mbstate_t.h
│ ├── _messages_facets.h
│ ├── _monetary.c
│ ├── _monetary.h
│ ├── _move_construct_fwk.h
│ ├── _new.h
│ ├── _null_stream.h
│ ├── _num_get.c
│ ├── _num_get.h
│ ├── _num_put.c
│ ├── _num_put.h
│ ├── _numeric.c
│ ├── _numeric.h
│ ├── _numpunct.h
│ ├── _ostream.c
│ ├── _ostream.h
│ ├── _ostreambuf_iterator.h
│ ├── _pair.h
│ ├── _prolog.h
│ ├── _pthread_alloc.h
│ ├── _ptrs_specialize.h
│ ├── _queue.h
│ ├── _range_errors.h
│ ├── _raw_storage_iter.h
│ ├── _relops_cont.h
│ ├── _relops_hash_cont.h
│ ├── _rope.c
│ ├── _rope.h
│ ├── _set.h
│ ├── _slist.c
│ ├── _slist.h
│ ├── _slist_base.c
│ ├── _slist_base.h
│ ├── _sparc_atomic.h
│ ├── _sstream.c
│ ├── _sstream.h
│ ├── _stack.h
│ ├── _stdexcept.h
│ ├── _stdexcept_base.h
│ ├── _stlport_version.h
│ ├── _stream_iterator.h
│ ├── _streambuf.c
│ ├── _streambuf.h
│ ├── _string.c
│ ├── _string.h
│ ├── _string_base.h
│ ├── _string_fwd.h
│ ├── _string_hash.h
│ ├── _string_io.c
│ ├── _string_io.h
│ ├── _string_npos.h
│ ├── _string_operators.h
│ ├── _string_sum.h
│ ├── _string_sum_methods.h
│ ├── _string_workaround.h
│ ├── _strstream.h
│ ├── _tempbuf.c
│ ├── _tempbuf.h
│ ├── _threads.c
│ ├── _threads.h
│ ├── _time_facets.c
│ ├── _time_facets.h
│ ├── _tree.c
│ ├── _tree.h
│ ├── _typeinfo.h
│ ├── _uninitialized.h
│ ├── _unordered_map.h
│ ├── _unordered_set.h
│ ├── _valarray.c
│ ├── _valarray.h
│ ├── _vector.c
│ ├── _vector.h
│ ├── boost_type_traits.h
│ ├── c_locale.h
│ ├── char_traits.h
│ ├── concept_checks.h
│ ├── config
│ │ ├── _aix.h
│ │ ├── _apcc.h
│ │ ├── _apple.h
│ │ ├── _as400.h
│ │ ├── _auto_link.h
│ │ ├── _bc.h
│ │ ├── _como.h
│ │ ├── _cray.h
│ │ ├── _cygwin.h
│ │ ├── _dec.h
│ │ ├── _dec_vms.h
│ │ ├── _detect_dll_or_lib.h
│ │ ├── _dm.h
│ │ ├── _epilog.h
│ │ ├── _evc.h
│ │ ├── _freebsd.h
│ │ ├── _fujitsu.h
│ │ ├── _gcc.h
│ │ ├── _hpacc.h
│ │ ├── _hpux.h
│ │ ├── _ibm.h
│ │ ├── _icc.h
│ │ ├── _intel.h
│ │ ├── _kai.h
│ │ ├── _linux.h
│ │ ├── _linuxk.h
│ │ ├── _mac.h
│ │ ├── _macosx.h
│ │ ├── _macosx_k.h
│ │ ├── _mlc.h
│ │ ├── _msvc.h
│ │ ├── _mwccnlm.h
│ │ ├── _mwerks.h
│ │ ├── _native_headers.h
│ │ ├── _netware.h
│ │ ├── _openbsd.h
│ │ ├── _prolog.h
│ │ ├── _sgi.h
│ │ ├── _solaris.h
│ │ ├── _sunprocc.h
│ │ ├── _symantec.h
│ │ ├── _system.h
│ │ ├── _warnings_off.h
│ │ ├── _watcom.h
│ │ ├── _windows.h
│ │ ├── compat.h
│ │ ├── features.h
│ │ ├── host.h
│ │ ├── stl_confix.h
│ │ ├── stl_mycomp.h
│ │ └── user_config.h
│ ├── debug
│ │ ├── _debug.c
│ │ ├── _debug.h
│ │ ├── _deque.h
│ │ ├── _hashtable.h
│ │ ├── _iterator.h
│ │ ├── _list.h
│ │ ├── _slist.h
│ │ ├── _string.h
│ │ ├── _string_sum_methods.h
│ │ ├── _tree.h
│ │ └── _vector.h
│ ├── msl_string.h
│ ├── pointers
│ │ ├── _deque.h
│ │ ├── _list.h
│ │ ├── _set.h
│ │ ├── _slist.h
│ │ ├── _tools.h
│ │ └── _vector.h
│ ├── type_manips.h
│ └── type_traits.h
├── streambuf
├── streambuf.h
├── string
├── string.h
├── strstream
├── strstream.h
├── time.h
├── typeinfo
├── typeinfo.h
├── unordered_map
├── unordered_set
├── using
│ ├── cstring
│ ├── export
│ ├── fstream
│ ├── h
│ │ ├── fstream.h
│ │ ├── iomanip.h
│ │ ├── iostream.h
│ │ ├── ostream.h
│ │ ├── streambuf.h
│ │ └── strstream.h
│ ├── iomanip
│ ├── ios
│ ├── iosfwd
│ ├── iostream
│ ├── istream
│ ├── locale
│ ├── ostream
│ ├── sstream
│ ├── streambuf
│ └── strstream
├── utility
├── valarray
├── vector
├── wchar.h
└── wctype.h
└── test
├── compiler
├── Makefile.inc
├── README
├── StTerm-order
│ ├── Makefile
│ ├── Makefile.inc
│ └── stterm-test.cc
├── eh.cc
├── gcc.mak
├── movable.cpp
├── ttei1.cpp
├── ttei2.cpp
├── ttei3.cpp
├── ttei4.cpp
├── ttei5.cpp
├── ttei6.cpp
└── ttei7.cpp
├── eh
├── LeakCheck.h
├── Prefix.h
├── SortClass.h
├── TestClass.cpp
├── TestClass.h
├── Tests.h
├── ThrowCompare.h
├── bcb.mak
├── bug.cpp
├── como-linux.mak
├── como.mak
├── cray.mak
├── cygwin.mak
├── deccxx.mak
├── descrip.mms
├── djgpp.mak
├── egcs.mak
├── export
├── gcc-99r1.mak
├── gcc-amigaos-m68k.mak
├── gcc-apple-macosx.mak
├── gcc-freebsd.mak
├── gcc-hp11.mak
├── gcc-irix.mak
├── gcc-linux.mak
├── gcc-netbsd.mak
├── gcc.mak
├── gcc7.mak
├── hp.mak
├── hpacc.mak
├── intel.mak
├── intel45.mak
├── intel50.mak
├── kai.mak
├── locale.cpp
├── main.cpp
├── mingw32.mak
├── mwerks_console_OS_X.c
├── mwerks_debug_prefix.h
├── mwerks_nosgi_debug_prefix.h
├── mwerks_nosgi_prefix.h
├── mwerks_prefix.h
├── nc_alloc.cpp
├── nc_alloc.h
├── random_number.cpp
├── random_number.h
├── sgi_mipspro.mak
├── sunpro-64.mak
├── sunpro.mak
├── sunpro42.mak
├── test.cpp
├── test_algo.cpp
├── test_algobase.cpp
├── test_assign_op.h
├── test_bit_vector.cpp
├── test_bitset.cpp
├── test_construct.h
├── test_deque.cpp
├── test_hash_map.cpp
├── test_hash_resize.h
├── test_hash_set.cpp
├── test_insert.h
├── test_list.cpp
├── test_map.cpp
├── test_push_back.h
├── test_push_front.h
├── test_rope.cpp
├── test_set.cpp
├── test_slist.cpp
├── test_string.cpp
├── test_valarray.cpp
└── test_vector.cpp
└── unit
├── _template.cpp
├── accum_test.cpp
├── adj_test.cpp
├── advance_test.cpp
├── alg_test.cpp
├── algorithm_header_test.cpp
├── allocator_test.cpp
├── assert_header_test.c
├── bcompos_test.cpp
├── bind_test.cpp
├── binsert_test.cpp
├── bitset_header_test.cpp
├── bitset_test.cpp
├── bnegate_test.cpp
├── bound_test.cpp
├── bsearch_test.cpp
├── bvector_test.cpp
├── c_limits_header_test.c
├── c_locale_header_test.c
├── cassert_header_test.cpp
├── cctype_header_test.cpp
├── cerrno_header_test.cpp
├── cfloat_header_test.cpp
├── ciso646_header_test.cpp
├── climits_header_test.cpp
├── clocale_header_test.cpp
├── cmath_header_test.cpp
├── cmath_test.cpp
├── codecvt_test.cpp
├── complex_header_test.cpp
├── config_test.cpp
├── copy_test.cpp
├── count_test.cpp
├── cppunit
├── cppunit_mini.h
├── cppunit_proxy.h
├── cppunit_timer.h
├── file_reporter.h
└── test_main.cpp
├── csetjmp_header_test.cpp
├── csignal_header_test.cpp
├── cstdarg_header_test.cpp
├── cstddef_header_test.cpp
├── cstdio_header_test.cpp
├── cstdlib_header_test.cpp
├── cstring_header_test.cpp
├── ctime_header_test.cpp
├── ctype_header_test.c
├── cwchar.cpp
├── cwchar_header_test.cpp
├── cwctype_header_test.cpp
├── deque_header_test.cpp
├── deque_test.cpp
├── divides_test.cpp
├── epilog_test.cpp
├── equal_test.cpp
├── errno_header_test.c
├── exception_header_test.cpp
├── exception_test.cpp
├── fadapter.h
├── fib.h
├── fill_test.cpp
├── find_test.cpp
├── finsert_test.cpp
├── float_header_test.c
├── foreach_test.cpp
├── fstream_header_test.cpp
├── fstream_test.cpp
├── full_streambuf.h
├── func_test.cpp
├── functional_header_test.cpp
├── generator_test.cpp
├── greater_test.cpp
├── hash_test.cpp
├── heap_test.cpp
├── includes_test.cpp
├── innerprod_test.cpp
├── inplace_test.cpp
├── insert_test.cpp
├── ioiter_test.cpp
├── iomanip_header_test.cpp
├── ios_header_test.cpp
├── iosfwd_header_test.cpp
├── iostream_header_test.cpp
├── iostream_test.cpp
├── iota.h
├── iota_test.cpp
├── iso646_header_test.c
├── istmit_test.cpp
├── istream_header_test.cpp
├── iter_test.cpp
├── iterator_header_test.cpp
├── less_test.cpp
├── lexcmp_test.cpp
├── limits_header_test.cpp
├── limits_test.cpp
├── list_header_test.cpp
├── list_test.cpp
├── locale_header_test.cpp
├── locale_test.cpp
├── logic_test.cpp
├── map_header_test.cpp
├── map_test.cpp
├── math_aux.h
├── math_header_test.c
├── max_test.cpp
├── memory_header_test.cpp
├── merge_test.cpp
├── mfunptr_test.cpp
├── min_test.cpp
├── mismatch_test.cpp
├── modulus_test.cpp
├── multiset_test.cpp
├── mvctor_test.cpp
├── neq_test.cpp
├── new_header_test.cpp
├── nthelm_test.cpp
├── num_put_get_test.cpp
├── numeric_header_test.cpp
├── ostmit_test.cpp
├── ostream_header_test.cpp
├── pair_test.cpp
├── partial_test.cpp
├── partition_test.cpp
├── perm_test.cpp
├── plusminus_test.cpp
├── ptr2_test.cpp
├── ptrspec_test.cpp
├── queue_header_test.cpp
├── queue_test.cpp
├── rawriter_test.cpp
├── resolve_name.cpp
├── reviter_test.cpp
├── rm_cp_test.cpp
├── rndshf_test.cpp
├── rope_test.cpp
├── rotate_test.cpp
├── search_test.cpp
├── set_header_test.cpp
├── set_test.cpp
├── setdiff_test.cpp
├── setinter_test.cpp
├── setjmp_header_test.c
├── setjmp_header_test2.cpp
├── setunion_test.cpp
├── signal_header_test.c
├── slist_test.cpp
├── sort_test.cpp
├── sstream_header_test.cpp
├── sstream_test.cpp
├── stack_allocator.h
├── stack_header_test.cpp
├── stack_test.cpp
├── stdarg_header_test.c
├── stddef_header_test.c
├── stdexcept_header_test.cpp
├── stdio_header_test.c
├── stdlib_header_test.c
├── streambuf_header_test.cpp
├── string_header_test.c
├── string_header_test.cpp
├── string_test.cpp
├── strstream_header_test.cpp
├── swap_test.cpp
├── test_errno.cpp
├── time_header_test.c
├── times_test.cpp
├── transform_test.cpp
├── type_traits_test.cpp
├── typeinfo_header_test.cpp
├── unary.h
├── unary_test.cpp
├── uninitialized_test.cpp
├── unique_test.cpp
├── unordered_test.cpp
├── utility_header_test.cpp
├── valarray_header_test.cpp
├── valarray_test.cpp
├── vector_header_test.cpp
├── vector_test.cpp
├── wchar_header_test.c
└── wctype_header_test.c
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files
2 | *.slo
3 | *.lo
4 | *.o
5 | *.obj
6 |
7 | # Precompiled Headers
8 | *.gch
9 | *.pch
10 |
11 | # Compiled Dynamic libraries
12 | *.so
13 | *.dylib
14 | *.dll
15 |
16 | # Fortran module files
17 | *.mod
18 |
19 | # Compiled Static libraries
20 | *.lai
21 | *.la
22 | *.a
23 | *.lib
24 |
25 | # Executables
26 | *.exe
27 | *.out
28 | *.app
29 |
--------------------------------------------------------------------------------
/STLPort.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {d2916c3b-f4a0-4e43-be07-6f5fff49c529}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {02350bae-0b6d-49ef-ae21-01db81213675}
10 | h;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {70733fd7-1831-42d6-940d-d60865bcab02}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav
15 |
16 |
17 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/CC.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/12/07 00:56:09 ptr>
2 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/aCC.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/12/07 00:56:18 ptr>
2 |
3 |
4 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/bcc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/12/07 00:56:53 ptr>
2 |
3 | OPT += -tWC -w-par
4 |
5 | LDFLAGS += -ap -Tpe
6 |
7 | START_OBJ = c0x32.obj
8 |
9 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/icc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/12/07 01:01:22 ptr>
2 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/macro.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/12/07 01:01:38 ptr>
2 |
3 | ifneq ($(OSNAME),windows)
4 | PRG := $(OUTPUT_DIR)/${PRGNAME}${EXE}
5 | PRG_DBG := $(OUTPUT_DIR_DBG)/${PRGNAME}${EXE}
6 | PRG_STLDBG := $(OUTPUT_DIR_STLDBG)/${PRGNAME}${EXE}
7 | else
8 | PRG := $(subst /,\,$(OUTPUT_DIR)/${PRGNAME}${EXE})
9 | PRG_DBG := $(subst /,\,$(OUTPUT_DIR_DBG)/${PRGNAME}${EXE})
10 | PRG_STLDBG := $(subst /,\,$(OUTPUT_DIR_STLDBG)/${PRGNAME}${EXE})
11 | endif
12 |
13 | LDFLAGS += ${LDSEARCH}
14 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/mwccnlm.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <05/12/07 01:01:49 ptr>
2 |
3 | LDFLAGS += -type generic -w off -nostdlib -msgstyle gcc
4 |
5 | STDLIBS = -L"$(NWSDK_DIR)/imports" \
6 | -L"$(MWCW_NOVELL)/Libraries/Runtime/Output/CLib" \
7 | -L"$(NWSDK_DIR)/../libc/imports" \
8 | -lclib.imp -lthreads.imp -lmwcrtl.lib -lnlmlib.imp -llibc.imp
9 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/app/top.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <05/12/07 01:07:18 ptr>
2 |
3 | include ${RULESBASE}/${USE_MAKE}/app/macro.mak
4 | include ${RULESBASE}/${USE_MAKE}/app/${COMPILER_NAME}.mak
5 | include ${RULESBASE}/${USE_MAKE}/app/rules.mak
6 | include ${RULESBASE}/${USE_MAKE}/app/rules-install.mak
7 | include ${RULESBASE}/${USE_MAKE}/app/clean.mak
8 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/cygming/rules-install-so.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <05/12/09 01:46:01 ptr>
2 |
3 | INSTALL_TAGS ?= install-shared
4 |
5 | PHONY += install $(INSTALL_TAGS)
6 |
7 | install: $(INSTALL_TAGS)
8 |
9 | install-release-shared: release-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR)
10 | $(INSTALL_SO) ${SO_NAME_OUT} $(INSTALL_BIN_DIR)/
11 | $(INSTALL_SO) ${LIB_NAME_OUT} $(INSTALL_LIB_DIR)/
12 | # $(INSTALL_SO) ${EXP_NAME_OUT} $(INSTALL_LIB_DIR)/
13 |
14 | install-dbg-shared: dbg-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR_DBG)
15 | $(INSTALL_SO) ${SO_NAME_OUT_DBG} $(INSTALL_BIN_DIR)/
16 | $(INSTALL_SO) ${LIB_NAME_OUT_DBG} $(INSTALL_LIB_DIR_DBG)/
17 | # $(INSTALL_SO) ${EXP_NAME_OUT_DBG} $(INSTALL_LIB_DIR_DBG)/
18 |
19 | install-stldbg-shared: stldbg-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR_DBG)
20 | $(INSTALL_SO) ${SO_NAME_OUT_STLDBG} $(INSTALL_BIN_DIR)/
21 | $(INSTALL_SO) ${LIB_NAME_OUT_STLDBG} $(INSTALL_LIB_DIR_STLDBG)/
22 | # $(INSTALL_SO) ${EXP_NAME_OUT_STLDBG} $(INSTALL_LIB_DIR_STLDBG)/
23 |
24 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/cygming/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:12:38 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | RC := windres
5 | INSTALL := install
6 |
7 | INSTALL_SO := ${INSTALL} -m 0755
8 | INSTALL_A := ${INSTALL} -m 0644
9 | INSTALL_EXE := ${INSTALL} -m 0755
10 |
11 | EXT_TEST := test
12 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/cygming/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:03:45 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | CC ?= gcc
5 | CXX ?= g++
6 |
7 | # shared library:
8 | SO := dll
9 | ifeq (gcc,$(COMPILER_NAME))
10 | LIB := dll.a
11 | else
12 | LIB := lib
13 | endif
14 | EXP := exp
15 |
16 | # executable:
17 | EXE := .exe
18 |
19 | # static library extention:
20 | ifeq (dmc,$(COMPILER_NAME))
21 | ARCH := lib
22 | AR := dm_lib -n
23 | AR_INS_R := -c
24 | AR_EXTR := -x
25 | AR_OUT = $(subst /,\,$@)
26 | else
27 | ifeq (bcc,$(COMPILER_NAME))
28 | ARCH := lib
29 | AR := tlib
30 | AR_INS_R := +
31 | AR_EXTR := *
32 | AR_OUT = $(subst /,\,$@)
33 | else
34 | ARCH := a
35 | AR := ar
36 | AR_INS_R := -rs
37 | AR_EXTR := -x
38 | AR_OUT = $@
39 | endif
40 | endif
41 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/darwin/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/19 12:26:05 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/unix/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/darwin/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:13:00 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | INSTALL := /usr/bin/install
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | EXT_TEST := test
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/darwin/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:04:30 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | SO := dylib
5 |
6 | ARCH := a
7 | AR := ar
8 | AR_INS_R := -r -s
9 | AR_EXTR := -x
10 | AR_OUT = $@
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/depend.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/03/02 18:57:44 ptr>
2 | # $Id: depend.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | PHONY += release-static-dep release-shared-dep dbg-static-dep dbg-shared-dep \
5 | stldbg-static-dep stldbg-shared-dep depend compiler-dep
6 |
7 | release-static-dep release-shared-dep: $(DEP)
8 |
9 | dbg-static-dep dbg-shared-dep: $(DEP_DBG)
10 |
11 | stldbg-static-dep stldbg-shared-dep: $(DEP_STLDBG)
12 |
13 | depend: $(OUTPUT_DIRS) $(INSTALL_LIB_DIRS) compiler-dep release-shared-dep dbg-shared-dep stldbg-shared-dep
14 | @cat -s $(DEP) $(DEP_DBG) $(DEP_STLDBG) /dev/null > $(DEPENDS_COLLECTION)
15 |
16 | # This target is called if the compiler needs to do some setup before
17 | # creating the dependency file. Currently this is used by the SunPro
18 | # compiler to setup the include files correctly.
19 | compiler-dep ::
20 |
21 | -include $(DEPENDS_COLLECTION)
22 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/dirsrc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/27 18:07:14 ptr>
2 | # $Id: dirsrc.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | # Some trick to build implicit rules for sources in some different
5 | # subdirectories. I remove catalogs from path to sources, with this
6 | # names I build output object path, and provide dependency from
7 | # source in directory. Due to no loops for rules definition, I should
8 | # use recursion here;
9 |
10 | # try take directory from list:
11 | WORD1 := $(word 1,$(DIRS_UNIQUE_SRC))
12 |
13 | # is still directory in the list?
14 | ifneq "$(WORD1)" ""
15 | include ${RULESBASE}/rules-o.mak
16 | include ${RULESBASE}/rules-d.mak
17 | ifeq ($(OSNAME),cygming)
18 | include ${RULESBASE}/rules-res.mak
19 | endif
20 | ifeq ($(OSNAME),windows)
21 | include ${RULESBASE}/rules-res.mak
22 | endif
23 | # remove processed directory from list
24 | DIRS_UNIQUE_SRC := $(filter-out $(WORD1),$(DIRS_UNIQUE_SRC))
25 | # recursive include here:
26 | include ${RULESBASE}/${USE_MAKE}/dirsrc.mak
27 | endif
28 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/freebsd/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/19 12:26:05 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/unix/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/freebsd/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:10:10 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | INSTALL := /usr/bin/install
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | EXT_TEST := test
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/freebsd/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:09:21 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | SO := so
5 |
6 | ARCH := a
7 | AR := ar
8 | AR_INS_R := -r
9 | AR_EXTR := -x
10 | AR_OUT = $@
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/hp-ux/extern.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/07/15 17:46:28 ptr>
2 | # $Id: extern.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 |
5 | # This file reflect versions of third-party libraries that
6 | # used in projects
7 |
8 | # STLport library
9 | STLPORT_LIB_DIR ?= $(STLPORT_DIR)/${TARGET_NAME}lib
10 | STLPORT_INCLUDE_DIR ?= $(STLPORT_DIR)/stlport
11 | STLPORT_VER ?= 4.5.5
12 |
13 | # boost (http://www.boost.org, http://boost.sourceforge.net)
14 | BOOST_INCLUDE_DIR ?= ${BOOST_DIR}
15 |
16 | BOOST_DIR ?= ${SRCROOT}/../extern/boost
17 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/hp-ux/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/19 12:26:05 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/unix/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/hp-ux/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:12:16 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | INSTALL := $$HOME/bin/install-sh
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | EXT_TEST := /usr/bin/test
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/hp-ux/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:05:18 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | SO := sl
5 |
6 | ARCH := a
7 | AR := ar
8 | AR_INS_R := -rs
9 | AR_EXTR := -x
10 | AR_OUT = $@
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/aCC.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <05/03/24 11:33:35 ptr>
2 | # $Id: aCC.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | dbg-shared: LDFLAGS += -b +nostl -Wl,+h$(SO_NAME_DBGxx) ${LDSEARCH}
5 | stldbg-shared: LDFLAGS += -b +nostl -Wl,+h$(SO_NAME_STLDBGxx) ${LDSEARCH}
6 | release-shared: LDFLAGS += -b +nostl -Wl,+h$(SO_NAMExx) ${LDSEARCH}
7 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/bcc.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/11/30 11:41:22 ptr>
2 | # $Id: bcc.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 |
5 | release-shared : OPT += -tWD
6 | dbg-shared : OPT += -tWD
7 | stldbg-shared : OPT += -tWD
8 |
9 | release-shared : LDFLAGS += -Tpd -V4.00 -w -w-dup
10 | dbg-shared : LDFLAGS += -Tpd -V4.00 -v -w -w-dup
11 | stldbg-shared : LDFLAGS += -Tpd -V4.00 -v -w -w-dup
12 |
13 | START_OBJ := c0d32.obj
14 |
15 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/dmc.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/11/30 11:41:22 ptr>
2 | # $Id: dmc.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | release-shared: OPT += -WD
5 | dbg-shared: OPT += -WD
6 | stldbg-shared: OPT += -WD
7 |
8 | release-shared: LDFLAGS += /IMPLIB:$(subst /,\,$(OUTPUT_DIR))\$(SO_NAME_BASE).lib
9 | dbg-shared: LDFLAGS += /CODEVIEW/IMPLIB:$(subst /,\,$(OUTPUT_DIR_DBG))\$(SO_NAME_DBG_BASE).lib
10 | stldbg-shared: LDFLAGS += /CODEVIEW/IMPLIB:$(subst /,\,$(OUTPUT_DIR_STLDBG))\$(SO_NAME_STLDBG_BASE).lib
11 |
12 | DEF_OPTION = $(subst /,\,$(OUTPUT_DIR))\$(SO_NAME_BASE).def
13 | DEF_OPTION_DBG = $(subst /,\,$(OUTPUT_DIR_DBG))\$(SO_NAME_DBG_BASE).def
14 | DEF_OPTION_STLDBG = $(subst /,\,$(OUTPUT_DIR_STLDBG))\$(SO_NAME_STLDBG_BASE).def
15 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/icc.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/11/30 11:41:22 ptr>
2 | # $Id: icc.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 |
5 | # Oh, the commented below work for gmake 3.78.1 and above,
6 | # but phrase without tag not work for it. Since gmake 3.79
7 | # tag with assignment fail, but work assignment for all tags
8 | # (really that more correct).
9 |
10 | OPT += -KPIC
11 |
12 | ifeq ($(OSNAME),linux)
13 | dbg-shared: LDFLAGS += -shared -Wl,-h$(SO_NAME_DBGxx) ${LDSEARCH}
14 | stldbg-shared: LDFLAGS += -shared -Wl,-h$(SO_NAME_STLDBGxx) ${LDSEARCH}
15 | release-shared: LDFLAGS += -shared -Wl,-h$(SO_NAMExx) ${LDSEARCH}
16 | dbg-static: LDFLAGS += ${LDSEARCH}
17 | stldbg-static: LDFLAGS += ${LDSEARCH}
18 | release-static: LDFLAGS += ${LDSEARCH}
19 | endif
20 |
21 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/mwccnlm.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <05/05/06 17:29:15 ptr>
2 | # $Id: mwccnlm.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/rules-install-a.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/03/16 17:23:52 ptr>
2 | # $Id: rules-install-a.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | PHONY += install-release-static install-dbg-static install-stldbg-static
5 |
6 | ifneq (windows, $(OSNAME))
7 | install-release-static: release-static $(INSTALL_LIB_DIR)
8 | $(INSTALL_A) ${A_NAME_OUT} $(INSTALL_LIB_DIR)
9 |
10 | install-dbg-static: dbg-static $(INSTALL_LIB_DIR_DBG)
11 | $(INSTALL_A) ${A_NAME_OUT_DBG} $(INSTALL_LIB_DIR_DBG)
12 |
13 | install-stldbg-static: stldbg-static $(INSTALL_LIB_DIR_STLDBG)
14 | $(INSTALL_A) ${A_NAME_OUT_STLDBG} $(INSTALL_LIB_DIR_STLDBG)
15 | else
16 | install-release-static: release-static $(INSTALL_LIB_DIR)
17 | $(INSTALL_A) $(subst /,\,$(A_NAME_OUT) $(INSTALL_LIB_DIR)/)
18 |
19 | install-dbg-static: dbg-static $(INSTALL_LIB_DIR_DBG)
20 | $(INSTALL_A) $(subst /,\,$(A_NAME_OUT_DBG) $(INSTALL_LIB_DIR_DBG)/)
21 |
22 | install-stldbg-static: stldbg-static $(INSTALL_LIB_DIR_STLDBG)
23 | $(INSTALL_A) $(subst /,\,$(A_NAME_OUT_STLDBG) $(INSTALL_LIB_DIR_STLDBG)/)
24 | endif
25 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/lib/top.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/10 16:15:53 ptr>
2 | # $Id: top.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | LDFLAGS ?=
5 |
6 | include ${RULESBASE}/${USE_MAKE}/${OSNAME}/lib.mak
7 | include ${RULESBASE}/${USE_MAKE}/lib/${COMPILER_NAME}.mak
8 | include ${RULESBASE}/${USE_MAKE}/${OSNAME}/rules-so.mak
9 | include ${RULESBASE}/${USE_MAKE}/lib/rules-a.mak
10 | include ${RULESBASE}/${USE_MAKE}/${OSNAME}/rules-install-so.mak
11 | include ${RULESBASE}/${USE_MAKE}/lib/rules-install-a.mak
12 | include ${RULESBASE}/${USE_MAKE}/lib/clean.mak
13 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/linux/extern.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/12/08 01:44:00 ptr>
2 |
3 | STLPORT_LIB_DIR ?= $(STLPORT_DIR)/${TARGET_NAME}lib
4 | STLPORT_INCLUDE_DIR ?= $(STLPORT_DIR)/stlport
5 |
6 | # boost (http://www.boost.org, http://boost.sourceforge.net)
7 | BOOST_INCLUDE_DIR ?= ${BOOST_DIR}
8 |
9 | BOOST_DIR ?= ${SRCROOT}/../extern/boost
10 | STLPORT_DIR ?= /export/home/ptr/STLport.lab/STLport
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/linux/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/19 12:26:05 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/unix/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/linux/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:01:23 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | INSTALL := /usr/bin/install
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | # bash's built-in test is like extern
11 | # EXT_TEST := /usr/bin/test
12 | EXT_TEST := test
13 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/linux/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 20:59:42 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | SO := so
5 |
6 | ARCH := a
7 | ifdef TARGET_OS
8 | AR := ${TARGET_OS}-ar
9 | else
10 | AR := ar
11 | endif
12 | AR_INS_R := -rs
13 | AR_EXTR := -x
14 | AR_OUT = $@
15 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/netware/extern.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/06/03 21:34:35 ptr>
2 | # $Id: extern.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | MWCW_BASE ?= c:/Program Files/Metrowerks/CodeWarrior
5 | NWSDK_DIR ?= c:/Novell/ndk/nwsdk
6 |
7 | STLPORT_LIB_DIR ?= $(STLPORT_DIR)/${TARGET_NAME}lib
8 | STLPORT_INCLUDE_DIR ?= $(STLPORT_DIR)/stlport
9 |
10 | MWCW_NOVELL = $(MWCW_BASE)/Novell Support/Metrowerks Support
11 | MWCW_NOVELL_SDK = $(NWSDK_DIR)
12 |
13 | # boost (http://www.boost.org, http://boost.sourceforge.net)
14 | BOOST_INCLUDE_DIR ?= ${BOOST_DIR}
15 |
16 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/netware/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/07/15 18:23:04 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/cygming/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/netware/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:12:00 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | INSTALL := /usr/bin/install
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | # this work only with cygwin, so use built-in test:
11 | EXT_TEST := test
12 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/netware/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:07:10 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | SO := nlm
5 |
6 | ARCH := lib
7 | AR := mwldnlm -type library -msgstyle gcc -w off
8 | AR_INS_R :=
9 | AR_EXTR :=
10 | AR_OUT = -o $@
11 |
12 | EXE := .nlm
13 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/openbsd/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/19 12:26:05 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/unix/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/openbsd/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:10:45 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | INSTALL := /usr/bin/install
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | EXT_TEST := /usr/bin/test
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/openbsd/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:07:53 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | SO := so
5 |
6 | ARCH := a
7 | AR := ar
8 | AR_INS_R := -r
9 | AR_EXTR := -x
10 | AR_OUT = $@
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/sunos/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/19 12:26:05 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include ${RULESBASE}/${USE_MAKE}/unix/lib.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/sunos/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:10:32 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | INSTALL := /usr/ucb/install
5 |
6 | INSTALL_SO := ${INSTALL} -c -m 0755
7 | INSTALL_A := ${INSTALL} -c -m 0644
8 | INSTALL_EXE := ${INSTALL} -c -m 0755
9 |
10 | EXT_TEST := /usr/bin/test
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/sunos/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:08:34 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | SO := so
5 |
6 | ARCH := a
7 | AR := ar
8 | AR_INS_R := -rs
9 | AR_EXTR := -x
10 | AR_OUT = $@
11 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/windows/lib.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/07/15 18:23:04 ptr>
2 | # $Id: lib.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include ../Makefiles/gmake/cygming/lib.mak
5 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/windows/rules-install-so.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/07/15 18:26:22 ptr>
2 | # $Id: rules-install-so.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | INSTALL_TAGS ?= install-shared
5 |
6 | PHONY += install $(INSTALL_TAGS)
7 |
8 | install: $(INSTALL_TAGS)
9 |
10 | install-release-shared: release-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR)
11 | $(INSTALL_SO) $(subst /,\,$(SO_NAME_OUT)) $(subst /,\,$(INSTALL_BIN_DIR)/)
12 | $(INSTALL_SO) $(subst /,\,$(LIB_NAME_OUT)) $(subst /,\,$(INSTALL_LIB_DIR)/)
13 |
14 | install-dbg-shared: dbg-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR_DBG)
15 | $(INSTALL_SO) $(subst /,\,$(SO_NAME_OUT_DBG)) $(subst /,\,$(INSTALL_BIN_DIR)/)
16 | $(INSTALL_SO) $(subst /,\,$(LIB_NAME_OUT_DBG)) $(subst /,\,$(INSTALL_LIB_DIR_DBG)/)
17 |
18 | install-stldbg-shared: stldbg-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR_STLDBG)
19 | $(INSTALL_SO) $(subst /,\,$(SO_NAME_OUT_STLDBG)) $(subst /,\,$(INSTALL_BIN_DIR)/)
20 | $(INSTALL_SO) $(subst /,\,$(LIB_NAME_OUT_STLDBG)) $(subst /,\,$(INSTALL_LIB_DIR_STLDBG)/)
21 |
22 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/windows/rules-so.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/27 18:15:05 ptr>
2 | # $Id: rules-so.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include ../Makefiles/gmake/cygming/rules-so.mak
5 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/windows/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:12:38 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | RC := windres
5 | INSTALL := copy
6 |
7 | INSTALL_SO := ${INSTALL}
8 | INSTALL_A := ${INSTALL}
9 | INSTALL_EXE := ${INSTALL}
10 |
11 | EXT_TEST := test
12 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/windows/sysid.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/07/15 12:45:30 ptr>
2 | # $Id: sysid.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | OSNAME := windows
5 | OSREALNAME := mingw
6 | BUILD_OSNAME := windows
7 | BUILD_OSREALNAME := mingw
8 |
9 | OSREL =
10 | M_ARCH = i386
11 | P_ARCH = i386
12 | NODENAME = unknown
13 | SYSVER =
14 | USER = unknown
15 |
16 | BUILD_SYSTEM =
17 | BUILD_DATE =
18 |
19 |
--------------------------------------------------------------------------------
/build/Makefiles/gmake/windows/targetsys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <05/09/09 21:03:45 ptr>
2 | # $Id: targetsys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | include $(SRCROOT)/Makefiles/gmake/cygming/targetsys.mak
5 |
--------------------------------------------------------------------------------
/build/Makefiles/make.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/07/03 17:14:26 ptr>
2 | # $Id: make.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | USE_MAKE := gmake
5 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/evc-common.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/05/01 00:46:25 ptr>
2 | # $Id: evc-common.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | # missing defines in this file: LDFLAGS_COMMON
5 |
6 | # For CE, the linker by default uses WinMain() as entry point, using this we make it use the standard main()
7 | LDFLAGS_COMMON = $(LDFLAGS_COMMON) /entry:"mainACRTStartup"
8 |
9 | !ifndef LDLIBS
10 | LDLIBS =
11 | !endif
12 |
13 | LDFLAGS_REL = $(LDFLAGS_REL) $(LDFLAGS_COMMON) $(LDSEARCH)
14 | LDFLAGS_DBG = $(LDFLAGS_DBG) $(LDFLAGS_COMMON) $(LDSEARCH)
15 | LDFLAGS_STLDBG = $(LDFLAGS_STLDBG) $(LDFLAGS_COMMON) $(LDSEARCH)
16 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/evc3.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/05/01 00:46:25 ptr>
2 | # $Id: evc3.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | LDFLAGS_COMMON = $(LDFLAGS_COMMON) /base:"0x00010000"
5 |
6 | !include evc-common.mak
7 |
8 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/evc4.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/03/31 08:08:12 ptr>
2 | # $Id: evc4.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | LDFLAGS_COMMON = $(LDFLAGS_COMMON) /base:"0x00010000"
5 |
6 | !include evc-common.mak
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/evc8.mak:
--------------------------------------------------------------------------------
1 | # build/Makefiles/nmake/app/evc8.mak
2 |
3 | LDFLAGS_COMMON = $(LDFLAGS_COMMON)
4 |
5 | !include evc-common.mak
6 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/icl.mak:
--------------------------------------------------------------------------------
1 | !include vc-common.mak
2 |
3 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/rules-exe-windows.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/26 23:11:03 ptr>
2 | # $Id: rules-exe-windows.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | release-shared: $(OUTPUT_DIR) $(PRG)
5 | release-static: $(OUTPUT_DIR_A) $(PRG_A)
6 |
7 | dbg-shared: $(OUTPUT_DIR_DBG) $(PRG_DBG)
8 | dbg-static: $(OUTPUT_DIR_A_DBG) $(PRG_A_DBG)
9 |
10 | stldbg-shared: $(OUTPUT_DIR_STLDBG) $(PRG_STLDBG)
11 | stldbg-static: $(OUTPUT_DIR_A_STLDBG) $(PRG_A_STLDBG)
12 |
13 | $(PRG): $(OBJ) $(LIBSDEP)
14 | $(LINK_cc_REL) $(LINK_OUTPUT_OPTION) $(OBJ) $(LDLIBS_REL) $(LDLIBS)
15 |
16 | $(PRG_A): $(OBJ_A) $(LIBSDEP)
17 | $(LINK_cc_A_REL) $(LINK_OUTPUT_OPTION) $(OBJ_A) $(LDLIBS_A_REL) $(LDLIBS)
18 |
19 | $(PRG_DBG): $(OBJ_DBG) $(LIBSDEP)
20 | $(LINK_cc_DBG) $(LINK_OUTPUT_OPTION) $(OBJ_DBG) $(LDLIBS_DBG) $(LDLIBS)
21 |
22 | $(PRG_A_DBG): $(OBJ_A_DBG) $(LIBSDEP)
23 | $(LINK_cc_A_DBG) $(LINK_OUTPUT_OPTION) $(OBJ_A_DBG) $(LDLIBS_A_DBG) $(LDLIBS)
24 |
25 | $(PRG_STLDBG): $(OBJ_STLDBG) $(LIBSDEP)
26 | $(LINK_cc_STLDBG) $(LINK_OUTPUT_OPTION) $(OBJ_STLDBG) $(LDLIBS_STLDBG) $(LDLIBS)
27 |
28 | $(PRG_A_STLDBG): $(OBJ_A_STLDBG) $(LIBSDEP)
29 | $(LINK_cc_A_STLDBG) $(LINK_OUTPUT_OPTION) $(OBJ_A_STLDBG) $(LDLIBS_A_STLDBG) $(LDLIBS)
30 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/rules-install-a.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/10/17 19:29:26 ptr>
2 | # $Id: rules-install-a.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | install-static: install-release-static install-dbg-static install-stldbg-static
5 |
6 | install-release-static: release-static $(INSTALL_STATIC_BIN_DIR)
7 | $(INSTALL_A) $(PRG_A) $(INSTALL_STATIC_BIN_DIR)
8 | @if exist $(A_PDB_NAME_OUT) $(INSTALL_A) $(A_PDB_NAME_OUT) $(INSTALL_STATIC_BIN_DIR)
9 |
10 | install-dbg-static: dbg-static $(INSTALL_STATIC_BIN_DIR_DBG)
11 | $(INSTALL_A) $(PRG_A_DBG) $(INSTALL_STATIC_BIN_DIR_DBG)
12 | @if exist $(A_PDB_NAME_OUT_DBG) $(INSTALL_A) $(A_PDB_NAME_OUT_DBG) $(INSTALL_STATIC_BIN_DIR_DBG)
13 |
14 | install-stldbg-static: stldbg-static $(INSTALL_STATIC_BIN_DIR_STLDBG)
15 | $(INSTALL_A) $(PRG_A_STLDBG) $(INSTALL_STATIC_BIN_DIR_STLDBG)
16 | @if exist $(A_PDB_NAME_OUT_STLDBG) $(INSTALL_A) $(A_PDB_NAME_OUT_STLDBG) $(INSTALL_STATIC_BIN_DIR_STLDBG)
17 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/rules-install-so.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/10/26 16:42:14 ptr>
2 | # $Id: rules-install-so.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !ifndef INSTALL_TAGS
5 | INSTALL_TAGS= install-shared install-static
6 | !endif
7 |
8 | install: $(INSTALL_TAGS)
9 |
10 | install-release-shared: release-shared $(INSTALL_BIN_DIR)
11 | $(INSTALL_SO) $(PRG) $(INSTALL_BIN_DIR)
12 | $(INSTALL_SO) $(PDB_NAME_OUT) $(INSTALL_BIN_DIR)
13 | @if exist $(MANIFEST_NAME_OUT) $(INSTALL_SO) $(MANIFEST_NAME_OUT) $(INSTALL_BIN_DIR)
14 |
15 | install-dbg-shared: dbg-shared $(INSTALL_BIN_DIR_DBG)
16 | $(INSTALL_SO) $(PRG_DBG) $(INSTALL_BIN_DIR_DBG)
17 | $(INSTALL_SO) $(PDB_NAME_OUT_DBG) $(INSTALL_BIN_DIR_DBG)
18 | @if exist $(MANIFEST_NAME_OUT_DBG) $(INSTALL_SO) $(MANIFEST_NAME_OUT_DBG) $(INSTALL_BIN_DIR_DBG)
19 |
20 | install-stldbg-shared: stldbg-shared $(INSTALL_BIN_DIR_STLDBG)
21 | $(INSTALL_SO) $(PRG_STLDBG) $(INSTALL_BIN_DIR_STLDBG)
22 | $(INSTALL_SO) $(PDB_NAME_OUT_STLDBG) $(INSTALL_BIN_DIR_STLDBG)
23 | @if exist $(MANIFEST_NAME_OUT_STLDBG) $(INSTALL_SO) $(MANIFEST_NAME_OUT_STLDBG) $(INSTALL_BIN_DIR_STLDBG)
24 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/top.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/09/28 18:46:10 ptr>
2 | # $Id: top.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !ifndef LDFLAGS
5 | LDFLAGS =
6 | !endif
7 |
8 | !include $(RULESBASE)/$(USE_MAKE)/app/macro.mak
9 | !include $(RULESBASE)/$(USE_MAKE)/app/$(COMPILER_NAME).mak
10 | !include $(RULESBASE)/$(USE_MAKE)/app/rules-exe-$(OSNAME).mak
11 |
12 | !include $(RULESBASE)/$(USE_MAKE)/app/rules-install-so.mak
13 | !include $(RULESBASE)/$(USE_MAKE)/app/rules-install-a.mak
14 |
15 | !include $(RULESBASE)/$(USE_MAKE)/app/clean.mak
16 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/vc-common.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/09/28 17:34:35 ptr>
2 | # $Id: vc-common.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !ifndef LDLIBS
5 | LDLIBS =
6 | !endif
7 |
8 | #LDSEARCH = $(LDSEARCH) /LIBPATH:"$(MSVC_LIB_DIR)"
9 |
10 | LDFLAGS_REL = $(LDFLAGS_REL) $(LDSEARCH)
11 | LDFLAGS_A_REL = $(LDFLAGS_A_REL) $(LDSEARCH)
12 | LDFLAGS_DBG = $(LDFLAGS_DBG) $(LDSEARCH)
13 | LDFLAGS_STLDBG = $(LDFLAGS_STLDBG) $(LDSEARCH)
14 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/vc6.mak:
--------------------------------------------------------------------------------
1 | OPT_STLDBG = $(OPT_STLDBG) /Zm800
2 | OPT_STATIC_STLDBG = $(OPT_STATIC_STLDBG) /Zm800
3 |
4 | !include vc-common.mak
5 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/vc70.mak:
--------------------------------------------------------------------------------
1 | !include vc-common.mak
2 |
3 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/vc71.mak:
--------------------------------------------------------------------------------
1 |
2 | !include vc-common.mak
3 |
4 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/app/vc8.mak:
--------------------------------------------------------------------------------
1 |
2 | !include vc-common.mak
3 |
4 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/clean.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/29 22:20:01 ptr>
2 | # $Id: clean.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | clean:
5 | @if exist $(OUTPUT_DIR)\*.o del /F /Q $(OUTPUT_DIR)\*.o
6 | @if exist $(OUTPUT_DIR_DBG)\*.o del /F /Q $(OUTPUT_DIR_DBG)\*.o
7 | @if exist $(OUTPUT_DIR_STLDBG)\*.o del /F /Q $(OUTPUT_DIR_STLDBG)\*.o
8 | @if exist $(OUTPUT_DIR_A)\*.o del /F /Q $(OUTPUT_DIR_A)\*.o
9 | @if exist $(OUTPUT_DIR_A_DBG)\*.o del /F /Q $(OUTPUT_DIR_A_DBG)\*.o
10 | @if exist $(OUTPUT_DIR_A_STLDBG)\*.o del /F /Q $(OUTPUT_DIR_A_STLDBG)\*.o
11 | @if exist $(OUTPUT_DIR)\*.obj del /F /Q $(OUTPUT_DIR)\*.obj
12 | @if exist $(OUTPUT_DIR_DBG)\*.obj del /F /Q $(OUTPUT_DIR_DBG)\*.obj
13 | @if exist $(OUTPUT_DIR_STLDBG)\*.obj del /F /Q $(OUTPUT_DIR_STLDBG)\*.obj
14 | @if exist $(OUTPUT_DIR_A)\*.obj del /F /Q $(OUTPUT_DIR_A)\*.obj
15 | @if exist $(OUTPUT_DIR_A_DBG)\*.obj del /F /Q $(OUTPUT_DIR_A_DBG)\*.obj
16 | @if exist $(OUTPUT_DIR_A_STLDBG)\*.obj del /F /Q $(OUTPUT_DIR_A_STLDBG)\*.obj
17 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/icl.mak:
--------------------------------------------------------------------------------
1 |
2 | CXX = icl
3 | CC = icl
4 | LINK = xilink
5 |
6 | CFLAGS_COMMON = /nologo /W4 /GR /GX
7 | CXXFLAGS_COMMON = /nologo /W4 /GR /GX
8 |
9 | !include $(RULESBASE)/$(USE_MAKE)/vc-common.mak
10 |
11 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/evc-common.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/05/01 00:34:42 ptr>
2 | # $Id: evc-common.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | # defines missing in this file: LDFLAGS_COMMON
5 |
6 | !ifndef LDLIBS
7 | LDLIBS =
8 | !endif
9 |
10 | LDFLAGS_REL = $(LDFLAGS_REL) /DLL $(LDSEARCH) $(LDFLAGS_COMMON) /VERSION:$(MAJOR).$(MINOR)
11 | LDFLAGS_DBG = $(LDFLAGS_DBG) /DLL $(LDSEARCH) $(LDFLAGS_COMMON) /VERSION:$(MAJOR).$(MINOR)
12 | LDFLAGS_STLDBG = $(LDFLAGS_STLDBG) /DLL $(LDSEARCH) $(LDFLAGS_COMMON) /VERSION:$(MAJOR).$(MINOR)
13 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/evc3.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/05/01 00:34:42 ptr>
2 | # $Id: evc3.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | LDFLAGS_COMMON = $(LDFLAGS_COMMON) /base:"0x00100000"
5 |
6 | !include evc-common.mak
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/evc4.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/03/31 08:10:19 ptr>
2 | # $Id: evc4.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | LDFLAGS_COMMON = $(LDFLAGS_COMMON) /base:"0x00100000"
5 |
6 | !include evc-common.mak
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/evc8.mak:
--------------------------------------------------------------------------------
1 | # build/Makefiles/nmake/lib/evc8.mak
2 |
3 | !include evc-common.mak
4 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/icl.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:09:57 ptr>
2 | # $Id: icl.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !include $(RULESBASE)/$(USE_MAKE)/lib/vc-common.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/rules-a.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:41:05 ptr>
2 | # $Id: rules-a.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | # Shared libraries tags
5 |
6 | release-static: $(OUTPUT_DIR_A) $(A_NAME_OUT)
7 |
8 | dbg-static: $(OUTPUT_DIR_A_DBG) $(A_NAME_OUT_DBG)
9 |
10 | stldbg-static: $(OUTPUT_DIR_A_STLDBG) $(A_NAME_OUT_STLDBG)
11 |
12 | $(A_NAME_OUT): $(OBJ_A)
13 | $(AR) $(AR_INS_R) $(AR_OUT) $(OBJ_A)
14 |
15 | $(A_NAME_OUT_DBG): $(OBJ_A_DBG)
16 | $(AR) $(AR_INS_R) $(AR_OUT) $(OBJ_A_DBG)
17 |
18 | $(A_NAME_OUT_STLDBG): $(OBJ_A_STLDBG)
19 | $(AR) $(AR_INS_R) $(AR_OUT) $(OBJ_A_STLDBG)
20 |
21 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/rules-install-a.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/10/17 19:29:26 ptr>
2 | # $Id: rules-install-a.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | install-static: install-release-static install-dbg-static install-stldbg-static
5 |
6 | install-release-static: release-static $(INSTALL_STATIC_LIB_DIR)
7 | $(INSTALL_A) $(A_NAME_OUT) $(INSTALL_STATIC_LIB_DIR)
8 | @if exist $(A_PDB_NAME_OUT) $(INSTALL_A) $(A_PDB_NAME_OUT) $(INSTALL_STATIC_LIB_DIR)
9 |
10 | install-dbg-static: dbg-static $(INSTALL_STATIC_LIB_DIR_DBG)
11 | $(INSTALL_A) $(A_NAME_OUT_DBG) $(INSTALL_STATIC_LIB_DIR_DBG)
12 | @if exist $(A_PDB_NAME_OUT_DBG) $(INSTALL_A) $(A_PDB_NAME_OUT_DBG) $(INSTALL_STATIC_LIB_DIR_DBG)
13 |
14 | install-stldbg-static: stldbg-static $(INSTALL_STATIC_LIB_DIR_STLDBG)
15 | $(INSTALL_A) $(A_NAME_OUT_STLDBG) $(INSTALL_STATIC_LIB_DIR_STLDBG)
16 | @if exist $(A_PDB_NAME_OUT_STLDBG) $(INSTALL_A) $(A_PDB_NAME_OUT_STLDBG) $(INSTALL_STATIC_LIB_DIR_STLDBG)
17 |
18 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/rules-install-so.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/10/26 16:42:14 ptr>
2 | # $Id: rules-install-so.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !ifndef INSTALL_TAGS
5 | INSTALL_TAGS= install-shared install-static
6 | !endif
7 |
8 | install: $(INSTALL_TAGS)
9 |
10 | install-release-shared: release-shared $(INSTALL_BIN_DIR) $(INSTALL_LIB_DIR)
11 | $(INSTALL_SO) $(SO_NAME_OUT) $(INSTALL_BIN_DIR)
12 | $(INSTALL_SO) $(PDB_NAME_OUT) $(INSTALL_BIN_DIR)
13 | $(INSTALL_SO) $(LIB_NAME_OUT) $(INSTALL_LIB_DIR)
14 | $(INSTALL_SO) $(EXP_NAME_OUT) $(INSTALL_LIB_DIR)
15 |
16 | install-dbg-shared: dbg-shared $(INSTALL_BIN_DIR_DBG) $(INSTALL_LIB_DIR_DBG)
17 | $(INSTALL_SO) $(SO_NAME_OUT_DBG) $(INSTALL_BIN_DIR_DBG)
18 | $(INSTALL_SO) $(PDB_NAME_OUT_DBG) $(INSTALL_BIN_DIR_DBG)
19 | $(INSTALL_SO) $(LIB_NAME_OUT_DBG) $(INSTALL_LIB_DIR_DBG)
20 | $(INSTALL_SO) $(EXP_NAME_OUT_DBG) $(INSTALL_LIB_DIR_DBG)
21 |
22 | install-stldbg-shared: stldbg-shared $(INSTALL_BIN_DIR_STLDBG) $(INSTALL_LIB_DIR_STLDBG)
23 | $(INSTALL_SO) $(SO_NAME_OUT_STLDBG) $(INSTALL_BIN_DIR_STLDBG)
24 | $(INSTALL_SO) $(PDB_NAME_OUT_STLDBG) $(INSTALL_BIN_DIR_STLDBG)
25 | $(INSTALL_SO) $(LIB_NAME_OUT_STLDBG) $(INSTALL_LIB_DIR_STLDBG)
26 | $(INSTALL_SO) $(EXP_NAME_OUT_STLDBG) $(INSTALL_LIB_DIR_STLDBG)
27 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/rules-so.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/13 17:47:13 ptr>
2 | # $Id: rules-so.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | # Shared libraries tags
5 |
6 | release-shared: $(OUTPUT_DIR) $(SO_NAME_OUT)
7 |
8 | dbg-shared: $(OUTPUT_DIR_DBG) $(SO_NAME_OUT_DBG)
9 |
10 | stldbg-shared: $(OUTPUT_DIR_STLDBG) $(SO_NAME_OUT_STLDBG)
11 |
12 | # .o{$(OUTPUT_DIR)}.o:
13 |
14 | $(SO_NAME_OUT): $(OBJ) $(RES) $(LIBSDEP)
15 | $(LINK_cc_REL) $(LINK_OUTPUT_OPTION) $(OBJ) $(RES) $(LDLIBS)
16 | @if exist $(MANIFEST_NAME_OUT) mt /nologo /manifest $(MANIFEST_NAME_OUT) /outputresource:$(SO_NAME_OUT);#2
17 |
18 | $(SO_NAME_OUT_DBG): $(OBJ_DBG) $(RES_DBG) $(LIBSDEP)
19 | $(LINK_cc_DBG) $(LINK_OUTPUT_OPTION) $(OBJ_DBG) $(RES_DBG) $(LDLIBS)
20 | @if exist $(MANIFEST_NAME_OUT_DBG) mt /nologo /manifest $(MANIFEST_NAME_OUT_DBG) /outputresource:$(SO_NAME_OUT_DBG);#2
21 |
22 | $(SO_NAME_OUT_STLDBG): $(OBJ_STLDBG) $(RES_STLDBG) $(LIBSDEP)
23 | $(LINK_cc_STLDBG) $(LINK_OUTPUT_OPTION) $(OBJ_STLDBG) $(RES_STLDBG) $(LDLIBS)
24 | @if exist $(MANIFEST_NAME_OUT_STLDBG) mt /nologo /manifest $(MANIFEST_NAME_OUT_STLDBG) /outputresource:$(SO_NAME_OUT_STLDBG);#2
25 |
26 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/top.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/26 16:04:46 ptr>
2 | # $Id: top.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !ifndef LDFLAGS
5 | LDFLAGS =
6 | !endif
7 |
8 | !include $(RULESBASE)/$(USE_MAKE)/lib/macro.mak
9 | !include $(RULESBASE)/$(USE_MAKE)/lib/$(COMPILER_NAME).mak
10 | !include $(RULESBASE)/$(USE_MAKE)/lib/rules-so.mak
11 | !include $(RULESBASE)/$(USE_MAKE)/lib/rules-a.mak
12 | !include $(RULESBASE)/$(USE_MAKE)/lib/rules-install-so.mak
13 | !include $(RULESBASE)/$(USE_MAKE)/lib/rules-install-a.mak
14 | !include $(RULESBASE)/$(USE_MAKE)/lib/clean.mak
15 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/vc-common.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:09:57 ptr>
2 | # $Id: vc-common.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 |
5 | # Oh, the commented below work for gmake 3.78.1 and above,
6 | # but phrase without tag not work for it. Since gmake 3.79
7 | # tag with assignment fail, but work assignment for all tags
8 | # (really that more correct).
9 |
10 | !ifndef LDLIBS
11 | LDLIBS =
12 | !endif
13 |
14 | #Per default MSVC vcvars32.bat script set the LIB environment
15 | #variable to get the native library, there is no need to add
16 | #them here
17 | #LDSEARCH = $(LDSEARCH) /LIBPATH:"$(MSVC_LIB_DIR)"
18 |
19 | LDFLAGS_REL = $(LDFLAGS_REL) /dll $(LDSEARCH)
20 | LDFLAGS_DBG = $(LDFLAGS_DBG) /dll $(LDSEARCH)
21 | LDFLAGS_STLDBG = $(LDFLAGS_STLDBG) /dll $(LDSEARCH)
22 | # LDFLAGS_STATIC = $(LDSEARCH)
23 |
24 | LDFLAGS_REL = $(LDFLAGS_REL) /version:$(MAJOR).$(MINOR)
25 | LDFLAGS_DBG = $(LDFLAGS_DBG) /version:$(MAJOR).$(MINOR)
26 | LDFLAGS_STLDBG = $(LDFLAGS_STLDBG) /version:$(MAJOR).$(MINOR)
27 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/vc6.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:09:57 ptr>
2 | # $Id: vc6.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 |
5 | !include vc-common.mak
6 |
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/vc70.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:09:57 ptr>
2 | # $Id: vc70.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 |
5 | !include vc-common.mak
6 |
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/vc71.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:09:57 ptr>
2 | # $Id: vc71.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 |
5 | !include vc-common.mak
6 |
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/lib/vc8.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <03/10/17 14:09:57 ptr>
2 | # $Id: vc8.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | !include vc-common.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/sys.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/09/28 18:59:23 ptr>
2 | # $Id: sys.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | # shared library:
5 | SO = dll
6 | # The cooool Microsoft programmers pass LIB from line below into environment var!!!!
7 | # LIB = lib
8 | LIBEXT = lib
9 | EXP = exp
10 | # executable:
11 | EXE = .exe
12 |
13 | # static library extention:
14 | ARCH = lib
15 | AR = lib /nologo
16 | AR_INS_R =
17 | AR_EXTR =
18 | AR_OUT = /out:$@
19 |
20 | INSTALL = copy
21 |
22 | INSTALL_SO = $(INSTALL)
23 | INSTALL_A = $(INSTALL)
24 | INSTALL_EXE = $(INSTALL)
25 |
26 | # compiler, compiler options
27 | !include $(RULESBASE)/$(USE_MAKE)/$(COMPILER_NAME).mak
28 |
29 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/sysid.mak:
--------------------------------------------------------------------------------
1 | # Time-stamp: <03/07/15 12:45:30 ptr>
2 | # $Id: sysid.mak,v 1.2 2008-02-26 14:59:42 bazis Exp $
3 |
4 | !ifndef BUILD_DATE
5 |
6 | OSNAME = windows
7 |
8 | OSREL =
9 | M_ARCH = i386
10 | P_ARCH = i386
11 | NODENAME = unknown
12 | SYSVER =
13 | USER = unknown
14 |
15 | BUILD_SYSTEM =
16 | BUILD_DATE =
17 |
18 | !endif
19 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/vc6.mak:
--------------------------------------------------------------------------------
1 |
2 | CFLAGS_COMMON = /nologo /W4 /GX
3 | CXXFLAGS_COMMON = /nologo /W4 /GX
4 |
5 | !include vc-common.mak
6 |
7 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/vc70.mak:
--------------------------------------------------------------------------------
1 | #!ifndef MSVC_DIR
2 | #MSVC_DIR = c:\Program Files\Microsoft Visual Studio .NET\VC7
3 | #!endif
4 |
5 | CFLAGS_COMMON = /nologo /W4 /GX
6 | CXXFLAGS_COMMON = /nologo /W4 /GX
7 |
8 |
9 | !include vc-common.mak
10 |
11 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/vc71.mak:
--------------------------------------------------------------------------------
1 | #!ifndef MSVC_DIR
2 | #MSVC_DIR = c:\Program Files\Microsoft Visual Studio .NET 2003\VC7
3 | #!endif
4 |
5 | CFLAGS_COMMON = /nologo /W4 /GX
6 | CXXFLAGS_COMMON = /nologo /W4 /GX
7 |
8 | OPT_REL = $(OPT_REL) /GL
9 | LDFLAGS_REL = $(LDFLAGS_REL) /LTCG
10 |
11 |
12 | !include vc-common.mak
13 |
14 |
--------------------------------------------------------------------------------
/build/Makefiles/nmake/vc8.mak:
--------------------------------------------------------------------------------
1 |
2 | CFLAGS_COMMON = /nologo /W4 /Wp64 /GR /EHsc
3 | CXXFLAGS_COMMON = /nologo /W4 /Wp64 /GR /EHsc
4 |
5 | #DEFS_DBG = /RTC1 /GS
6 | DEFS_STLDBG = /GS
7 | #DEFS_STATIC_DBG = /RTC1 /GS
8 | DEFS_STATIC_STLDBG = /GS
9 |
10 | OPT_REL = $(OPT_REL) /GL
11 | LDFLAGS_REL = $(LDFLAGS_REL) /LTCG
12 |
13 |
14 | !include vc-common.mak
15 |
16 |
--------------------------------------------------------------------------------
/build/Makefiles/rules-res.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/27 18:12:46 ptr>
2 | # $Id: rules-res.mak,v 1.2 2008-02-26 14:59:41 bazis Exp $
3 |
4 | # Rules for release output:
5 |
6 | $(OUTPUT_DIR)/%.res: $(WORD1)%.rc
7 | $(COMPILE.rc) $(RC_OUTPUT_OPTION) $<
8 |
9 | # Rules for debug output:
10 |
11 | $(OUTPUT_DIR_DBG)/%.res: $(WORD1)%.rc
12 | $(COMPILE.rc) $(RC_OUTPUT_OPTION) $<
13 |
14 | # Rules for STLport debug output:
15 |
16 | $(OUTPUT_DIR_STLDBG)/%.res: $(WORD1)%.rc
17 | $(COMPILE.rc) $(RC_OUTPUT_OPTION) $<
18 |
19 |
20 |
--------------------------------------------------------------------------------
/build/Makefiles/templates/Makefile-app.inc:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <02/04/17 11:04:32 ptr>
2 | # $Id: Makefile-app.inc,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | PRGNAME = prog
5 | SRC_CC = prog.cc
6 |
--------------------------------------------------------------------------------
/build/Makefiles/templates/Makefile-gcc-app:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/07/09 18:08:47 ptr>
2 | # $Id: Makefile-gcc-app,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ../../..
5 | COMPILER_NAME := gcc
6 |
7 | include Makefile.inc
8 | include ${SRCROOT}/Makefiles/top.mak
9 |
10 |
11 | INCLUDES += -I$(SRCROOT)/include -I$(STLPORT_INCLUDE_DIR)
12 |
13 | release-shared: LDSEARCH = -L${STLPORT_LIB_DIR} -L${CoMT_LIB_DIR}
14 | stldbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR} -L${CoMT_LIB_DIR_STLDBG}
15 | dbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR} -L${CoMT_LIB_DIR_DBG}
16 |
17 | ifeq ($(OSNAME),sunos)
18 | release-shared : LDLIBS = -lstlport_gcc -lrt
19 | stldbg-shared : LDLIBS = -lstlport_gcc_stldebug -lrt
20 | dbg-shared : LDLIBS = -lstlport_gcc -lrt
21 | else
22 | release-shared : LDLIBS = -lstlport_gcc -lxmt_gcc
23 | stldbg-shared : LDLIBS = -lstlport_gcc_stldebug -lxmt_gcc_stl-g
24 | dbg-shared : LDLIBS = -lstlport_gcc -lxmt_gcc-g
25 | endif
26 |
27 |
--------------------------------------------------------------------------------
/build/Makefiles/templates/Makefile-gcc-lib:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/07/09 18:08:47 ptr>
2 | # $Id: Makefile-gcc-lib,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ../..
5 | COMPILER_NAME := gcc
6 |
7 | STLPORT_LIB_DIR = /export/home/ptr/STLport.lab/STLport/lib
8 | STLPORT_INCLUDE_DIR = /export/home/ptr/STLport.lab/STLport/stlport
9 | include Makefile.inc
10 | include ${SRCROOT}/Makefiles/top.mak
11 |
12 |
13 | INCLUDES += -I$(SRCROOT)/include -I$(STLPORT_INCLUDE_DIR)
14 |
15 | ifeq ($(OSNAME),linux)
16 | release-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
17 | stldbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
18 | dbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
19 | endif
20 |
21 | ifeq ($(OSNAME),sunos)
22 | release-shared : LDLIBS = -lstlport_gcc -lrt
23 | stldbg-shared : LDLIBS = -lstlport_gcc_stldebug -lrt
24 | dbg-shared : LDLIBS = -lstlport_gcc -lrt
25 | else
26 | release-shared : LDLIBS = -lstlport_gcc
27 | stldbg-shared : LDLIBS = -lstlport_gcc_stldebug
28 | dbg-shared : LDLIBS = -lstlport_gcc
29 | endif
30 |
31 |
--------------------------------------------------------------------------------
/build/Makefiles/templates/Makefile-lib.inc:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/07/05 21:43:31 ptr>
2 | # $Id: Makefile-lib.inc,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | LIBNAME = mylib
5 | MAJOR = 1
6 | MINOR = 0
7 | PATCH = 0
8 | SRC_CC = file1.cc file2.cc
9 |
--------------------------------------------------------------------------------
/build/lib/CC.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: CC.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ..
5 | COMPILER_NAME := CC
6 |
7 | STLPORT_ETC_DIR = ../../etc
8 | STLPORT_INCLUDE_DIR = ../../stlport
9 | include Makefile.inc
10 | include ${SRCROOT}/Makefiles/top.mak
11 |
12 | INCLUDES += -I. -I$(STLPORT_INCLUDE_DIR)
13 |
14 | # options for build with boost support
15 | ifdef STLP_BUILD_BOOST_PATH
16 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
17 | endif
18 |
19 |
--------------------------------------------------------------------------------
/build/lib/aCC.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: aCC.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ..
5 | COMPILER_NAME := aCC
6 |
7 | STLPORT_INCLUDE_DIR = ../../stlport
8 | include Makefile.inc
9 | include ${SRCROOT}/Makefiles/top.mak
10 |
11 |
12 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
13 |
14 | # options for build with boost support
15 | ifdef STLP_BUILD_BOOST_PATH
16 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
17 | endif
18 |
19 |
--------------------------------------------------------------------------------
/build/lib/bcc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: bcc.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ..
5 | COMPILER_NAME := bcc
6 | #SEP := \\
7 | OBJ_EXT := obj
8 |
9 | ifndef INCLUDE
10 | $(error Missing INCLUDE environment variable definition. Please see doc/README.borland \
11 | for instructions about how to prepare Borland compiler to build STLport libraries.)
12 | endif
13 |
14 | STLPORT_INCLUDE_DIR = ../../stlport
15 | include Makefile.inc
16 | include ${SRCROOT}/Makefiles/top.mak
17 |
18 |
19 | #DEFS += -D__BUILDING_STLPORT
20 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
21 |
22 | # options for build with boost support
23 | ifdef STLP_BUILD_BOOST_PATH
24 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
25 | endif
26 |
27 |
--------------------------------------------------------------------------------
/build/lib/dmc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: dmc.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ..
5 | COMPILER_NAME := dmc
6 | #SEP := \\
7 | OBJ_EXT := obj
8 |
9 | STLPORT_INCLUDE_DIR = ../../stlport
10 | include Makefile.inc
11 | include ${SRCROOT}/Makefiles/top.mak
12 |
13 |
14 | DEFS += -D__BUILDING_STLPORT
15 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
16 |
17 | # options for build with boost support
18 | ifdef STLP_BUILD_BOOST_PATH
19 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
20 | endif
21 |
22 |
--------------------------------------------------------------------------------
/build/lib/gcc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/12/27 10:54:25 ptr>
2 |
3 | SRCROOT := ..
4 | COMPILER_NAME := gcc
5 |
6 | STLPORT_INCLUDE_DIR = ../../stlport
7 | include Makefile.inc
8 | include ${SRCROOT}/Makefiles/top.mak
9 |
10 | ifeq ($(OSNAME),linux)
11 | DEFS += -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE
12 | endif
13 |
14 | # options for build with boost support
15 | ifdef STLP_BUILD_BOOST_PATH
16 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
17 | endif
18 |
--------------------------------------------------------------------------------
/build/lib/icc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: icc.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ..
5 | COMPILER_NAME := icc
6 |
7 | STLPORT_INCLUDE_DIR = ../../stlport
8 | include Makefile.inc
9 | include ${SRCROOT}/Makefiles/top.mak
10 |
11 |
12 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
13 |
14 | ifeq ($(OSNAME),linux)
15 | DEFS += -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE
16 | endif
17 |
18 | # options for build with boost support
19 | ifdef STLP_BUILD_BOOST_PATH
20 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
21 | endif
22 |
23 |
--------------------------------------------------------------------------------
/build/lib/icl.mak:
--------------------------------------------------------------------------------
1 |
2 | COMPILER_NAME=icl
3 |
4 | !include msvc.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/lib/msvc.mak:
--------------------------------------------------------------------------------
1 | !if EXIST( ..\Makefiles\config.mak )
2 | !include ..\Makefiles\config.mak
3 | !endif
4 |
5 | !ifndef COMPILER_NAME
6 | !error No compiler set, please run 'configure --help' first and chose a compiler.
7 | !endif
8 |
9 | !if (("$(COMPILER_NAME)" != "vc6") && \
10 | ("$(COMPILER_NAME)" != "vc70") && \
11 | ("$(COMPILER_NAME)" != "vc71") && \
12 | ("$(COMPILER_NAME)" != "vc8") && \
13 | ("$(COMPILER_NAME)" != "icl"))
14 | !error '$(COMPILER_NAME)' not supported by this make file, please rerun 'configure' script and follow instructions.
15 | !endif
16 |
17 | SRCROOT=..
18 |
19 | STLPORT_INCLUDE_DIR = ../../stlport
20 | !include Makefile.inc
21 |
22 | INCLUDES=$(INCLUDES) /I$(STLPORT_INCLUDE_DIR)
23 |
24 | RC_FLAGS_REL = /I$(STLPORT_INCLUDE_DIR) /D "COMP=$(COMPILER_NAME)"
25 | RC_FLAGS_DBG = /I$(STLPORT_INCLUDE_DIR) /D "COMP=$(COMPILER_NAME)"
26 | RC_FLAGS_STLDBG = /I$(STLPORT_INCLUDE_DIR) /D "COMP=$(COMPILER_NAME)"
27 |
28 | #Even if pure release and dbg targets do not need additionnal memory
29 | #to be built they might if user wants to build a STL safe release build
30 | #for instance.
31 | OPT = /Zm800
32 |
33 | !include $(SRCROOT)/Makefiles/nmake/top.mak
34 |
--------------------------------------------------------------------------------
/build/lib/mwccnlm.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/06/03 21:38:08 ptr>
2 | # $Id: mwccnlm.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ..
5 | COMPILER_NAME := mwccnlm
6 |
7 | STLPORT_INCLUDE_DIR = ../../stlport
8 | include Makefile.inc
9 | include ${SRCROOT}/Makefiles/top.mak
10 |
11 |
12 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
13 |
14 | # options for build with boost support
15 | ifdef STLP_BUILD_BOOST_PATH
16 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
17 | endif
18 |
19 |
--------------------------------------------------------------------------------
/build/misc/cxa_atexit/Makefile.inc:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/05/16 22:07:32 ptr>
2 |
3 | LIBNAME = cxa
4 | MAJOR = 0
5 | MINOR = 0
6 | PATCH = 1
7 | SRC_C = ../../../src/cxa.c
8 |
--------------------------------------------------------------------------------
/build/misc/cxa_atexit/gcc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: gcc.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ../..
5 | COMPILER_NAME := gcc
6 |
7 | include Makefile.inc
8 | include ${SRCROOT}/Makefiles/top.mak
9 |
10 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
11 |
12 | ifeq ($(OSNAME),linux)
13 | DEFS += -D_GNU_SOURCE
14 | endif
15 |
--------------------------------------------------------------------------------
/build/test/eh/Makefile.inc:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <05/03/29 23:39:01 ptr>
2 | # $Id: Makefile.inc,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | # this is the version number of needed STLport library for linking
5 | LIBMAJOR = 5
6 | LIBMINOR = 1
7 |
8 | PRGNAME = eh_test
9 | SRC_CPP = ../../../test/eh/TestClass.cpp \
10 | ../../../test/eh/main.cpp \
11 | ../../../test/eh/nc_alloc.cpp \
12 | ../../../test/eh/random_number.cpp \
13 | ../../../test/eh/test_algo.cpp \
14 | ../../../test/eh/test_algobase.cpp \
15 | ../../../test/eh/test_list.cpp \
16 | ../../../test/eh/test_slist.cpp \
17 | ../../../test/eh/test_bit_vector.cpp \
18 | ../../../test/eh/test_vector.cpp \
19 | ../../../test/eh/test_deque.cpp \
20 | ../../../test/eh/test_set.cpp \
21 | ../../../test/eh/test_map.cpp \
22 | ../../../test/eh/test_hash_map.cpp \
23 | ../../../test/eh/test_hash_set.cpp \
24 | ../../../test/eh/test_rope.cpp \
25 | ../../../test/eh/test_string.cpp \
26 | ../../../test/eh/test_bitset.cpp \
27 | ../../../test/eh/test_valarray.cpp
28 |
29 |
--------------------------------------------------------------------------------
/build/test/eh/bcc.mak:
--------------------------------------------------------------------------------
1 |
2 | SRCROOT := ../..
3 | COMPILER_NAME := bcc
4 | OBJ_EXT := obj
5 |
6 | STLPORT_DIR := ../../..
7 | include Makefile.inc
8 | include ${SRCROOT}/Makefiles/top.mak
9 |
10 | INCLUDES += -I${STLPORT_INCLUDE_DIR}
11 |
12 | ifdef STLP_BUILD_BOOST_PATH
13 | INCLUDES += -I${STLP_BUILD_BOOST_PATH}
14 | endif
15 |
16 | LDSEARCH = -L${STLPORT_LIB_DIR}
17 |
18 |
--------------------------------------------------------------------------------
/build/test/eh/evc.mak:
--------------------------------------------------------------------------------
1 | !if !EXIST(..\..\Makefiles\config.mak)
2 | !error No config file found, please run 'configure --help' first.
3 | !endif
4 |
5 | !include ..\..\Makefiles\config.mak
6 |
7 | !ifndef COMPILER_NAME
8 | !error No compiler set, please run 'configure --help' first and chose a compiler.
9 | !endif
10 |
11 | !if ("$(COMPILER_NAME)" != "evc3" && \
12 | "$(COMPILER_NAME)" != "evc4")
13 | !error You pick the wrong makefile, please rerun configure script and follow the instructions.
14 | !endif
15 |
16 | SRCROOT=../..
17 | STLPORT_DIR=../../..
18 | CROSS_COMPILING=1
19 |
20 | !include Makefile.inc
21 |
22 | INCLUDES=$(INCLUDES) /I "$(STLPORT_INCLUDE_DIR)" /I "cppunit" /I "$(STLPORT_DIR)/src/" /FI "vc_warning_disable.h"
23 |
24 | DEFS_REL = /D_STLP_USE_DYNAMIC_LIB
25 | DEFS_DBG = /D_STLP_USE_DYNAMIC_LIB
26 | DEFS_STLDBG = /D_STLP_USE_DYNAMIC_LIB
27 | DEFS_STATIC_REL = /D_STLP_USE_STATIC_LIB
28 | DEFS_STATIC_DBG = /D_STLP_USE_STATIC_LIB
29 | DEFS_STATIC_STLDBG = /D_STLP_USE_STATIC_LIB
30 |
31 | LDSEARCH=$(LDSEARCH) /LIBPATH:$(STLPORT_LIB_DIR)
32 |
33 | !include $(SRCROOT)/Makefiles/nmake/top.mak
34 |
--------------------------------------------------------------------------------
/build/test/eh/icl.mak:
--------------------------------------------------------------------------------
1 |
2 | COMPILER_NAME=icl
3 |
4 | !include msvc.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/test/eh/msvc.mak:
--------------------------------------------------------------------------------
1 | !if !EXIST(..\..\Makefiles\config.mak)
2 | !error No config file found, please run 'configure --help' first.
3 | !endif
4 |
5 | !include ..\..\Makefiles\config.mak
6 |
7 | !ifndef COMPILER_NAME
8 | !error No compiler set, please run 'configure --help' first and chose a compiler.
9 | !endif
10 |
11 | !if (("$(COMPILER_NAME)" != "vc6") && \
12 | ("$(COMPILER_NAME)" != "vc70") && \
13 | ("$(COMPILER_NAME)" != "vc71") && \
14 | ("$(COMPILER_NAME)" != "vc8") && \
15 | ("$(COMPILER_NAME)" != "icl"))
16 | !error '$(COMPILER_NAME)' not supported by this make file, please rerun 'configure' script and follow instructions.
17 | !endif
18 |
19 | SRCROOT=../..
20 | STLPORT_DIR=../../..
21 |
22 | !include Makefile.inc
23 |
24 | INCLUDES=$(INCLUDES) /I$(STLPORT_INCLUDE_DIR) /I$(STLPORT_DIR)/src /FI vc_warning_disable.h
25 |
26 | LDSEARCH=$(LDSEARCH) /LIBPATH:$(STLPORT_LIB_DIR)
27 |
28 | !include $(SRCROOT)/Makefiles/nmake/top.mak
29 |
--------------------------------------------------------------------------------
/build/test/eh/nmake-src-prefix.mak:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/03/29 22:25:01 ptr>
2 | # $Id: nmake-src-prefix.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | ALLOBJS = $(ALLOBJS:../../../test/eh/=)
5 |
6 | #
7 | # rules for .cpp --> .o
8 | #
9 |
10 | {../../../test/eh}.cpp{$(OUTPUT_DIR)}.o:
11 | $(COMPILE_cc_REL) $(OUTPUT_OPTION) $<
12 |
13 | {../../../test/eh}.cpp{$(OUTPUT_DIR_DBG)}.o:
14 | $(COMPILE_cc_DBG) $(OUTPUT_OPTION_DBG) $<
15 |
16 | {../../../test/eh}.cpp{$(OUTPUT_DIR_STLDBG)}.o:
17 | $(COMPILE_cc_STLDBG) $(OUTPUT_OPTION_STLDBG) $<
18 |
19 | {../../../test/eh}.cpp{$(OUTPUT_DIR_A)}.o:
20 | $(COMPILE_cc_STATIC_REL) $(OUTPUT_OPTION_STATIC) $<
21 |
22 | {../../../test/eh}.cpp{$(OUTPUT_DIR_A_DBG)}.o:
23 | $(COMPILE_cc_STATIC_DBG) $(OUTPUT_OPTION_STATIC_DBG) $<
24 |
25 | {../../../test/eh}.cpp{$(OUTPUT_DIR_A_STLDBG)}.o:
26 | $(COMPILE_cc_STATIC_STLDBG) $(OUTPUT_OPTION_STATIC_STLDBG) $<
27 |
28 |
--------------------------------------------------------------------------------
/build/test/unit/CC.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/09/04 22:01:11 ptr>
2 |
3 | SRCROOT := ../..
4 | COMPILER_NAME := CC
5 |
6 | ALL_TAGS := release-shared stldbg-shared
7 | STLPORT_DIR := ../../..
8 | STLPORT_ETC_DIR = ${STLPORT_DIR}/etc
9 | include Makefile.inc
10 | include ${SRCROOT}/Makefiles/top.mak
11 |
12 | INCLUDES += -I. -I${STLPORT_INCLUDE_DIR}
13 | DEFS += -D_STLP_NO_CUSTOM_IO
14 |
15 | dbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED
16 | stldbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED -D_STLP_DEBUG
17 |
18 | ifdef STLP_BUILD_BOOST_PATH
19 | INCLUDES += -I${STLP_BUILD_BOOST_PATH}
20 | endif
21 |
22 | release-shared: LDSEARCH = -L${INSTALL_LIB_DIR}
23 | dbg-shared: LDSEARCH = -L${INSTALL_LIB_DIR}
24 | stldbg-shared: LDSEARCH = -L${INSTALL_LIB_DIR}
25 |
26 | release-shared: LDFLAGS += -R${INSTALL_LIB_DIR}
27 | dbg-shared: LDFLAGS += -R${INSTALL_LIB_DIR}
28 | stldbg-shared: LDFLAGS += -R${INSTALL_LIB_DIR}
29 |
30 | release-shared : LDLIBS = -lstlport
31 | dbg-shared : LDLIBS = -lstlportg
32 | stldbg-shared : LDLIBS = -lstlportstlg
33 |
34 |
--------------------------------------------------------------------------------
/build/test/unit/aCC.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <05/03/10 17:51:53 ptr>
2 | # $Id: aCC.mak,v 1.2 2008-02-26 14:59:43 bazis Exp $
3 |
4 | SRCROOT := ../..
5 | COMPILER_NAME := aCC
6 |
7 | ALL_TAGS := release-shared dbg-shared stldbg-shared
8 | STLPORT_DIR := ../../..
9 | include Makefile.inc
10 | include ${SRCROOT}/Makefiles/top.mak
11 |
12 | INCLUDES += -I${STLPORT_INCLUDE_DIR}
13 |
14 | dbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED
15 | stldbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED -D_STLP_DEBUG
16 |
17 | ifdef STLP_BUILD_BOOST_PATH
18 | INCLUDES += -I${STLP_BUILD_BOOST_PATH}
19 | endif
20 |
21 | release-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
22 | dbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
23 | stldbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
24 |
--------------------------------------------------------------------------------
/build/test/unit/bcc.mak:
--------------------------------------------------------------------------------
1 |
2 | SRCROOT := ../..
3 | COMPILER_NAME := bcc
4 | OBJ_EXT := obj
5 |
6 | STLPORT_DIR := ../../..
7 | include Makefile.inc
8 | include ${SRCROOT}/Makefiles/top.mak
9 |
10 | INCLUDES += -I${STLPORT_INCLUDE_DIR}
11 |
12 | dbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED
13 | stldbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED
14 | dbg-static: DEFS += -D_STLP_DEBUG_UNINITIALIZED
15 | stldbg-static: DEFS += -D_STLP_DEBUG_UNINITIALIZED
16 |
17 | ifdef STLP_BUILD_BOOST_PATH
18 | INCLUDES += -I${STLP_BUILD_BOOST_PATH}
19 | endif
20 |
21 | LDSEARCH = -L${STLPORT_LIB_DIR}
22 |
23 |
--------------------------------------------------------------------------------
/build/test/unit/dmc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/10/12 20:35:49 ptr>
2 | # $Id: dmc.mak,v 1.2 2008-02-26 14:59:44 bazis Exp $
3 |
4 | SRCROOT := ../..
5 | COMPILER_NAME := dmc
6 | OBJ_EXT := obj
7 |
8 | STLPORT_DIR := ../../..
9 |
10 | include Makefile.inc
11 | include ${SRCROOT}/Makefiles/top.mak
12 |
13 |
14 | INCLUDES += -I$(STLPORT_INCLUDE_DIR)
15 |
16 | # options for build with boost support
17 | ifdef STLP_BUILD_BOOST_PATH
18 | INCLUDES += -I$(STLP_BUILD_BOOST_PATH)
19 | endif
20 |
21 |
--------------------------------------------------------------------------------
/build/test/unit/evc.mak:
--------------------------------------------------------------------------------
1 | !if !EXIST(..\..\Makefiles\config.mak)
2 | !error No config file found, please run 'configure --help' first.
3 | !endif
4 |
5 | !include ..\..\Makefiles\config.mak
6 |
7 | !ifndef COMPILER_NAME
8 | !error No compiler set, please run 'configure --help' first and chose a compiler.
9 | !endif
10 |
11 | !if ("$(COMPILER_NAME)" != "evc3" && \
12 | "$(COMPILER_NAME)" != "evc4" && \
13 | "$(COMPILER_NAME)" != "evc8")
14 | !error You pick the wrong makefile, please rerun configure script and follow the instructions.
15 | !endif
16 |
17 | SRCROOT=../..
18 | STLPORT_DIR=../../..
19 | CROSS_COMPILING=1
20 |
21 | !include Makefile.inc
22 |
23 | INCLUDES=$(INCLUDES) /I "$(STLPORT_INCLUDE_DIR)" /I "cppunit" /I "$(STLPORT_DIR)/src/" /FI "warning_disable.h"
24 |
25 | DEFS_REL = /D_STLP_USE_DYNAMIC_LIB
26 | DEFS_DBG = /D_STLP_USE_DYNAMIC_LIB
27 | DEFS_STLDBG = /D_STLP_USE_DYNAMIC_LIB
28 | DEFS_STATIC_REL = /D_STLP_USE_STATIC_LIB
29 | DEFS_STATIC_DBG = /D_STLP_USE_STATIC_LIB
30 | DEFS_STATIC_STLDBG = /D_STLP_USE_STATIC_LIB
31 |
32 | LDSEARCH=$(LDSEARCH) /LIBPATH:$(STLPORT_LIB_DIR)
33 | !include $(SRCROOT)/Makefiles/nmake/top.mak
34 |
--------------------------------------------------------------------------------
/build/test/unit/icl.mak:
--------------------------------------------------------------------------------
1 |
2 | COMPILER_NAME=icl
3 |
4 | !include msvc.mak
5 |
6 |
--------------------------------------------------------------------------------
/build/test/unit/novelltest.def:
--------------------------------------------------------------------------------
1 | module clib.nlm
2 |
--------------------------------------------------------------------------------
/doc/README.cygwin:
--------------------------------------------------------------------------------
1 | The cygwin platform is used to build STLport with different compilers.
2 |
3 | - gcc (native compiler):
4 |
5 | Makefile : gcc.mak
6 |
7 | WARNING : If you use the static version of the STLport
8 | libraries you have to define the _STLP_USE_STATIC_LIB
9 | macro in order to have your executable linked correctly.
10 |
11 | To build STLport libraries that do not depend on cygwin1.dll
12 | making them freely redistributable use the --no-cygwin configuration
13 | option.
14 |
15 | - Borland C++ compiler
16 |
--------------------------------------------------------------------------------
/doc/README.intel:
--------------------------------------------------------------------------------
1 | Build of STLport with Intel C++ compiler for Windows is identical
2 | to the one for Microsoft Visual Studio compiler (see README.msvc).
3 |
4 | Known issues:
5 |
6 | 1. If you have bind your Intel C++ compiler to the Visual Studio 6
7 | install and build your application without the -Qvc6 option you might
8 | experiement linking issue concerning 'std::unexpected' missing symbol.
9 | The reason of this problem is that without -Qvc6, ICL adds necessary
10 | code to invoke std::unexpected function when a raised exception is
11 | different to the one specified in a function prototype. As VC6 library
12 | do not contain this symbol ICL cannot find it anywhere.
13 |
14 | As a workaround, STLport has its own std::unexpected implementation
15 | that you will find in src/dll_main.cpp. ICL is looking for a static
16 | symbol so if you use STLport static lib ICL will use its std::unexpected
17 | implementation but if you use STLport dynamic lib then ICL won't find
18 | it. You only need then to copy/paste the STLport implementation somewhere
19 | in your implementation and ICL will be happy.
20 |
--------------------------------------------------------------------------------
/doc/README.mingw:
--------------------------------------------------------------------------------
1 | The MinGW package is used as to build STLport with different
2 | compilers
3 |
4 |
5 | If you use the MSys console take care about what make utility
6 | you are using. STLport comes with a GNU make build system design
7 | for unix like platforms, make files have not been adapted for the
8 | Windows platform. So you have to use the make command coming with
9 | the MinGW package 'mingw32-make' and not the one coming with MSys
10 | that is a portage of the GNU make for Windows.
11 |
12 | - gcc (native compiler):
13 |
14 | Makefile : gcc.mak
15 |
16 | WARNING : If you use the static version of the STLport
17 | libraries you have to define the _STLP_USE_STATIC_LIB
18 | macro in order to have your executable linked correctly.
19 |
20 | If you want to build STLport using the Mingw package without
21 | help of the GNU tools coming with Msys don't forget to signal
22 | your compiler (gcc) using the configure script:
23 |
24 | configure -c gcc
25 |
26 | - Borland C++ compiler:
27 |
28 | Makefile : bcc.mak
29 |
--------------------------------------------------------------------------------
/etc/cvsignore:
--------------------------------------------------------------------------------
1 | ignore
2 | dev
3 | fix
4 | *.o
5 | *.obj
6 | obj
7 | bin
8 | bin-g
9 | bin-stlg
10 | *-bin
11 | *-lib
12 | *~
13 | .#*
14 | *.exe
15 | *.dll
16 | *.idb
17 | *.pdb
18 | *.so*
19 | *.a
20 | *.exe
21 | *.core
22 | *.bak
23 | *.out
24 | *.pdb
25 | *.pch
26 | .*
27 | core
28 | core.*
29 | CVS
30 | SunWS_cache
31 | Templates.DB
32 | *.gz
33 | test_file.txt
34 | make_snap.sh
35 | TAGS
36 |
--------------------------------------------------------------------------------
/etc/std_headers.txt:
--------------------------------------------------------------------------------
1 | algorithm
2 | bitset
3 | complex
4 | deque
5 | fstream
6 | functional
7 | hash_map
8 | hash_set
9 | iomanip
10 | ios
11 | iosfwd
12 | iostream
13 | istream
14 | iterator
15 | limits
16 | list
17 | locale
18 | map
19 | memory
20 | numeric
21 | ostream
22 | pthread_alloc
23 | queue
24 | set
25 | slist
26 | sstream
27 | stack
28 | stdexcept
29 | streambuf
30 | string
31 | strstream
32 | utility
33 | valarray
34 | vector
35 |
--------------------------------------------------------------------------------
/etc/std_headers_c.txt:
--------------------------------------------------------------------------------
1 | cassert
2 | cctype
3 | cerrno
4 | cfloat
5 | climits
6 | clocale
7 | cmath
8 | csetjmp
9 | csignal
10 | cstdarg
11 | cstddef
12 | cstdio
13 | cstdlib
14 | cstring
15 | ctime
16 | cwchar
17 | cwctype
18 |
--------------------------------------------------------------------------------
/etc/std_headers_c_h.txt:
--------------------------------------------------------------------------------
1 | ctype.h
2 | locale.h
3 | math.h
4 | setjmp.h
5 | signal.h
6 | stdarg.h
7 | stddef.h
8 | stdio.h
9 | stdlib.h
10 | string.h
11 | time.h
12 | wchar.h
13 | wctype.h
14 |
--------------------------------------------------------------------------------
/etc/std_headers_classic_iostreams.txt:
--------------------------------------------------------------------------------
1 | fstream.h
2 | iomanip.h
3 | ios.h
4 | iostream.h
5 | istream.h
6 | ostream.h
7 | streambuf.h
8 | strstream.h
9 |
--------------------------------------------------------------------------------
/etc/std_headers_cpp_runtime.txt:
--------------------------------------------------------------------------------
1 | exception
2 | new
3 | typeinfo
4 |
--------------------------------------------------------------------------------
/etc/std_headers_cpp_runtime_h.txt:
--------------------------------------------------------------------------------
1 | exception.h
2 | new.h
3 | typeinfo.h
4 |
--------------------------------------------------------------------------------
/etc/stlport_powered_red.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/etc/stlport_powered_red.gif
--------------------------------------------------------------------------------
/etc/stlport_powered_white.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/etc/stlport_powered_white.gif
--------------------------------------------------------------------------------
/src/aligned_buffer.h:
--------------------------------------------------------------------------------
1 | #ifndef ALIGNED_BUFFER_H
2 | #define ALIGNED_BUFFER_H
3 |
4 | _STLP_BEGIN_NAMESPACE
5 | // this is for fake initialization
6 | template
7 | union _Stl_aligned_buffer {
8 | char buf[sizeof(T)];
9 | struct { double a; double b; } padding;
10 |
11 | T* operator&() {
12 | return __REINTERPRET_CAST(T*, this);
13 | }
14 |
15 | T const* operator&() const {
16 | return __REINTERPRET_CAST(T const*, this);
17 | }
18 | };
19 | _STLP_END_NAMESPACE
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/fstream_impl.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Silicon Graphics Computer Systems, Inc.
4 | *
5 | * Copyright (c) 1999
6 | * Boris Fomitchev
7 | *
8 | * This material is provided "as is", with absolutely no warranty expressed
9 | * or implied. Any use is at your own risk.
10 | *
11 | * Permission to use or copy this software for any purpose is hereby granted
12 | * without fee, provided the above notices are retained on all copies.
13 | * Permission to modify the code and to distribute modified code is granted,
14 | * provided the above notices are retained, and a notice that the code was
15 | * modified is included with the above copyright notice.
16 | *
17 | */
18 |
19 | #ifndef FSTREAM_IMPL_H
20 | #define FSTREAM_IMPL_H
21 |
22 | #include "_stdio_file.h"
23 |
24 | _STLP_BEGIN_NAMESPACE
25 | _STLP_MOVE_TO_PRIV_NAMESPACE
26 |
27 | bool __is_regular_file(_STLP_fd fd);
28 | streamoff __file_size(_STLP_fd fd);
29 |
30 | _STLP_MOVE_TO_STD_NAMESPACE
31 | _STLP_END_NAMESPACE
32 |
33 | #endif /* FSTREAM_IMPL_H */
34 |
--------------------------------------------------------------------------------
/stlport/cctype:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CCTYPE
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x104
20 | # define _STLP_CCTYPE
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x104 )
25 | # include _STLP_NATIVE_CPP_C_HEADER(cctype)
26 | #else
27 | # ifndef _STLP_INTERNAL_CCTYPE
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x104 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CCTYPE */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/cfloat:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CFLOAT
17 | #define _STLP_CFLOAT
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x106
21 | # include
22 | #endif
23 |
24 | // Borland defines some implementation constants in std:: namespace,
25 | // we do not want to import them.
26 | #if defined (_STLP_USE_NEW_C_HEADERS) && !defined (__BORLANDC__)
27 | # include _STLP_NATIVE_CPP_C_HEADER(cfloat)
28 | #else
29 | # include
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x106 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CFLOAT */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/ciso646:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CISO646
17 | #define _STLP_CISO646
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x107
21 | # include
22 | #endif
23 |
24 | #if !defined(_STLP_WCE_EVC3) && !defined (N_PLAT_NLM) && !defined (__BORLANDC__)
25 | # if defined (_STLP_USE_NEW_C_HEADERS)
26 | # include _STLP_NATIVE_CPP_C_HEADER(ciso646)
27 | # else
28 | # include
29 | # endif /* _STLP_USE_NEW_C_HEADERS */
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x107 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CISO646 */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/clocale:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CLOCALE
17 | #define _STLP_CLOCALE
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x109
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x109 )
25 | # include _STLP_NATIVE_CPP_C_HEADER(clocale)
26 | #else
27 | # ifndef _STLP_INTERNAL_CLOCALE
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x109 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CLOCALE */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/cmath:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CMATH
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x110
20 | # define _STLP_CMATH
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x110)
25 | # include _STLP_NATIVE_CPP_C_HEADER(cmath)
26 | #else
27 | # ifndef _STLP_INTERNAL_CMATH
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x110 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CMATH */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/csetjmp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CSETJMP
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x111
20 | # define _STLP_CSETJMP
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x111)
25 | # include _STLP_NATIVE_CPP_C_HEADER(csetjmp)
26 | #else
27 | # ifndef _STLP_INTERNAL_CSETJMP
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x111 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CSETJMP */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/csignal:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CSIGNAL
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x112
20 | # define _STLP_CSIGNAL
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x112)
25 | # include _STLP_NATIVE_CPP_C_HEADER(csignal)
26 | #else
27 | # ifndef _STLP_INTERNAL_CSIGNAL
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x112 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CSIGNAL */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/cstdarg:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | */
14 |
15 | #ifndef _STLP_CSTDARG
16 |
17 | #ifndef _STLP_OUTERMOST_HEADER_ID
18 | # define _STLP_OUTERMOST_HEADER_ID 0x113
19 | # define _STLP_CSTDARG
20 | # include
21 | #endif
22 |
23 | #if (_STLP_OUTERMOST_HEADER_ID != 0x113)
24 | # include _STLP_NATIVE_CPP_C_HEADER(cstdarg)
25 | #else
26 | # ifndef _STLP_INTERNAL_CSTDARG
27 | # include
28 | # endif
29 | #endif
30 |
31 | #if (_STLP_OUTERMOST_HEADER_ID == 0x113 )
32 | # include
33 | # undef _STLP_OUTERMOST_HEADER_ID
34 | #endif
35 |
36 | #endif /* _STLP_CSTDARG */
37 |
38 | // Local Variables:
39 | // mode:C++
40 | // End:
41 |
--------------------------------------------------------------------------------
/stlport/cstddef:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CSTDDEF
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x114
20 | # define _STLP_CSTDDEF
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x114)
25 | # include _STLP_NATIVE_CPP_C_HEADER(cstddef)
26 | #else
27 | # ifndef _STLP_INTERNAL_CSTDDEF
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x114 )
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CSTDDEF */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/cstdio:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CSTDIO
17 | #define _STLP_CSTDIO
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x15
21 | # define _STLP_CSTDIO
22 | # include
23 | #endif
24 |
25 | #if (_STLP_OUTERMOST_HEADER_ID != 0x15)
26 | # include _STLP_NATIVE_CPP_C_HEADER(cstdio)
27 | #else
28 | # ifndef _STLP_INTERNAL_CSTDIO
29 | # include
30 | # endif
31 | #endif
32 |
33 | #if (_STLP_OUTERMOST_HEADER_ID == 0x15)
34 | # include
35 | # undef _STLP_OUTERMOST_HEADER_ID
36 | #endif
37 |
38 | #endif
39 |
40 | // Local Variables:
41 | // mode:C++
42 | // End:
43 |
--------------------------------------------------------------------------------
/stlport/cstdlib:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CSTDLIB
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x116
20 | # define _STLP_CSTDLIB
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x116)
25 | # include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
26 | #else
27 | # ifndef _STLP_INTERNAL_CSTDLIB
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x116)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CSTDLIB */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/cstring:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CSTRING
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x117
20 | # define _STLP_CSTRING
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x117)
25 | # include _STLP_NATIVE_CPP_C_HEADER(cstring)
26 | #else
27 | # ifndef _STLP_INTERNAL_CSTRING
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x117)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CSTRING */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/ctime:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | */
14 |
15 | #ifndef _STLP_CTIME
16 |
17 | #ifndef _STLP_OUTERMOST_HEADER_ID
18 | # define _STLP_OUTERMOST_HEADER_ID 0x118
19 | # define _STLP_CTIME
20 | # include
21 | #endif
22 |
23 | #if (_STLP_OUTERMOST_HEADER_ID != 0x118)
24 | # include _STLP_NATIVE_CPP_C_HEADER(ctime)
25 | #else
26 | # ifndef _STLP_INTERNAL_CTIME
27 | # include
28 | # endif
29 | #endif
30 |
31 | #if (_STLP_OUTERMOST_HEADER_ID == 0x118)
32 | # include
33 | # undef _STLP_OUTERMOST_HEADER_ID
34 | #endif
35 |
36 | #endif /* _STLP_CTIME */
37 |
38 | // Local Variables:
39 | // mode:C++
40 | // End:
41 |
--------------------------------------------------------------------------------
/stlport/cwchar:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CWCHAR
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x120
20 | # define _STLP_CWCHAR
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x120)
25 | # include _STLP_NATIVE_CPP_C_HEADER(cwchar)
26 | #else
27 | # ifndef _STLP_INTERNAL_CWCHAR
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x120)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CWCHAR */
38 |
39 |
40 | // Local Variables:
41 | // mode:C++
42 | // End:
43 |
--------------------------------------------------------------------------------
/stlport/cwctype:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_CWCTYPE
17 | #define _STLP_CWCTYPE
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x121
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x121)
25 | # include _STLP_NATIVE_CPP_C_HEADER(cwctype)
26 | #else
27 | # ifndef _STLP_INTERNAL_CWCTYPE
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x121)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_CWCTYPE */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/exception.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_OLDSTD_exception
17 | #define _STLP_OLDSTD_exception
18 |
19 | #if !defined (_STLP_OUTERMOST_HEADER_ID)
20 | # define _STLP_OUTERMOST_HEADER_ID 0x824
21 | # include
22 | #endif
23 |
24 | #if defined (__BORLANDC__) || defined (_MSC_VER)
25 | # include
26 | #else
27 | # include _STLP_NATIVE_CPP_RUNTIME_HEADER(exception.h)
28 | #endif
29 |
30 | #if (_STLP_OUTERMOST_HEADER_ID == 0x824)
31 | # include
32 | # undef _STLP_OUTERMOST_HEADER_ID
33 | #endif
34 |
35 | #endif /* _STLP_OLDSTD_exception */
36 |
37 | // Local Variables:
38 | // mode:C++
39 | // End:
40 |
--------------------------------------------------------------------------------
/stlport/fstream.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_FSTREAM_H
17 | #define _STLP_FSTREAM_H
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x2026
21 | # include
22 | #endif
23 |
24 | #include
25 |
26 | // get desired pollution
27 | #include
28 |
29 | #ifndef _STLP_HAS_NO_NAMESPACES
30 | # include
31 | #endif
32 |
33 | #if (_STLP_OUTERMOST_HEADER_ID == 0x2026)
34 | # include
35 | # undef _STLP_OUTERMOST_HEADER_ID
36 | #endif
37 |
38 | #endif /* _STLP_FSTREAM_H */
39 |
40 | // Local Variables:
41 | // mode:C++
42 | // End:
43 |
--------------------------------------------------------------------------------
/stlport/ios:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Silicon Graphics Computer Systems, Inc.
4 | *
5 | * Copyright (c) 1999
6 | * Boris Fomitchev
7 | *
8 | * This material is provided "as is", with absolutely no warranty expressed
9 | * or implied. Any use is at your own risk.
10 | *
11 | * Permission to use or copy this software for any purpose is hereby granted
12 | * without fee, provided the above notices are retained on all copies.
13 | * Permission to modify the code and to distribute modified code is granted,
14 | * provided the above notices are retained, and a notice that the code was
15 | * modified is included with the above copyright notice.
16 | *
17 | */
18 |
19 | #ifndef _STLP_IOS
20 | #define _STLP_IOS
21 |
22 | # ifndef _STLP_OUTERMOST_HEADER_ID
23 | # define _STLP_OUTERMOST_HEADER_ID 0x1032
24 | # include
25 | # endif
26 |
27 | # ifdef _STLP_PRAGMA_ONCE
28 | # pragma once
29 | # endif
30 |
31 | # include
32 | # include
33 |
34 | # if (_STLP_OUTERMOST_HEADER_ID == 0x1032)
35 | # include
36 | # undef _STLP_OUTERMOST_HEADER_ID
37 | # endif
38 |
39 | #endif /* _STLP_IOS */
40 |
41 | // Local Variables:
42 | // mode:C++
43 | // End:
44 |
--------------------------------------------------------------------------------
/stlport/ios.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_IOS_H
17 | #define _STLP_IOS_H
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x1033
21 | # include
22 | #endif
23 |
24 | #include
25 |
26 | #if defined (_STLP_USE_NAMESPACES)
27 | # include
28 | #endif
29 |
30 | #if (_STLP_OUTERMOST_HEADER_ID == 0x1033)
31 | # include
32 | # undef _STLP_OUTERMOST_HEADER_ID
33 | #endif
34 |
35 | #endif /* _STLP_IOS_H */
36 |
37 | // Local Variables:
38 | // mode:C++
39 | // End:
40 |
--------------------------------------------------------------------------------
/stlport/istream:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Silicon Graphics Computer Systems, Inc.
4 | *
5 | * Copyright (c) 1999
6 | * Boris Fomitchev
7 | *
8 | * This material is provided "as is", with absolutely no warranty expressed
9 | * or implied. Any use is at your own risk.
10 | *
11 | * Permission to use or copy this software for any purpose is hereby granted
12 | * without fee, provided the above notices are retained on all copies.
13 | * Permission to modify the code and to distribute modified code is granted,
14 | * provided the above notices are retained, and a notice that the code was
15 | * modified is included with the above copyright notice.
16 | *
17 | */
18 |
19 | #ifndef _STLP_ISTREAM
20 | #define _STLP_ISTREAM
21 |
22 | #ifndef _STLP_OUTERMOST_HEADER_ID
23 | # define _STLP_OUTERMOST_HEADER_ID 0x1036
24 | # include
25 | #endif
26 |
27 | #ifdef _STLP_PRAGMA_ONCE
28 | # pragma once
29 | #endif
30 |
31 | #include
32 |
33 | #ifndef _STLP_INTERNAL_ISTREAM
34 | # include
35 | #endif
36 |
37 | #if (_STLP_OUTERMOST_HEADER_ID == 0x1036)
38 | # include
39 | # undef _STLP_OUTERMOST_HEADER_ID
40 | #endif
41 |
42 | #endif /* _STLP_ISTREAM */
43 |
44 | // Local Variables:
45 | // mode:C++
46 | // End:
47 |
--------------------------------------------------------------------------------
/stlport/kext/assert.h:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/X/cstddef:
--------------------------------------------------------------------------------
1 | #include "stddef.h"
2 |
--------------------------------------------------------------------------------
/stlport/kext/c++/X/cstdio:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/stlport/kext/c++/X/cstdio
--------------------------------------------------------------------------------
/stlport/kext/c++/X/cstdlib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/stlport/kext/c++/X/cstdlib
--------------------------------------------------------------------------------
/stlport/kext/c++/X/cstring:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/_types.h:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/climits:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/cstddef:
--------------------------------------------------------------------------------
1 | //#include "stddef.h"
2 | #include
3 | typedef __darwin_ptrdiff_t ptrdiff_t;
4 | typedef __darwin_wint_t wint_t;
5 |
6 |
--------------------------------------------------------------------------------
/stlport/kext/c++/cstdio:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/stlport/kext/c++/cstdio
--------------------------------------------------------------------------------
/stlport/kext/c++/cstdlib:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/cstring:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/cwchar:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/c++/stddef.h:
--------------------------------------------------------------------------------
1 | //#include "/usr/include/stddef.h"
2 | //#include
--------------------------------------------------------------------------------
/stlport/kext/errno.h:
--------------------------------------------------------------------------------
1 | #include
--------------------------------------------------------------------------------
/stlport/kext/stdio.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/stlport/kext/stdio.h
--------------------------------------------------------------------------------
/stlport/limits:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1997
3 | * Silicon Graphics Computer Systems, Inc.
4 | *
5 | * Copyright (c) 1999
6 | * Boris Fomitchev
7 | *
8 | * This material is provided "as is", with absolutely no warranty expressed
9 | * or implied. Any use is at your own risk.
10 | *
11 | * Permission to use or copy this software for any purpose is hereby granted
12 | * without fee, provided the above notices are retained on all copies.
13 | * Permission to modify the code and to distribute modified code is granted,
14 | * provided the above notices are retained, and a notice that the code was
15 | * modified is included with the above copyright notice.
16 | *
17 | */
18 |
19 | #ifndef _STLP_LIMITS
20 | #define _STLP_LIMITS
21 |
22 | #ifndef _STLP_OUTERMOST_HEADER_ID
23 | # define _STLP_OUTERMOST_HEADER_ID 0x39
24 | # include
25 | #endif
26 |
27 | #ifdef _STLP_PRAGMA_ONCE
28 | # pragma once
29 | #endif
30 |
31 | #ifndef _STLP_INTERNAL_LIMITS
32 | # include
33 | #endif
34 |
35 | #if (_STLP_OUTERMOST_HEADER_ID == 0x39)
36 | # include
37 | # undef _STLP_OUTERMOST_HEADER_ID
38 | #endif
39 |
40 | #endif /* _STLP_LIMITS */
41 |
42 | // Local Variables:
43 | // mode:C++
44 | // End:
45 |
--------------------------------------------------------------------------------
/stlport/limits.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #if !defined (_STLP_OUTERMOST_HEADER_ID)
17 | # define _STLP_OUTERMOST_HEADER_ID 0x201
18 | # include
19 | #elif (_STLP_OUTERMOST_HEADER_ID == 0x201) && ! defined (_STLP_DONT_POP_HEADER_ID)
20 | # define _STLP_DONT_POP_HEADER_ID
21 | #endif
22 |
23 | #if defined(_STLP_WCE_EVC3)
24 | struct _exception;
25 | #endif
26 |
27 | #include _STLP_NATIVE_C_HEADER(limits.h)
28 |
29 | #if (_STLP_OUTERMOST_HEADER_ID == 0x201)
30 | # if ! defined (_STLP_DONT_POP_HEADER_ID)
31 | # include
32 | # undef _STLP_OUTERMOST_HEADER_ID
33 | # endif
34 | # undef _STLP_DONT_POP_HEADER_ID
35 | #endif
36 |
--------------------------------------------------------------------------------
/stlport/new:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_NEW_HEADER
17 | #define _STLP_NEW_HEADER
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x447
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x447)
25 | # include _STLP_NATIVE_CPP_RUNTIME_HEADER(new)
26 | #else
27 | # ifndef _STLP_NEW_H_HEADER
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x447)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_NEW */
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/ostream:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Silicon Graphics Computer Systems, Inc.
4 | *
5 | * Copyright (c) 1999
6 | * Boris Fomitchev
7 | *
8 | * This material is provided "as is", with absolutely no warranty expressed
9 | * or implied. Any use is at your own risk.
10 | *
11 | * Permission to use or copy this software for any purpose is hereby granted
12 | * without fee, provided the above notices are retained on all copies.
13 | * Permission to modify the code and to distribute modified code is granted,
14 | * provided the above notices are retained, and a notice that the code was
15 | * modified is included with the above copyright notice.
16 | *
17 | */
18 | #ifndef _STLP_OSTREAM
19 | #define _STLP_OSTREAM
20 |
21 | # ifndef _STLP_OUTERMOST_HEADER_ID
22 | # define _STLP_OUTERMOST_HEADER_ID 0x1050
23 | # include
24 | # endif
25 |
26 | # ifdef _STLP_PRAGMA_ONCE
27 | # pragma once
28 | # endif
29 |
30 | # include
31 | # include
32 |
33 | # if (_STLP_OUTERMOST_HEADER_ID == 0x1050)
34 | # include
35 | # undef _STLP_OUTERMOST_HEADER_ID
36 | # endif
37 |
38 | #endif /* _STLP_OSTREAM */
39 |
40 | // Local Variables:
41 | // mode:C++
42 | // End:
43 |
--------------------------------------------------------------------------------
/stlport/ostream.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_OSTREAM_H
17 | #define _STLP_OSTREAM_H
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x2051
21 | # include
22 | #endif
23 |
24 | #include
25 |
26 | #include
27 |
28 | #ifdef _STLP_USE_NAMESPACES
29 | # include
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x2051)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif /* _STLP_OSTREAM_H */
38 |
--------------------------------------------------------------------------------
/stlport/rlocks.h:
--------------------------------------------------------------------------------
1 | #ifndef _STLP_misc_rlocks_h
2 | # define _STLP_misc_rlocks_h
3 | # if (__SUNPRO_CC >= 0x500 )
4 | # include <../CCios/rlocks.h>
5 | # elif defined (__SUNPRO_CC)
6 | # include <../CC/rlocks.h>
7 | # else
8 | # error "This file is for SUN CC only. Please remove it if it causes any harm for other compilers."
9 | # endif
10 | #endif
11 |
12 |
--------------------------------------------------------------------------------
/stlport/signal.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #if !defined (_STLP_OUTERMOST_HEADER_ID)
17 | # define _STLP_OUTERMOST_HEADER_ID 0x257
18 | # include
19 | #elif (_STLP_OUTERMOST_HEADER_ID == 0x257) && ! defined (_STLP_DONT_POP_HEADER_ID)
20 | # define _STLP_DONT_POP_HEADER_ID
21 | #endif
22 |
23 | /* evc3 and evc4 don't have signal.h */
24 | #ifndef _STLP_WCE
25 | # include _STLP_NATIVE_C_HEADER(signal.h)
26 | #endif
27 |
28 | #if (_STLP_OUTERMOST_HEADER_ID == 0x257)
29 | # if ! defined (_STLP_DONT_POP_HEADER_ID)
30 | # include
31 | # undef _STLP_OUTERMOST_HEADER_ID
32 | # endif
33 | # undef _STLP_DONT_POP_HEADER_ID
34 | #endif
35 |
36 | /* Local Variables:
37 | * mode:C++
38 | * End:
39 | */
40 |
--------------------------------------------------------------------------------
/stlport/stdiostream.h:
--------------------------------------------------------------------------------
1 | #ifndef _STLP_misc_stdiostream_h
2 | # define _STLP_misc_stdiostream_h
3 | # if (__SUNPRO_CC >= 0x500 )
4 | # include <../CCios/stdiostream.h>
5 | # else if defined (__SUNPRO_CC)
6 | # include <../CC/stdiostream.h>
7 | # else
8 | # error "This file is for SUN CC only. Please remove it if it causes any harm for other compilers."
9 | # endif
10 | #endif
11 |
--------------------------------------------------------------------------------
/stlport/stl/_check_config.h:
--------------------------------------------------------------------------------
1 | // This file is reserved to site configuration purpose
2 | // and should NEVER be overridden by user
3 |
4 | /*
5 | * Consistency check : if we use SGI iostreams, we have to use consistent
6 | * thread model (single-threaded or multi-threaded) with the compiled library
7 | *
8 | * Default is multithreaded build. If you want to build and use single-threaded
9 | * STLport, please change _STLP_NOTHREADS configuration setting above and rebuild the library
10 | *
11 | */
12 |
13 | # if !defined(_STLP_USE_NO_IOSTREAMS) && !defined(_STLP_NO_THREADS) && !defined(_REENTRANT)
14 |
15 | # if defined(_MSC_VER) && !defined(__MWERKS__) && !defined (__COMO__) && !defined(_MT)
16 | # error "Only multi-threaded runtime library may be linked with STLport!"
17 | # endif
18 |
19 | // boris : you may change that to build non-threadsafe STLport library
20 | # if defined (__BUILDING_STLPORT) /* || defined (_STLP_DEBUG) */
21 | # define _REENTRANT 1
22 | # endif
23 |
24 | # endif
25 |
--------------------------------------------------------------------------------
/stlport/stl/_clocale.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_INTERNAL_CLOCALE
17 | #define _STLP_INTERNAL_CLOCALE
18 |
19 | #if !defined (_STLP_WCE_EVC3)
20 |
21 | # if defined (_STLP_USE_NEW_C_HEADERS)
22 | # include _STLP_NATIVE_CPP_C_HEADER(clocale)
23 | # else
24 | # include _STLP_NATIVE_C_HEADER(locale.h)
25 | # endif
26 |
27 | # if defined (_STLP_IMPORT_VENDOR_CSTD)
28 | _STLP_BEGIN_NAMESPACE
29 | using _STLP_VENDOR_CSTD::lconv;
30 | # if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
31 | using _STLP_VENDOR_CSTD::localeconv;
32 | using _STLP_VENDOR_CSTD::setlocale;
33 | # endif
34 | _STLP_END_NAMESPACE
35 | # endif
36 |
37 | #endif /* !_STLP_WCE_EVC3 */
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/stlport/stl/_cstdarg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | */
14 |
15 | #ifndef _STLP_INTERNAL_CSTDARG
16 | #define _STLP_INTERNAL_CSTDARG
17 |
18 | #if defined (_STLP_USE_NEW_C_HEADERS)
19 | # include _STLP_NATIVE_CPP_C_HEADER(cstdarg)
20 | #else
21 | # include _STLP_NATIVE_C_HEADER(stdarg.h)
22 | #endif
23 |
24 | #ifdef _STLP_IMPORT_VENDOR_CSTD
25 | _STLP_BEGIN_NAMESPACE
26 | using _STLP_VENDOR_CSTD::va_list;
27 | _STLP_END_NAMESPACE
28 | #endif /* _STLP_IMPORT_VENDOR_CSTD */
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/stlport/stl/_cstring.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_INTERNAL_CSTRING
17 | #define _STLP_INTERNAL_CSTRING
18 |
19 | #if defined (_STLP_USE_NEW_C_HEADERS)
20 | # include _STLP_NATIVE_CPP_C_HEADER(cstring)
21 | #else
22 | # include
23 | #endif
24 |
25 | #ifdef _STLP_IMPORT_VENDOR_CSTD
26 | _STLP_BEGIN_NAMESPACE
27 | # include
28 | _STLP_END_NAMESPACE
29 | #endif /* _STLP_IMPORT_VENDOR_CSTD */
30 |
31 | #endif /* _STLP_INTERNAL_CSTRING */
32 |
--------------------------------------------------------------------------------
/stlport/stl/_ioserr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is included in every header that needs the STLport library to be
3 | * built; the header files mostly are the iostreams-headers. The file checks for
4 | * _STLP_USE_NO_IOSTREAMS or _STLP_NO_IOSTREAMS being not defined, so that the
5 | * iostreams part of STLport cannot be used when the symbols were defined
6 | * accidentally.
7 | */
8 | #if defined (_STLP_NO_IOSTREAMS)
9 | # error STLport iostreams header cannot be used; you chose not to use iostreams in the STLport configuration file (stlport/stl/config/user_config.h).
10 | #elif defined (_STLP_USE_NO_IOSTREAMS )
11 | # error STLport iostreams header cannot be used; your compiler do not support it.
12 | #endif
13 |
--------------------------------------------------------------------------------
/stlport/stl/_move_construct_fwk.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/stlport/stl/_move_construct_fwk.h
--------------------------------------------------------------------------------
/stlport/stl/_null_stream.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_NULL_STREAM_H
17 | # define _STLP_NULL_STREAM_H
18 |
19 | _STLP_BEGIN_NAMESPACE
20 |
21 | struct __null_stream
22 | {
23 | void flush() { }
24 | };
25 |
26 | template
27 | __null_stream& operator <<(__null_stream& __x, const _Tp& )
28 | {
29 | return __x;
30 | }
31 |
32 | template
33 | __null_stream& operator >>(const _Tp&, __null_stream& __x )
34 | {
35 | return __x;
36 | }
37 |
38 | extern __null_stream cin, cout, cerr, endl, ws, hex, dec;
39 |
40 | _STLP_END_NAMESPACE
41 |
42 | # endif
43 |
--------------------------------------------------------------------------------
/stlport/stl/_prolog.h:
--------------------------------------------------------------------------------
1 | /* NOTE : this header has no guards and is MEANT for multiple inclusion!
2 | * If you are using "header protection" option with your compiler,
3 | * please also find #pragma which disables it and put it here, to
4 | * allow reentrancy of this header.
5 | */
6 |
7 | #ifdef std
8 | # undef std /* We undef "std" on entry , as STLport headers may include native ones. */
9 | #endif
10 |
11 | #ifdef _STLP_PROLOG_HEADER_INCLUDED
12 | # error STlport prolog header can not be reincluded as long as epilog has not be included.
13 | #endif
14 |
15 | #define _STLP_PROLOG_HEADER_INCLUDED
16 |
17 | #ifndef _STLP_FEATURES_H
18 | # include
19 | #endif
20 |
21 | /* If the platform provides any specific prolog actions,
22 | * like #pragmas, do include platform-specific prolog file */
23 | #if defined (_STLP_HAS_SPECIFIC_PROLOG_EPILOG)
24 | # include
25 | #endif
26 | #pragma warning (suppress : 4103)
27 |
--------------------------------------------------------------------------------
/stlport/stl/_relops_cont.h:
--------------------------------------------------------------------------------
1 | // This is an implementation file which
2 | // is intended to be included multiple times with different _STLP_ASSOCIATIVE_CONTAINER
3 | // setting
4 |
5 | #if !defined (_STLP_EQUAL_OPERATOR_SPECIALIZED)
6 | _STLP_TEMPLATE_HEADER
7 | inline bool _STLP_CALL operator==(const _STLP_TEMPLATE_CONTAINER& __x,
8 | const _STLP_TEMPLATE_CONTAINER& __y) {
9 | return __x.size() == __y.size() &&
10 | equal(__x.begin(), __x.end(), __y.begin());
11 | }
12 | #endif /* _STLP_EQUAL_OPERATOR_SPECIALIZED */
13 |
14 | _STLP_TEMPLATE_HEADER
15 | inline bool _STLP_CALL operator<(const _STLP_TEMPLATE_CONTAINER& __x,
16 | const _STLP_TEMPLATE_CONTAINER& __y) {
17 | return lexicographical_compare(__x.begin(), __x.end(),
18 | __y.begin(), __y.end());
19 | }
20 |
21 | _STLP_RELOPS_OPERATORS( _STLP_TEMPLATE_HEADER , _STLP_TEMPLATE_CONTAINER )
22 |
23 | #if defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
24 | _STLP_TEMPLATE_HEADER
25 | inline void _STLP_CALL swap(_STLP_TEMPLATE_CONTAINER& __x,
26 | _STLP_TEMPLATE_CONTAINER& __y) {
27 | __x.swap(__y);
28 | }
29 | #endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */
30 |
--------------------------------------------------------------------------------
/stlport/stl/_relops_hash_cont.h:
--------------------------------------------------------------------------------
1 | /* This is an implementation file which is intended to be included
2 | * multiple times with different _STLP_TEMPLATE_CONTAINER settings.
3 | */
4 |
5 | #if defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
6 |
7 | _STLP_TEMPLATE_HEADER
8 | inline void _STLP_CALL
9 | swap(_STLP_TEMPLATE_CONTAINER& __hm1, _STLP_TEMPLATE_CONTAINER& __hm2) {
10 | __hm1.swap(__hm2);
11 | }
12 |
13 | #endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */
14 |
--------------------------------------------------------------------------------
/stlport/stl/_stlport_version.h:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Copyright (c) 2005
4 | * Francois Dumont
5 | *
6 | * This material is provided "as is", with absolutely no warranty expressed
7 | * or implied. Any use is at your own risk.
8 | *
9 | * Permission to use or copy this software for any purpose is hereby granted
10 | * without fee, provided the above notices are retained on all copies.
11 | * Permission to modify the code and to distribute modified code is granted,
12 | * provided the above notices are retained, and a notice that the code was
13 | * modified is included with the above copyright notice.
14 | *
15 | */
16 |
17 | #ifndef _STLP_STLPORT_VERSION_H
18 | #define _STLP_STLPORT_VERSION_H
19 |
20 | /* The last SGI STL release we merged with */
21 | #define __SGI_STL 0x330
22 |
23 | /* STLport version */
24 | #define _STLPORT_MAJOR 5
25 | #define _STLPORT_MINOR 1
26 | #define _STLPORT_PATCHLEVEL 3
27 |
28 | #define _STLPORT_VERSION 0x513
29 |
30 | #endif /* _STLP_STLPORT_VERSION_H */
31 |
--------------------------------------------------------------------------------
/stlport/stl/_string_npos.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005
3 | * Francois Dumont
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | */
14 |
15 | /* This header contains npos definition used in basic_string and rope
16 | * implementation. It do not have to be guarded as files including it
17 | * are already guarded and it has sometimes to be included several times.
18 | */
19 |
20 | #if defined (_STLP_STATIC_CONST_INIT_BUG)
21 | enum { npos = -1 };
22 | #elif defined (__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 96)
23 | // inline initializer conflicts with 'extern template'
24 | static const size_t npos;
25 | #else
26 | static const size_t npos = ~(size_t)0;
27 | #endif
28 |
--------------------------------------------------------------------------------
/stlport/stl/config/_aix.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "AIX"
2 |
--------------------------------------------------------------------------------
/stlport/stl/config/_apcc.h:
--------------------------------------------------------------------------------
1 | // STLport config file for Apogee 4.x
2 |
3 | #define _STLP_COMPILER "Apogee"
4 |
5 | #define _STLP_NO_NEW_NEW_HEADER 1
6 | #define _STLP_HAS_NO_NEW_IOSTREAMS 1
7 | #define _STLP_HAS_NO_NEW_C_HEADERS 1
8 |
9 | #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
10 | # define _STLP_RAND48 1
11 | #endif
12 | // # define _STLP_RAND48 1
13 | #define _STLP_LONG_LONG long long
14 | #define _STLP_NO_BAD_ALLOC 1
15 | #define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
16 | #define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
17 | // # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
18 | #define _STLP_NO_EXCEPTION_HEADER 1
19 |
20 | #undef _STLP_LINK_TIME_INSTANTIATION
21 | #define _STLP_LINK_TIME_INSTANTIATION 1
22 |
23 | #ifdef __STDLIB
24 | # undef _STLP_NO_NEW_C_HEADERS
25 | # undef _STLP_NO_NEW_NEW_HEADER
26 | # undef _STLP_NO_BAD_ALLOC
27 | # undef _STLP_LONG_LONG
28 | #else
29 | # undef _STLP_NO_EXCEPTION_SPEC
30 | # define _STLP_NO_EXCEPTION_SPEC 1
31 | #endif
32 |
--------------------------------------------------------------------------------
/stlport/stl/config/_cygwin.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "Cygwin"
2 |
3 | /* Glibc is the platform API */
4 | #if !defined (_STLP_USE_GLIBC)
5 | # define _STLP_USE_GLIBC
6 | #endif
7 |
--------------------------------------------------------------------------------
/stlport/stl/config/_epilog.h:
--------------------------------------------------------------------------------
1 | #if defined (_STLP_MSVC) || defined (__ICL) || defined (__BORLANDC__)
2 |
3 | #if defined (__BORLANDC__)
4 | # pragma option pop
5 | # pragma option -w-pow // -w-8062 Previous options and warnings not restored
6 | #else
7 | # if !(defined (_STLP_MSVC) && (_STLP_MSVC < 1200))
8 | # pragma warning (pop)
9 | # endif
10 | # pragma pack (pop)
11 | #endif
12 |
13 | #elif defined (__sgi) && !defined (__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
14 |
15 | # pragma reset woff 1174
16 | # pragma reset woff 1375
17 | # pragma reset woff 1209
18 | /* from iterator_base.h */
19 | # pragma reset woff 1183
20 |
21 | #elif defined (__DECCXX)
22 |
23 | # ifdef __PRAGMA_ENVIRONMENT
24 | # pragma __environment __restore
25 | # endif
26 |
27 | #elif defined (__IBMCPP__)
28 |
29 | # pragma info(restore)
30 |
31 | #endif
32 |
33 | #pragma warning (suppress : 4103)
34 |
--------------------------------------------------------------------------------
/stlport/stl/config/_freebsd.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "Free BSD"
2 |
--------------------------------------------------------------------------------
/stlport/stl/config/_fujitsu.h:
--------------------------------------------------------------------------------
1 | /* STLport configuration for Fujitsu compiler : looks like a perfect one ! */
2 | #define _STLP_COMPILER "Fujitsu"
3 |
4 | #define _STLP_NATIVE_INCLUDE_PATH ../std
5 | #define _STLP_UINT32_T unsigned int
6 | #define _STLP_LONG_LONG long long
7 | #define _STLP_WCHAR_SUNPRO_EXCLUDE 1
8 |
--------------------------------------------------------------------------------
/stlport/stl/config/_hpux.h:
--------------------------------------------------------------------------------
1 | #ifndef __stl_config__hpux_h
2 | #define __stl_config__hpux_h
3 |
4 | #define _STLP_PLATFORM "HP Unix"
5 |
6 | #ifdef __GNUC__
7 | # define _STLP_NO_WCHAR_T
8 | # define _STLP_NO_LONG_DOUBLE
9 | #endif
10 |
11 | #endif /* __stl_config__hpux_h */
12 |
--------------------------------------------------------------------------------
/stlport/stl/config/_mac.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "Mac"
2 |
--------------------------------------------------------------------------------
/stlport/stl/config/_macosx.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "Mac OS X"
2 |
3 | #if defined (__BIG_ENDIAN__)
4 | # define _STLP_BIG_ENDIAN 1
5 | #elif defined (__LITTLE_ENDIAN__)
6 | # define _STLP_LITTLE_ENDIAN 1
7 | #endif
8 |
--------------------------------------------------------------------------------
/stlport/stl/config/_mlc.h:
--------------------------------------------------------------------------------
1 | // STLport configuration file
2 | // It is internal STLport header - DO NOT include it directly
3 |
4 | #define _STLP_NO_MEMBER_TEMPLATES // Compiler does not support member templates
5 | #define _STLP_NO_MEMBER_TEMPLATE_CLASSES // Compiler does not support member template classes
6 |
7 | #define _STLP_HAS_NEW_NEW_HEADER
8 |
--------------------------------------------------------------------------------
/stlport/stl/config/_netware.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "Novell Netware"
2 |
--------------------------------------------------------------------------------
/stlport/stl/config/_openbsd.h:
--------------------------------------------------------------------------------
1 | #define _STLP_PLATFORM "Open BSD"
2 |
--------------------------------------------------------------------------------
/stlport/stl/type_manips.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/stlport/stl/type_manips.h
--------------------------------------------------------------------------------
/stlport/streambuf:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Silicon Graphics Computer Systems, Inc.
4 | *
5 | * Copyright (c) 1999
6 | * Boris Fomitchev
7 | *
8 | * This material is provided "as is", with absolutely no warranty expressed
9 | * or implied. Any use is at your own risk.
10 | *
11 | * Permission to use or copy this software for any purpose is hereby granted
12 | * without fee, provided the above notices are retained on all copies.
13 | * Permission to modify the code and to distribute modified code is granted,
14 | * provided the above notices are retained, and a notice that the code was
15 | * modified is included with the above copyright notice.
16 | *
17 | */
18 | #ifndef _STLP_STREAMBUF
19 | #define _STLP_STREAMBUF
20 |
21 | # ifndef _STLP_OUTERMOST_HEADER_ID
22 | # define _STLP_OUTERMOST_HEADER_ID 0x1066
23 | # include
24 | # endif
25 |
26 | # ifdef _STLP_PRAGMA_ONCE
27 | # pragma once
28 | # endif
29 |
30 | # include
31 | # include
32 |
33 | # if (_STLP_OUTERMOST_HEADER_ID == 0x1066)
34 | # include
35 | # undef _STLP_OUTERMOST_HEADER_ID
36 | # endif
37 |
38 | #endif /* _STLP_STREAMBUF */
39 |
40 | // Local Variables:
41 | // mode:C++
42 | // End:
43 |
--------------------------------------------------------------------------------
/stlport/typeinfo:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1999
3 | * Boris Fomitchev
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_TYPEINFO
17 |
18 | #ifndef _STLP_OUTERMOST_HEADER_ID
19 | # define _STLP_OUTERMOST_HEADER_ID 0x473
20 | # define _STLP_TYPEINFO
21 | # include
22 | #endif
23 |
24 | #if (_STLP_OUTERMOST_HEADER_ID != 0x473)
25 | # include _STLP_NATIVE_CPP_RUNTIME_HEADER(typeinfo)
26 | #else
27 | # ifndef _STLP_INTERNAL_TYPEINFO
28 | # include
29 | # endif
30 | #endif
31 |
32 | #if (_STLP_OUTERMOST_HEADER_ID == 0x473)
33 | # include
34 | # undef _STLP_OUTERMOST_HEADER_ID
35 | #endif
36 |
37 | #endif
38 |
39 | // Local Variables:
40 | // mode:C++
41 | // End:
42 |
--------------------------------------------------------------------------------
/stlport/unordered_map:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2004,2005
3 | * Francois Dumont
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_UNORDERED_MAP
17 | #define _STLP_UNORDERED_MAP
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x4030
21 | # include
22 | #endif
23 |
24 | #ifdef _STLP_PRAGMA_ONCE
25 | # pragma once
26 | #endif
27 |
28 | #include
29 |
30 | #if (_STLP_OUTERMOST_HEADER_ID == 0x4030)
31 | # include
32 | # undef _STLP_OUTERMOST_HEADER_ID
33 | #endif
34 |
35 | #endif /* _STLP_UNORDERED_MAP */
36 |
37 | // Local Variables:
38 | // mode:C++
39 | // End:
40 |
--------------------------------------------------------------------------------
/stlport/unordered_set:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2004,2005
3 | * Francois Dumont
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | #ifndef _STLP_UNORDERED_SET
17 | #define _STLP_UNORDERED_SET
18 |
19 | #ifndef _STLP_OUTERMOST_HEADER_ID
20 | # define _STLP_OUTERMOST_HEADER_ID 0x4031
21 | # include
22 | #endif
23 |
24 | #ifdef _STLP_PRAGMA_ONCE
25 | # pragma once
26 | #endif
27 |
28 | #include
29 |
30 | #if (_STLP_OUTERMOST_HEADER_ID == 0x4031)
31 | # include
32 | # undef _STLP_OUTERMOST_HEADER_ID
33 | #endif
34 |
35 | #endif /* _STLP_UNORDERED_SET */
36 |
37 | // Local Variables:
38 | // mode:C++
39 | // End:
40 |
--------------------------------------------------------------------------------
/stlport/using/export:
--------------------------------------------------------------------------------
1 | cstring
2 | fstream
3 | iomanip
4 | ios
5 | iosfwd
6 | iostream
7 | istream
8 | locale
9 | ostream
10 | sstream
11 | streambuf
12 | strstream
13 |
--------------------------------------------------------------------------------
/stlport/using/fstream:
--------------------------------------------------------------------------------
1 | #ifdef _STLP_BROKEN_USING_DIRECTIVE
2 | using namespace _STLP_STD;
3 | #else
4 | using _STLP_NEW_IO_NAMESPACE::basic_filebuf;
5 | using _STLP_NEW_IO_NAMESPACE::filebuf;
6 | using _STLP_NEW_IO_NAMESPACE::basic_ifstream;
7 | using _STLP_NEW_IO_NAMESPACE::basic_ofstream;
8 | using _STLP_NEW_IO_NAMESPACE::ifstream;
9 | using _STLP_NEW_IO_NAMESPACE::ofstream;
10 | using _STLP_NEW_IO_NAMESPACE::basic_fstream;
11 | using _STLP_NEW_IO_NAMESPACE::fstream;
12 |
13 | # ifndef _STLP_NO_WIDE_STREAMS
14 | using _STLP_NEW_IO_NAMESPACE::wofstream;
15 | using _STLP_NEW_IO_NAMESPACE::wfilebuf;
16 | using _STLP_NEW_IO_NAMESPACE::wifstream;
17 | using _STLP_NEW_IO_NAMESPACE::wfstream;
18 | # endif
19 | #endif
20 |
--------------------------------------------------------------------------------
/stlport/using/h/fstream.h:
--------------------------------------------------------------------------------
1 | using ::streambuf;
2 | using ::ifstream;
3 | using ::ofstream;
4 | using ::fstream;
5 |
--------------------------------------------------------------------------------
/stlport/using/h/iomanip.h:
--------------------------------------------------------------------------------
1 | using ::setiosflags;
2 | using ::resetiosflags;
3 | // using ::setbase;
4 | using ::setfill;
5 | using ::setprecision;
6 | using ::setw;
7 |
--------------------------------------------------------------------------------
/stlport/using/h/iostream.h:
--------------------------------------------------------------------------------
1 | using _STLP_OLD_IO_NAMESPACE::istream;
2 | using _STLP_OLD_IO_NAMESPACE::ostream;
3 |
4 | /* HP aCC include files re-define these when THREAD_SAFE */
5 | #if !defined(cin)
6 | using _STLP_OLD_IO_NAMESPACE::cin;
7 | #endif
8 | #if !defined(cout)
9 | using _STLP_OLD_IO_NAMESPACE::cout;
10 | #endif
11 | #if !defined(cerr)
12 | using _STLP_OLD_IO_NAMESPACE::cerr;
13 | #endif
14 | #if !defined(clog)
15 | using _STLP_OLD_IO_NAMESPACE::clog;
16 | #endif
17 |
18 | using _STLP_OLD_IO_NAMESPACE::endl;
19 | using _STLP_OLD_IO_NAMESPACE::ends;
20 |
21 | using _STLP_OLD_IO_NAMESPACE::ios;
22 | using _STLP_OLD_IO_NAMESPACE::flush;
23 |
24 | // using _STLP_OLD_IO_NAMESPACE::ws;
25 |
--------------------------------------------------------------------------------
/stlport/using/h/ostream.h:
--------------------------------------------------------------------------------
1 | using _STLP_OLD_IO_NAMESPACE::ostream;
2 | using _STLP_OLD_IO_NAMESPACE::endl;
3 | using _STLP_OLD_IO_NAMESPACE::ends;
4 | using _STLP_OLD_IO_NAMESPACE::flush;
5 |
6 | // using _STLP_OLD_IO_NAMESPACE::ws;
7 |
--------------------------------------------------------------------------------
/stlport/using/h/streambuf.h:
--------------------------------------------------------------------------------
1 | using ::streambuf;
2 |
--------------------------------------------------------------------------------
/stlport/using/h/strstream.h:
--------------------------------------------------------------------------------
1 | using _STLP_OLD_IO_NAMESPACE::strstreambuf;
2 | using _STLP_OLD_IO_NAMESPACE::istrstream;
3 | using _STLP_OLD_IO_NAMESPACE::ostrstream;
4 | using _STLP_OLD_IO_NAMESPACE::strstream;
5 |
--------------------------------------------------------------------------------
/stlport/using/iomanip:
--------------------------------------------------------------------------------
1 | using _STLP_NEW_IO_NAMESPACE::setiosflags;
2 | using _STLP_NEW_IO_NAMESPACE::resetiosflags;
3 | using _STLP_NEW_IO_NAMESPACE::setbase;
4 | using _STLP_NEW_IO_NAMESPACE::setfill;
5 | using _STLP_NEW_IO_NAMESPACE::setprecision;
6 | using _STLP_NEW_IO_NAMESPACE::setw;
7 |
--------------------------------------------------------------------------------
/stlport/using/iostream:
--------------------------------------------------------------------------------
1 |
2 | # include
3 |
4 | using _STLP_VENDOR_STD::cin;
5 | using _STLP_VENDOR_STD::cout;
6 | using _STLP_VENDOR_STD::cerr;
7 | using _STLP_VENDOR_STD::clog;
8 |
9 | # if ! defined (_STLP_NO_WIDE_STREAMS)
10 | using _STLP_VENDOR_STD::wcin;
11 | using _STLP_VENDOR_STD::wcout;
12 | using _STLP_VENDOR_STD::wcerr;
13 | using _STLP_VENDOR_STD::wclog;
14 | # endif
15 |
--------------------------------------------------------------------------------
/stlport/using/istream:
--------------------------------------------------------------------------------
1 | # include
2 |
3 | using _STLP_NEW_IO_NAMESPACE::basic_istream;
4 | using _STLP_NEW_IO_NAMESPACE::basic_iostream;
5 |
6 | using _STLP_NEW_IO_NAMESPACE::istream;
7 | using _STLP_NEW_IO_NAMESPACE::iostream;
8 |
9 | # if !defined (_STLP_NO_NATIVE_WIDE_STREAMS)
10 | using _STLP_NEW_IO_NAMESPACE::wistream;
11 | using _STLP_NEW_IO_NAMESPACE::wiostream;
12 | # endif
13 |
14 | #if !(defined (_STLP_MSVC) && (_STLP_MSVC < 1200))
15 | using _STLP_NEW_IO_NAMESPACE::ws;
16 | #endif
17 |
--------------------------------------------------------------------------------
/stlport/using/ostream:
--------------------------------------------------------------------------------
1 | using _STLP_NEW_IO_NAMESPACE::basic_ostream;
2 | using _STLP_NEW_IO_NAMESPACE::ostream;
3 |
4 | # ifndef _STLP_NO_WIDE_STREAMS
5 | using _STLP_NEW_IO_NAMESPACE::wostream;
6 | # endif
7 |
8 | using _STLP_NEW_IO_NAMESPACE::endl;
9 | using _STLP_NEW_IO_NAMESPACE::ends;
10 | using _STLP_NEW_IO_NAMESPACE::flush;
11 |
--------------------------------------------------------------------------------
/stlport/using/sstream:
--------------------------------------------------------------------------------
1 | using _STLP_NEW_IO_NAMESPACE::basic_stringbuf;
2 | using _STLP_NEW_IO_NAMESPACE::stringbuf;
3 |
4 | using _STLP_NEW_IO_NAMESPACE::basic_istringstream;
5 | using _STLP_NEW_IO_NAMESPACE::basic_ostringstream;
6 | using _STLP_NEW_IO_NAMESPACE::basic_stringstream;
7 | using _STLP_NEW_IO_NAMESPACE::istringstream;
8 | using _STLP_NEW_IO_NAMESPACE::ostringstream;
9 | using _STLP_NEW_IO_NAMESPACE::stringstream;
10 |
11 | #ifndef _STLP_NO_WIDE_STREAMS
12 | using _STLP_NEW_IO_NAMESPACE::wstringbuf;
13 | using _STLP_NEW_IO_NAMESPACE::wistringstream;
14 | using _STLP_NEW_IO_NAMESPACE::wostringstream;
15 | using _STLP_NEW_IO_NAMESPACE::wstringstream;
16 | #endif
17 |
--------------------------------------------------------------------------------
/stlport/using/streambuf:
--------------------------------------------------------------------------------
1 | using _STLP_NEW_IO_NAMESPACE::basic_streambuf;
2 | using _STLP_NEW_IO_NAMESPACE::streambuf;
3 | #ifndef _STLP_NO_WIDE_STREAMS
4 | using _STLP_NEW_IO_NAMESPACE::wstreambuf;
5 | # endif
6 |
--------------------------------------------------------------------------------
/stlport/using/strstream:
--------------------------------------------------------------------------------
1 | using _STLP_NEW_IO_NAMESPACE::strstreambuf;
2 | using _STLP_NEW_IO_NAMESPACE::istrstream;
3 | using _STLP_NEW_IO_NAMESPACE::ostrstream;
4 | using _STLP_NEW_IO_NAMESPACE::strstream;
5 |
--------------------------------------------------------------------------------
/test/compiler/Makefile.inc:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <04/10/17 21:16:38 ptr>
2 | # $Id: Makefile.inc,v 1.2 2008-02-26 14:59:44 bazis Exp $
3 |
4 | PRGNAME = compiler_test
5 | SRC_CPP = ttei1.cpp ttei2.cpp ttei3.cpp ttei4.cpp ttei5.cpp ttei6.cpp ttei7.cpp \
6 | movable.cpp
7 | SRC_CC = eh.cc
8 |
--------------------------------------------------------------------------------
/test/compiler/README:
--------------------------------------------------------------------------------
1 | 1. About this tests
2 |
3 | This is tests to check whether compiler understand or not some language
4 | construction. It is NOT tests for language support libraries, only tests for
5 | compiler!
6 |
7 | The main purposes of this tests is to help for developers to find correct
8 | workarounds, if compiler don't understand some (correct) language constructions.
9 |
10 | --------------------------------------------------------
11 |
12 | 2. Compilation
13 |
14 | Compilation with GNU Make utility and gcc compiler:
15 |
16 | make -f gcc.mak -k
17 |
18 |
19 |
20 | --------------------------------------------------------
21 |
22 | Notes about tests.
23 |
24 | ttei1.cpp, ttei2.cpp, ttei3.cpp, ttei4.cpp, ttei5.cpp:
25 |
26 | tests for template-in-the-template explicit specialization.
27 | Indeed ttei3.cpp, ttei4.cpp, ttei5.cpp suggest syntax not approved by standard
28 | (14.7.3, paragraphs 16--18), but ttei3.cpp, ttei4.cpp accepted (recheck!) by VC6,
29 | while ttei5.cpp accepted by gcc before 3.4.0.
30 |
--------------------------------------------------------------------------------
/test/compiler/StTerm-order/Makefile:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <03/07/09 18:08:47 ptr>
2 |
3 | SRCROOT := ../../../build
4 | COMPILER_NAME := gcc
5 |
6 | WITHOUT_STLPORT = 1
7 | # STLPORT_DIR := ../../..
8 | include Makefile.inc
9 | include ${SRCROOT}/Makefiles/top.mak
10 |
11 | #CXXFLAGS += -fuse-cxa-atexit
12 | LDFLAGS += -Wl,-rpath=${STLPORT_LIB_DIR}
13 |
--------------------------------------------------------------------------------
/test/compiler/StTerm-order/Makefile.inc:
--------------------------------------------------------------------------------
1 | # -*- makefile -*- Time-stamp: <02/07/14 14:03:13 ptr>
2 |
3 | PRGNAME = stterm-test
4 | SRC_CC = stterm-test.cc
5 |
--------------------------------------------------------------------------------
/test/compiler/gcc.mak:
--------------------------------------------------------------------------------
1 | # -*- Makefile -*- Time-stamp: <04/03/14 23:50:57 ptr>
2 | # $Id: gcc.mak,v 1.2 2008-02-26 14:59:44 bazis Exp $
3 |
4 | SRCROOT := ../../src/explore
5 | COMPILER_NAME := gcc
6 |
7 | ALL_TAGS := compile-only
8 | STLPORT_DIR := ../..
9 | include Makefile.inc
10 | include ${SRCROOT}/Makefiles/top.mak
11 | compile-only: $(OBJ)
12 |
--------------------------------------------------------------------------------
/test/compiler/movable.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | using namespace std;
6 |
7 | struct S :
8 | public string
9 | {
10 | };
11 |
12 | void test()
13 | {
14 | list l;
15 | l.push_back( S() );
16 |
17 | vector v;
18 | v.push_back( S() );
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/test/compiler/ttei1.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | * gcc 2.95.3
4 | * MSVC 6
5 | *
6 | * It is known that this code compiled by following compilers:
7 | * gcc 3.3.3
8 | * gcc 3.4.1
9 | * MSVC 8 Beta
10 | */
11 |
12 | struct A
13 | {
14 | private:
15 | struct B
16 | {
17 | template
18 | static void f( T& ) {}
19 |
20 | template
21 | struct C
22 | {
23 | template
24 | static void f( T& ) {}
25 | };
26 | };
27 | };
28 |
29 | template <> template
30 | void A::B::C::f( T& ) {}
31 |
32 |
--------------------------------------------------------------------------------
/test/compiler/ttei2.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | *
4 | * It is known that this code compiled by following compilers:
5 | * gcc 2.95.3
6 | * gcc 3.3.3
7 | * gcc 3.4.1
8 | * MSVC 6
9 | * MSVC 8
10 | */
11 |
12 | struct A
13 | {
14 | private:
15 | struct B
16 | {
17 | template
18 | static void f( T& ) {}
19 |
20 | template
21 | struct C
22 | {
23 | };
24 | };
25 | };
26 |
27 | template <>
28 | struct A::B::C
29 | {
30 | };
31 |
32 |
--------------------------------------------------------------------------------
/test/compiler/ttei3.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | * gcc 2.95.3
4 | * gcc 3.3.3
5 | * gcc 3.4.1
6 | *
7 | * It is known that this code compiled by following compilers:
8 | *
9 | * MSVC 6
10 | * MSVC 8 Beta
11 | */
12 |
13 | /*
14 | * Indeed this code is wrong: explicit template specialization
15 | * have to appear out-of-class.
16 | *
17 | */
18 |
19 | struct A
20 | {
21 | private:
22 | struct B
23 | {
24 | template
25 | static void f( T& ) {}
26 |
27 | template
28 | struct C
29 | {
30 | template
31 | static void f( T& ) {}
32 | };
33 |
34 | template <>
35 | struct C
36 | {
37 | template
38 | static void f( T& ) {}
39 | };
40 | };
41 | };
42 |
43 |
--------------------------------------------------------------------------------
/test/compiler/ttei4.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | * gcc 2.95.3
4 | * gcc 3.3.3
5 | * gcc 3.4.1
6 | *
7 | * It is known that this code compiled by following compilers:
8 | *
9 | * MSVC 6
10 | * MSVC 8 Beta
11 | */
12 |
13 | /*
14 | * Indeed this code is wrong: 1. explicit template specialization
15 | * have to appear out-of-class; 2. specialized struct C have to
16 | * have function f.
17 | *
18 | */
19 |
20 | struct A
21 | {
22 | private:
23 | struct B
24 | {
25 | template
26 | static void f( T& ) {}
27 |
28 | template
29 | struct C
30 | {
31 | template
32 | static void f( T& ) {}
33 | };
34 |
35 | template <>
36 | struct C
37 | {
38 | };
39 | };
40 | };
41 |
42 |
--------------------------------------------------------------------------------
/test/compiler/ttei5.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | * gcc 3.4.1
4 | *
5 | * It is known that this code compiled by following compilers:
6 | * gcc 2.95.3
7 | * gcc 3.3.3
8 | *
9 | * MSVC 6
10 | * MSVC 8 Beta
11 | */
12 |
13 | /*
14 | * Indeed this code is wrong: explicit template specialization
15 | * have to appear out-of-class.
16 | *
17 | */
18 |
19 | struct A
20 | {
21 | private:
22 | struct B
23 | {
24 | template
25 | static void f( T& ) {}
26 |
27 | template
28 | struct C
29 | {
30 | template
31 | static void f( T& ) {}
32 | };
33 |
34 | template <>
35 | struct C
36 | {
37 | template
38 | static void f( T& ) {}
39 | };
40 | };
41 | };
42 |
43 |
--------------------------------------------------------------------------------
/test/compiler/ttei6.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | *
4 | * It is known that this code compiled by following compilers:
5 | *
6 | * MSVC 6
7 | * MSVC 8 Beta
8 | */
9 |
10 | /*
11 | * This code represent what STLport waits from a compiler which support
12 | * member template classes (!_STLP_NO_MEMBER_TEMPLATE_CLASSES)
13 | */
14 |
15 | template
16 | struct A
17 | {
18 | template
19 | struct B
20 | {
21 | typedef T2 _Type;
22 | };
23 | };
24 |
25 |
26 | template
27 | struct C
28 | {
29 | typedef typename A:: template B::_Type ABType;
30 | };
31 |
--------------------------------------------------------------------------------
/test/compiler/ttei7.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * It is known that this code not compiled by following compilers:
3 | *
4 | * MSVC 6
5 | *
6 | * It is known that this code compiled by following compilers:
7 | *
8 | * MSVC 8 Beta
9 | */
10 |
11 | /*
12 | * This code represent what STLport waits from a compiler which support
13 | * the rebind member template class technique (!_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE)
14 | */
15 |
16 | template
17 | struct A
18 | {
19 | template
20 | struct B
21 | {
22 | typedef A _Type;
23 | };
24 | };
25 |
26 |
27 | template
28 | struct C
29 | {
30 | typedef typename A:: template B::_Type _ATType;
31 | };
32 |
--------------------------------------------------------------------------------
/test/eh/TestClass.cpp:
--------------------------------------------------------------------------------
1 | /***********************************************************************************
2 | TestClass.cpp
3 |
4 | * Copyright (c) 1997
5 | * Mark of the Unicorn, Inc.
6 | *
7 | * Permission to use, copy, modify, distribute and sell this software
8 | * and its documentation for any purpose is hereby granted without fee,
9 | * provided that the above copyright notice appear in all copies and
10 | * that both that copyright notice and this permission notice appear
11 | * in supporting documentation. Mark of the Unicorn makes no
12 | * representations about the suitability of this software for any
13 | * purpose. It is provided "as is" without express or implied warranty.
14 |
15 | ***********************************************************************************/
16 | #include "TestClass.h"
17 |
18 | #include
19 |
20 | std::ostream& operator << (std::ostream& s, const TestClass& t) {
21 | return s << t.value();
22 | }
23 |
24 |
25 |
--------------------------------------------------------------------------------
/test/eh/bug.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 | #include
6 |
7 | struct compare
8 | {
9 | bool operator()(int* x, int* y)
10 | { return *x < *y; }
11 |
12 | };
13 |
14 | int main(int argc, char const* const argv[])
15 | {
16 | std::size_t niters = argc < 2 ? 1000 : boost::lexical_cast(argv[1]);
17 |
18 | boost::timer t;
19 |
20 | std::vector v;
21 | for (int n = 0; n < niters; ++n)
22 | {
23 | v.insert(v.begin() + v.size()/2, n);
24 | }
25 |
26 | std::cout << "vector fill: " << t.elapsed() << std::endl;
27 |
28 | std::multiset m;
29 | for (int n = 0; n < niters; ++n)
30 | {
31 | m.insert(&v[n]);
32 | }
33 | std::cout << "map fill 1: " << t.elapsed() << std::endl;
34 | for (int n = 0; n < niters; ++n)
35 | {
36 | m.insert(&v[n]);
37 | }
38 | std::cout << "map fill 2: " << t.elapsed() << std::endl;
39 | }
40 |
--------------------------------------------------------------------------------
/test/eh/export:
--------------------------------------------------------------------------------
1 | LeakCheck.h
2 | Prefix.h
3 | SortClass.h
4 | TestClass.cpp
5 | TestClass.h
6 | Tests.h
7 | ThrowCompare.h
8 | export
9 | gcc.mak
10 | main.cpp
11 | nc_alloc.cpp
12 | nc_alloc.h
13 | random_number.cpp
14 | random_number.h
15 | sunpro.mak
16 | test_algo.cpp
17 | test_algobase.cpp
18 | test_assign_op.h
19 | test_bit_vector.cpp
20 | test_bitset.cpp
21 | test_construct.h
22 | test_deque.cpp
23 | test_hash_map.cpp
24 | test_hash_resize.h
25 | test_hash_set.cpp
26 | test_insert.h
27 | test_list.cpp
28 | test_map.cpp
29 | test_push_back.h
30 | test_push_front.h
31 | test_rope.cpp
32 | test_set.cpp
33 | test_slist.cpp
34 | test_string.cpp
35 | test_valarray.cpp
36 | test_vector.cpp
37 | vc.mak
38 |
--------------------------------------------------------------------------------
/test/eh/locale.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/test/eh/locale.cpp
--------------------------------------------------------------------------------
/test/eh/mwerks_console_OS_X.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sysprogs/stlport-kernel/a0ad0144bc4bccd3d6990512415157b383870670/test/eh/mwerks_console_OS_X.c
--------------------------------------------------------------------------------
/test/eh/mwerks_debug_prefix.h:
--------------------------------------------------------------------------------
1 | //mwerks_debug_prefix.h
2 | #define _STLP_NO_FORCE_INSTANTIATE 1// for debugging
3 | #define EH_VECTOR_OPERATOR_NEW 1
4 | #define _STLP_DEBUG 1 // enable the use of allocation debugging
5 |
6 | #if __MWERKS__ >= 0x3000
7 | #include
8 | #endif
--------------------------------------------------------------------------------
/test/eh/mwerks_nosgi_debug_prefix.h:
--------------------------------------------------------------------------------
1 | //mwerks_nosgi_debug_prefix.h
2 | #define _STLP_NO_SGI_IOSTREAMS 1
3 | #define _STLP_NO_FORCE_INSTANTIATE 1 // for debugging
4 | #define _STLP_DEBUG_UNINITIALIZED 1 // enable the use of allocation debugging
5 | #define EH_VECTOR_OPERATOR_NEW 1
6 |
--------------------------------------------------------------------------------
/test/eh/mwerks_nosgi_prefix.h:
--------------------------------------------------------------------------------
1 | //mwerks_nosgi_prefix.h
2 | #define _STLP_NO_SGI_IOSTREAMS 1
3 | #define _STLP_NO_FORCE_INSTANTIATE 1 // for debugging
4 | #define EH_VECTOR_OPERATOR_NEW 1
5 | #define NDEBUG 1
6 |
--------------------------------------------------------------------------------
/test/eh/mwerks_prefix.h:
--------------------------------------------------------------------------------
1 | //mwerks_prefix.h
2 | #define _STLP_NO_FORCE_INSTANTIATE 1// for debugging
3 | #define EH_VECTOR_OPERATOR_NEW 1
4 | #define NDEBUG 1
5 |
6 | #if __MWERKS__ >= 0x3000
7 | #include
8 | #endif
--------------------------------------------------------------------------------
/test/eh/random_number.h:
--------------------------------------------------------------------------------
1 | /***********************************************************************************
2 | random_number.h
3 |
4 | * Copyright (c) 1997-1998
5 | * Mark of the Unicorn, Inc.
6 | *
7 | * Permission to use, copy, modify, distribute and sell this software
8 | * and its documentation for any purpose is hereby granted without fee,
9 | * provided that the above copyright notice appear in all copies and
10 | * that both that copyright notice and this permission notice appear
11 | * in supporting documentation. Mark of the Unicorn makes no
12 | * representations about the suitability of this software for any
13 | * purpose. It is provided "as is" without express or implied warranty.
14 |
15 | ***********************************************************************************/
16 | #ifndef RANDOM_NUMBER_DWA120298_H_
17 | #define RANDOM_NUMBER_DWA120298_H_
18 |
19 | #include
20 |
21 | // Return a random number in the given range.
22 | unsigned random_number( size_t range );
23 |
24 | // default base for random container sizes
25 | extern unsigned random_base;
26 |
27 | #endif // #include guard
28 |
--------------------------------------------------------------------------------
/test/eh/test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | template
6 | inline void printElements(const T& coll, const char* msg = "")
7 | {
8 | typename T::const_iterator it;
9 | std::cout << msg;
10 | for(it = coll.begin(); it != coll.end(); ++it) {
11 | std::cout << *it << ' ';
12 | }
13 | std::cout << std:: endl;
14 | }
15 |
16 | int main(int /* argc */, char** /* argv */)
17 | {
18 | std::set set1, set2;
19 | std::vector aVector;
20 |
21 | aVector.push_back(1);
22 | aVector.push_back(1);
23 |
24 | set1.insert(aVector.begin(), aVector.end());
25 |
26 | set2.insert(1);
27 | set2.insert(1);
28 |
29 | printElements(aVector, "vector: ");
30 | printElements(set1, "set1 : ");
31 | printElements(set2, "set2 : ");
32 |
33 | return 0;
34 | }
35 | # if 0
36 | # include
37 | main()
38 | {
39 | // std::stringstream tstr;
40 | std::cout<<"hello world\n";
41 | }
42 | # endif
43 |
--------------------------------------------------------------------------------
/test/unit/_template.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #include "cppunit_proxy.h"
5 |
6 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7 | using namespace std;
8 | #endif
9 |
10 | //
11 | // TestCase class
12 | //
13 | class Test : public CPPUNIT_NS::TestCase
14 | {
15 | CPPUNIT_TEST_SUITE(Test);
16 | CPPUNIT_TEST(test);
17 | CPPUNIT_TEST_SUITE_END();
18 |
19 | protected:
20 | void test();
21 | };
22 |
23 | CPPUNIT_TEST_SUITE_REGISTRATION(Test);
24 |
25 | //
26 | // tests implementation
27 | //
28 | void Test::test()
29 | {
30 | CPPUNIT_ASSERT(true);
31 | }
32 |
--------------------------------------------------------------------------------
/test/unit/accum_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #include "cppunit/cppunit_proxy.h"
5 |
6 | #if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES)
7 | using namespace std;
8 | #endif
9 |
10 | //
11 | // TestCase class
12 | //
13 | class AccumTest : public CPPUNIT_NS::TestCase
14 | {
15 | CPPUNIT_TEST_SUITE(AccumTest);
16 | CPPUNIT_TEST(accum1);
17 | CPPUNIT_TEST(accum2);
18 | CPPUNIT_TEST_SUITE_END();
19 |
20 | protected:
21 | void accum1();
22 | void accum2();
23 | static int mult(int initial_, int element_);
24 | };
25 |
26 | CPPUNIT_TEST_SUITE_REGISTRATION(AccumTest);
27 |
28 | //
29 | // tests implementation
30 | //
31 | void AccumTest::accum1()
32 | {
33 | vector v(5);
34 | for(int i = 0; (size_t)i < v.size(); ++i)
35 | v[i] = i + 1;
36 | int sum = accumulate(v.begin(), v.end(), 0);
37 | CPPUNIT_ASSERT(sum==15);
38 | }
39 | void AccumTest::accum2()
40 | {
41 | vector v(5);
42 | for(int i = 0; (size_t)i < v.size(); ++i)
43 | v[i] = i + 1;
44 | int prod = accumulate(v.begin(), v.end(), 1, mult);
45 | CPPUNIT_ASSERT(prod==120);
46 | }
47 | int AccumTest::mult(int initial_, int element_)
48 | {
49 | return initial_ * element_;
50 | }
51 |
--------------------------------------------------------------------------------
/test/unit/advance_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #include "cppunit/cppunit_proxy.h"
5 |
6 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7 | using namespace std;
8 | #endif
9 |
10 | //
11 | // TestCase class
12 | //
13 | class AdvanceTest : public CPPUNIT_NS::TestCase
14 | {
15 | CPPUNIT_TEST_SUITE(AdvanceTest);
16 | CPPUNIT_TEST(adv);
17 | CPPUNIT_TEST_SUITE_END();
18 |
19 | protected:
20 | void adv();
21 | };
22 |
23 | CPPUNIT_TEST_SUITE_REGISTRATION(AdvanceTest);
24 |
25 | //
26 | // tests implementation
27 | //
28 | void AdvanceTest::adv()
29 | {
30 | typedef vector IntVector;
31 | IntVector v(10);
32 | for (int i = 0; (size_t)i < v.size(); ++i)
33 | v[i] = i;
34 | IntVector::iterator location = v.begin();
35 | CPPUNIT_ASSERT(*location==0);
36 | advance(location, 5);
37 | CPPUNIT_ASSERT(*location==5);
38 | }
39 |
--------------------------------------------------------------------------------
/test/unit/algorithm_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/assert_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/bitset_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/bnegate_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #include "cppunit/cppunit_proxy.h"
5 |
6 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7 | using namespace std;
8 | #endif
9 |
10 | //
11 | // TestCase class
12 | //
13 | class BnegateTest : public CPPUNIT_NS::TestCase
14 | {
15 | CPPUNIT_TEST_SUITE(BnegateTest);
16 | CPPUNIT_TEST(bnegate1);
17 | CPPUNIT_TEST(bnegate2);
18 | CPPUNIT_TEST_SUITE_END();
19 |
20 | protected:
21 | void bnegate1();
22 | void bnegate2();
23 | };
24 |
25 | CPPUNIT_TEST_SUITE_REGISTRATION(BnegateTest);
26 |
27 | //
28 | // tests implementation
29 | //
30 | void BnegateTest::bnegate1()
31 | {
32 | int array [4] = { 4, 9, 7, 1 };
33 |
34 | sort(array, array + 4, binary_negate >(greater()));
35 | CPPUNIT_ASSERT(array[0]==1);
36 | CPPUNIT_ASSERT(array[1]==4);
37 | CPPUNIT_ASSERT(array[2]==7);
38 | CPPUNIT_ASSERT(array[3]==9);
39 | }
40 | void BnegateTest::bnegate2()
41 | {
42 | int array [4] = { 4, 9, 7, 1 };
43 | sort(array, array + 4, not2(greater()));
44 | CPPUNIT_ASSERT(array[0]==1);
45 | CPPUNIT_ASSERT(array[1]==4);
46 | CPPUNIT_ASSERT(array[2]==7);
47 | CPPUNIT_ASSERT(array[3]==9);
48 | }
49 |
--------------------------------------------------------------------------------
/test/unit/c_limits_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/c_locale_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cassert_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cctype_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cerrno_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cfloat_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/ciso646_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/climits_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/clocale_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cmath_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/complex_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cppunit/cppunit_proxy.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2003, 2004
3 | * Zdenek Nemec
4 | *
5 | * This material is provided "as is", with absolutely no warranty expressed
6 | * or implied. Any use is at your own risk.
7 | *
8 | * Permission to use or copy this software for any purpose is hereby granted
9 | * without fee, provided the above notices are retained on all copies.
10 | * Permission to modify the code and to distribute modified code is granted,
11 | * provided the above notices are retained, and a notice that the code was
12 | * modified is included with the above copyright notice.
13 | *
14 | */
15 |
16 | /* $Id: cppunit_proxy.h,v 1.2 2008-02-26 14:59:44 bazis Exp $ */
17 |
18 | #ifndef _CPPUNITPROXYINTERFACE_H_
19 | #define _CPPUNITPROXYINTERFACE_H_
20 |
21 | /*
22 | * STLport specific
23 | */
24 | #if !defined (CPPUNIT_MINI_USE_EXCEPTIONS) && \
25 | (!defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS))
26 | # define CPPUNIT_MINI_USE_EXCEPTIONS
27 | #endif
28 |
29 | #include "cppunit_mini.h"
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/test/unit/csetjmp_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/csignal_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cstdarg_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cstddef_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cstdio_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cstdlib_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
10 | //Just an additionnal compilation test for Borland that used to fail here.
11 | #if defined (__BORLANDC__)
12 | # include
13 | #endif
14 |
--------------------------------------------------------------------------------
/test/unit/cstring_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/ctime_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/ctype_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cwchar.cpp:
--------------------------------------------------------------------------------
1 | // #include
2 | // #include
3 | #include
4 | #include
5 | #include
6 |
7 | #if defined(WCHAR_MIN) && (WCHAR_MIN == 0)
8 | // do nothing, this is test for macro expansion
9 | #endif
10 |
11 | #if defined(WCHAR_MAX) && (WCHAR_MAX <= USHRT_MAX)
12 | // do nothing, this is test for macro expansion
13 | #endif
14 |
--------------------------------------------------------------------------------
/test/unit/cwchar_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/cwctype_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/deque_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/divides_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #include "cppunit/cppunit_proxy.h"
5 |
6 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7 | using namespace std;
8 | #endif
9 |
10 | //
11 | // TestCase class
12 | //
13 | class DivideTest : public CPPUNIT_NS::TestCase
14 | {
15 | CPPUNIT_TEST_SUITE(DivideTest);
16 | CPPUNIT_TEST(div);
17 | CPPUNIT_TEST_SUITE_END();
18 |
19 | protected:
20 | void div();
21 | };
22 |
23 | CPPUNIT_TEST_SUITE_REGISTRATION(DivideTest);
24 |
25 | //
26 | // tests implementation
27 | //
28 | void DivideTest::div()
29 | {
30 | int input [3] = { 2, 3, 4 };
31 | int result = accumulate(input, input + 3, 48, divides());
32 | CPPUNIT_ASSERT(result==2);
33 | }
34 |
--------------------------------------------------------------------------------
/test/unit/epilog_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
5 |
6 | struct some_struct {
7 | std::string s; // if std not properly redefined, error will be here
8 | };
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/test/unit/errno_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/exception_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/fib.h:
--------------------------------------------------------------------------------
1 | #ifndef _fib_h
2 | #define _fib_h
3 | class Fibonacci
4 | {
5 | public:
6 | Fibonacci() : v1(0), v2(1) {}
7 | inline int operator()();
8 | private:
9 | int v1;
10 | int v2;
11 | };
12 |
13 | inline int
14 | Fibonacci::operator()()
15 | {
16 | int r = v1 + v2;
17 | v1 = v2;
18 | v2 = r;
19 | return v1;
20 | }
21 | #endif // _fib_h
22 |
--------------------------------------------------------------------------------
/test/unit/float_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/fstream_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 |
9 | //Including this fle makes the test STLport specific but this is the only way to check
10 | //compiler config:
11 | #include
12 |
13 | #if !defined (_STLP_USE_NO_IOSTREAMS)
14 | # include
15 | #endif
16 |
--------------------------------------------------------------------------------
/test/unit/full_streambuf.h:
--------------------------------------------------------------------------------
1 | #ifndef _FULL_STREAM_H
2 | #define _FULL_STREAM_H
3 |
4 | #include
5 |
6 | /*
7 | * This full_streambuf purpose is to act like a full disk to check the right behavior
8 | * of the STLport code in such a case.
9 | */
10 |
11 | class full_streambuf : public std::streambuf {
12 | public:
13 | typedef std::streambuf _Base;
14 |
15 | typedef _Base::int_type int_type;
16 | typedef _Base::traits_type traits_type;
17 |
18 | full_streambuf(size_t nb_output, bool do_throw = false)
19 | : _nb_output(nb_output), _do_throw(do_throw)
20 | {}
21 |
22 | std::string const& str() const
23 | { return _buf; }
24 |
25 | protected:
26 | int_type overflow(int_type c) {
27 | if (_nb_output == 0) {
28 | #if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
29 | if (_do_throw) {
30 | throw "streambuf full";
31 | }
32 | #endif
33 | return traits_type::eof();
34 | }
35 | --_nb_output;
36 | _buf += traits_type::to_char_type(c);
37 | return c;
38 | }
39 |
40 | private:
41 | size_t _nb_output;
42 | bool _do_throw;
43 | std::string _buf;
44 | };
45 |
46 | #endif //_FULL_STREAM_H
47 |
--------------------------------------------------------------------------------
/test/unit/functional_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/greater_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "cppunit/cppunit_proxy.h"
6 |
7 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8 | using namespace std;
9 | #endif
10 |
11 | //
12 | // TestCase class
13 | //
14 | class GreaterTest : public CPPUNIT_NS::TestCase
15 | {
16 | CPPUNIT_TEST_SUITE(GreaterTest);
17 | CPPUNIT_TEST(greatert);
18 | CPPUNIT_TEST(greatereq);
19 | CPPUNIT_TEST_SUITE_END();
20 |
21 | protected:
22 | void greatert();
23 | void greatereq();
24 | };
25 |
26 | CPPUNIT_TEST_SUITE_REGISTRATION(GreaterTest);
27 |
28 | //
29 | // tests implementation
30 | //
31 | void GreaterTest::greatert()
32 | {
33 | int array[4] = { 3, 1, 4, 2 };
34 | sort(array, array + 4, greater() );
35 |
36 | CPPUNIT_ASSERT(array[0]==4);
37 | CPPUNIT_ASSERT(array[1]==3);
38 | CPPUNIT_ASSERT(array[2]==2);
39 | CPPUNIT_ASSERT(array[3]==1);
40 | }
41 | void GreaterTest::greatereq()
42 | {
43 | int array [4] = { 3, 1, 4, 2 };
44 | sort(array, array + 4, greater_equal());
45 | CPPUNIT_ASSERT(array[0]==4);
46 | CPPUNIT_ASSERT(array[1]==3);
47 | CPPUNIT_ASSERT(array[2]==2);
48 | CPPUNIT_ASSERT(array[3]==1);
49 | }
50 |
--------------------------------------------------------------------------------
/test/unit/iomanip_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 |
9 | //Including this fle makes the test STLport specific but this is the only way to check
10 | //compiler config:
11 | #include
12 |
13 | #if !defined (_STLP_USE_NO_IOSTREAMS)
14 | # include
15 | #endif
16 |
--------------------------------------------------------------------------------
/test/unit/ios_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 |
9 | //Including this fle makes the test STLport specific but this is the only way to check
10 | //compiler config:
11 | #include
12 |
13 | #if !defined (_STLP_USE_NO_IOSTREAMS)
14 | # include
15 | #endif
16 |
--------------------------------------------------------------------------------
/test/unit/iosfwd_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #ifndef _STLP_USE_NO_IOSTREAMS
9 | #include
10 | #endif
11 |
--------------------------------------------------------------------------------
/test/unit/iostream_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 |
9 | //Including this fle makes the test STLport specific but this is the only way to check
10 | //compiler config:
11 | #include
12 |
13 | #if !defined (_STLP_USE_NO_IOSTREAMS)
14 | # include
15 | #endif
16 |
--------------------------------------------------------------------------------
/test/unit/iota.h:
--------------------------------------------------------------------------------
1 | #ifndef IOTA_H
2 | #define IOTA_H
3 |
4 | #include
5 |
6 | //iota definition used in unit test
7 | template
8 | void __iota(_It __first, _It __last, _Tp __val) {
9 | #if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
10 | iota(__first, __last, __val);
11 | #else
12 | while (__first != __last) {
13 | *__first++ = __val++;
14 | }
15 | #endif
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/test/unit/iota_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | #include "cppunit/cppunit_proxy.h"
5 |
6 | #if defined(_STLP_USE_NAMESPACES)
7 | using namespace std;
8 | #endif
9 |
10 | //
11 | // TestCase class
12 | //
13 | class IotaTest : public CPPUNIT_NS::TestCase
14 | {
15 | CPPUNIT_TEST_SUITE(IotaTest);
16 | #if !defined (STLPORT) || defined (_STLP_NO_EXTENSIONS)
17 | CPPUNIT_IGNORE;
18 | #endif
19 | CPPUNIT_TEST(iota1);
20 | CPPUNIT_TEST_SUITE_END();
21 |
22 | protected:
23 | void iota1();
24 | };
25 |
26 | CPPUNIT_TEST_SUITE_REGISTRATION(IotaTest);
27 |
28 | //
29 | // tests implementation
30 | //
31 | void IotaTest::iota1()
32 | {
33 | #if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
34 | int numbers[10];
35 | iota(numbers, numbers + 10, 42);
36 | CPPUNIT_ASSERT(numbers[0]==42);
37 | CPPUNIT_ASSERT(numbers[1]==43);
38 | CPPUNIT_ASSERT(numbers[2]==44);
39 | CPPUNIT_ASSERT(numbers[3]==45);
40 | CPPUNIT_ASSERT(numbers[4]==46);
41 | CPPUNIT_ASSERT(numbers[5]==47);
42 | CPPUNIT_ASSERT(numbers[6]==48);
43 | CPPUNIT_ASSERT(numbers[7]==49);
44 | CPPUNIT_ASSERT(numbers[8]==50);
45 | CPPUNIT_ASSERT(numbers[9]==51);
46 | #endif
47 | }
48 |
--------------------------------------------------------------------------------
/test/unit/iso646_header_test.c:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/istream_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 |
9 | //Including this fle makes the test STLport specific but this is the only way to check
10 | //compiler config:
11 | #include
12 |
13 | #if !defined (_STLP_USE_NO_IOSTREAMS)
14 | # include
15 | #endif
16 |
--------------------------------------------------------------------------------
/test/unit/iterator_header_test.cpp:
--------------------------------------------------------------------------------
1 | /* This test purpose is simply to check Standard header independancy that
2 | * is to say that the header can be included alone without any previous
3 | * include.
4 | * Additionnaly, for C Standard headers that STLport expose, it can also be
5 | * used to check that files included by those headers are compatible with
6 | * pure C compilers.
7 | */
8 | #include
9 |
--------------------------------------------------------------------------------
/test/unit/less_test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "cppunit/cppunit_proxy.h"
6 |
7 | #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8 | using namespace std;
9 | #endif
10 |
11 | //
12 | // TestCase class
13 | //
14 | class LessTest : public CPPUNIT_NS::TestCase
15 | {
16 | CPPUNIT_TEST_SUITE(LessTest);
17 | CPPUNIT_TEST(lesst);
18 | CPPUNIT_TEST(lesseqt);
19 | CPPUNIT_TEST_SUITE_END();
20 |
21 | protected:
22 | void lesst();
23 | void lesseqt();
24 | };
25 |
26 | CPPUNIT_TEST_SUITE_REGISTRATION(LessTest);
27 |
28 | //
29 | // tests implementation
30 | //
31 | void LessTest::lesst()
32 | {
33 | int array [4] = { 3, 1, 4, 2 };
34 | sort(array, array + 4, less());
35 |
36 | CPPUNIT_ASSERT(array[0]==1);
37 | CPPUNIT_ASSERT(array[1]==2);
38 | CPPUNIT_ASSERT(array[2]==3);
39 | CPPUNIT_ASSERT(array[3]==4);
40 | }
41 | void LessTest::lesseqt()
42 | {
43 | int array [4] = { 3, 1, 4, 2 };
44 | sort(array, array + 4, less_equal