home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 14 / MA_Cover_14.iso / source / c / pegase_src / memory.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-03-06  |  1.2 KB  |  64 lines

  1. #ifndef _MEMORY_HPP
  2. #define _MEMORY_HPP 1
  3. /*
  4. **
  5. ** Memory.hpp
  6. **
  7. ** $VER: Memory.hpp 1.0 (27.06.98)
  8. **
  9. ** $Revision: 1.3 $
  10. ** $State: Exp $
  11. ** $Date: 1998/08/16 19:03:42 $
  12. **
  13. ** $Log: Memory.hpp $
  14. ** Revision 1.3  1998/08/16 19:03:42  kakace
  15. ** Version Beta3+
  16. **
  17. ** Revision 1.2  1998/07/27 02:25:37  kakace
  18. ** *** empty log message ***
  19. **
  20. ** Revision 1.1  1998/07/24 14:26:55  kakace
  21. ** Automatic global CheckIn
  22. **
  23. */
  24.  
  25. #ifndef  _INCLUDE_STDLIB_H
  26. #include <stdlib.h>
  27. #endif
  28.  
  29. #ifndef  EXEC_TYPES_H
  30. #include <exec/types.h>
  31. #endif
  32.  
  33. #ifndef  _PEGASECOND_HPP
  34. #include "PegaseCond.hpp"
  35. #endif
  36.  
  37.  
  38. //----------------------------------------------------------------------------------------------------
  39. //============================================ Prototypes ============================================
  40. //----------------------------------------------------------------------------------------------------
  41.  
  42.  
  43. //===== AllocBuffer() inlined =====
  44.  
  45. inline void *AllocBuffer(ULONG size)
  46. {
  47.     return (malloc(size));
  48. }
  49.  
  50.  
  51. //===== FreeBuffer() inlined =====
  52.  
  53. inline void FreeBuffer(void *buffaddr)
  54. {
  55.     free(buffaddr);
  56. }
  57.  
  58.  
  59. void *AllocAlignedBuffer(ULONG size);
  60. void FreeAlignedBuffer(void *buffaddr);
  61.  
  62. #endif  // MEMORY_HPP
  63.  
  64.