home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / libgplus.5 / libgplus / gplus-in / memory.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-18  |  1.0 KB  |  43 lines

  1.  
  2. #ifndef _memory_h
  3. #define _memory_h 1
  4.  
  5. #include "_G_config.h"
  6. #include <stddef.h>
  7.  
  8. extern "C" {
  9.  
  10. void*     memalign _G_ARGS((_G_size_t, _G_size_t));
  11. void*     memccpy _G_ARGS((void*, const void*, int, _G_size_t));
  12. void*     memchr _G_ARGS((const void*, int, _G_size_t));
  13. int       memcmp _G_ARGS((const void*, const void*, _G_size_t));
  14. void*     memcpy _G_ARGS((void*, const void*, _G_size_t));
  15. void*     memmove _G_ARGS((void*, const void*, _G_size_t));
  16. void*     memset _G_ARGS((void*, int, _G_size_t));
  17. int       ffs _G_ARGS((int));
  18. #ifdef __OSF1__
  19. int      getpagesize _G_ARGS((void));
  20. #else
  21. _G_size_t    getpagesize _G_ARGS((void));
  22. #endif
  23. void*     valloc _G_ARGS((_G_size_t));
  24.  
  25. void      bcopy _G_ARGS((const void*, void*, _G_size_t));
  26. int       bcmp _G_ARGS((const void*, const void*, int));
  27. void      bzero _G_ARGS((void*, int));
  28. }
  29.  
  30. #ifdef __GNUG__
  31. #ifndef alloca
  32. #define alloca(x)  __builtin_alloca(x)
  33. #endif
  34. #else
  35. #ifndef IV
  36. extern "C" void* alloca(_G_size_t);
  37. #else
  38. extern "C" void* alloca(unsigned long);
  39. #endif /* IV */
  40. #endif
  41.  
  42. #endif
  43.