home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / stlport / old_hp / alloc.h < prev    next >
C/C++ Source or Header  |  2002-04-29  |  2KB  |  104 lines

  1. /*
  2.  * Copyright (c) 1996,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_ALLOC_H
  20. #define _STLP_ALLOC_H
  21.  
  22. # ifndef _STLP_OUTERMOST_HEADER_ID
  23. #  define _STLP_OUTERMOST_HEADER_ID 0xa003
  24. #  include <stl/_prolog.h>
  25. # endif
  26.  
  27. #if defined  (_STLP_DEBUG) || defined (_STLP_ASSERTIONS) && !defined (_STLP_DEBUG_H)
  28. # include <stl/debug/_debug.h>
  29. #endif
  30.  
  31. # ifndef _STLP_CSTDDEF
  32. #  include <cstddef>
  33. # endif
  34. # ifndef _STLP_CLIMITS
  35. #  include <climits>
  36. # endif
  37. # ifndef _STLP_CSTDLIB
  38. #  include <cstdlib>
  39. # endif
  40. # ifndef _STLP_CSTRING
  41. #  include <cstring>
  42. # endif
  43. # ifndef _STLP_CASSERT
  44. #  include <cassert>
  45. # endif
  46.  
  47. #ifndef _STLP_INTERNAL_ALLOC_H
  48. #include <stl/_alloc.h>
  49. #endif
  50.  
  51. // Old SGI names
  52. _STLP_BEGIN_NAMESPACE
  53.  
  54. typedef __sgi_alloc alloc;
  55. typedef __malloc_alloc<0> malloc_alloc;
  56. #ifdef _STLP_USE_NEWALLOC
  57. typedef __new_alloc new_alloc;
  58. #endif
  59.  
  60. #define simple_alloc __simple_alloc
  61. typedef __single_client_alloc  single_client_alloc; 
  62. typedef __multithreaded_alloc  multithreaded_alloc; 
  63.  
  64. _STLP_END_NAMESPACE
  65.  
  66. #ifdef _STLP_USE_NAMESPACES
  67. # ifdef _STLP_BROKEN_USING_DIRECTIVE
  68.  
  69. using namespace STLPORT;
  70.  
  71. # else
  72.  
  73. # ifdef _STLP_USE_RAW_SGI_ALLOCATORS
  74. using _STLP_STD::simple_alloc;
  75. using _STLP_STD::alloc;
  76. # endif
  77.  
  78. using _STLP_STD::malloc_alloc; 
  79. # ifdef _STLP_DEBUG_ALLOC
  80. using _STLP_STD::__debug_alloc;
  81. # endif 
  82. #ifdef _STLP_USE_NEWALLOC
  83. using _STLP_STD::new_alloc;
  84. #endif
  85.  
  86. using _STLP_STD::single_client_alloc; 
  87. using _STLP_STD::multithreaded_alloc; 
  88. using _STLP_STD::allocator;
  89.  
  90. # endif /* _STLP_BROKEN_USING_DIRECTIVE */
  91. #endif /* _STLP_USE_NAMESPACES */
  92.  
  93. # if (_STLP_OUTERMOST_HEADER_ID == 0xa003)
  94. #  include <stl/_epilog.h>
  95. #  undef _STLP_OUTERMOST_HEADER_ID
  96. # endif
  97.  
  98. #endif /* _STLP_ALLOC_H */
  99.  
  100. // Local Variables:
  101. // mode:C++
  102. // End:
  103.  
  104.