00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _STLP_ALLOC_H
00020 #define _STLP_ALLOC_H
00021
00022 # ifndef _STLP_OUTERMOST_HEADER_ID
00023 # define _STLP_OUTERMOST_HEADER_ID 0xa003
00024 # include <stl/_prolog.h>
00025 # endif
00026
00027 #if defined (_STLP_DEBUG) || defined (_STLP_ASSERTIONS) && !defined (_STLP_DEBUG_H)
00028 # include <stl/debug/_debug.h>
00029 #endif
00030
00031 # ifndef _STLP_CSTDDEF
00032 # include <cstddef>
00033 # endif
00034 # ifndef _STLP_CLIMITS
00035 # include <climits>
00036 # endif
00037 # ifndef _STLP_CSTDLIB
00038 # include <cstdlib>
00039 # endif
00040 # ifndef _STLP_CSTRING
00041 # include <cstring>
00042 # endif
00043 # ifndef _STLP_CASSERT
00044 # include <cassert>
00045 # endif
00046
00047 #ifndef _STLP_INTERNAL_ALLOC_H
00048 #include <stl/_alloc.h>
00049 #endif
00050
00051
00052 _STLP_BEGIN_NAMESPACE
00053
00054 typedef __sgi_alloc alloc;
00055 typedef __malloc_alloc<0> malloc_alloc;
00056 #ifdef _STLP_USE_NEWALLOC
00057 typedef __new_alloc new_alloc;
00058 #endif
00059
00060 #define simple_alloc __simple_alloc
00061 typedef __single_client_alloc single_client_alloc;
00062 typedef __multithreaded_alloc multithreaded_alloc;
00063
00064 _STLP_END_NAMESPACE
00065
00066 #ifdef _STLP_USE_NAMESPACES
00067 # ifdef _STLP_BROKEN_USING_DIRECTIVE
00068
00069 using namespace STLPORT;
00070
00071 # else
00072
00073 # ifdef _STLP_USE_RAW_SGI_ALLOCATORS
00074 using _STLP_STD::simple_alloc;
00075 using _STLP_STD::alloc;
00076 # endif
00077
00078 using _STLP_STD::malloc_alloc;
00079 # ifdef _STLP_DEBUG_ALLOC
00080 using _STLP_STD::__debug_alloc;
00081 # endif
00082 #ifdef _STLP_USE_NEWALLOC
00083 using _STLP_STD::new_alloc;
00084 #endif
00085
00086 using _STLP_STD::single_client_alloc;
00087 using _STLP_STD::multithreaded_alloc;
00088 using _STLP_STD::allocator;
00089
00090 # endif
00091 #endif
00092
00093 # if (_STLP_OUTERMOST_HEADER_ID == 0xa003)
00094 # include <stl/_epilog.h>
00095 # undef _STLP_OUTERMOST_HEADER_ID
00096 # endif
00097
00098 #endif
00099
00100
00101
00102
00103