alloc.h

00001 /*
00002  * Copyright (c) 1996,1997
00003  * Silicon Graphics Computer Systems, Inc.
00004  *
00005  * Copyright (c) 1999 
00006  * Boris Fomitchev
00007  *
00008  * This material is provided "as is", with absolutely no warranty expressed
00009  * or implied. Any use is at your own risk.
00010  *
00011  * Permission to use or copy this software for any purpose is hereby granted 
00012  * without fee, provided the above notices are retained on all copies.
00013  * Permission to modify the code and to distribute modified code is granted,
00014  * provided the above notices are retained, and a notice that the code was
00015  * modified is included with the above copyright notice.
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 // Old SGI names
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 /* _STLP_BROKEN_USING_DIRECTIVE */
00091 #endif /* _STLP_USE_NAMESPACES */
00092 
00093 # if (_STLP_OUTERMOST_HEADER_ID == 0xa003)
00094 #  include <stl/_epilog.h>
00095 #  undef _STLP_OUTERMOST_HEADER_ID
00096 # endif
00097 
00098 #endif /* _STLP_ALLOC_H */
00099 
00100 // Local Variables:
00101 // mode:C++
00102 // End:
00103 

Generated on Mon Jun 5 10:20:43 2006 for Intelligence.kdevelop by  doxygen 1.4.6