home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / heapdump.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  1KB  |  51 lines

  1. /***
  2. *heapdump.c -  Output the heap data bases
  3. *
  4. *       Copyright (c) 1989-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       Display the heap data bases.
  8. *
  9. *       NOTE:  This module is NOT released with the C libs.  It is for
  10. *       debugging purposes only.
  11. *
  12. *******************************************************************************/
  13.  
  14. #ifndef WINHEAP
  15.  
  16. #ifdef _WIN32
  17.  
  18.  
  19. #include <cruntime.h>
  20. #include <heap.h>
  21. #include <malloc.h>
  22. #include <mtdll.h>
  23. #include <stdio.h>
  24.  
  25.  
  26.  
  27. #else  /* _WIN32 */
  28.  
  29. #if defined (_M_MPPC) || defined (_M_M68K)
  30.  
  31.  
  32. #include <cruntime.h>
  33. #include <heap.h>
  34. #include <malloc.h>
  35. #include <stdio.h>
  36. #include <macos\memory.h>               // Mac OS interface header
  37. #include <macos\errors.h>
  38. #include <macos\types.h>
  39. #include <macos\traps.h>
  40.  
  41. extern Handle hHeapRegions;
  42. extern int _heap_region_table_cur;
  43.  
  44.  
  45.  
  46. #endif  /* defined (_M_MPPC) || defined (_M_M68K) */
  47.  
  48. #endif  /* _WIN32 */
  49.  
  50. #endif  /* WINHEAP */
  51.