1
0

heap_scan_data.c 554 B

123456789101112131415161718192021222324
  1. #include "../private.h"
  2. #include "../node.h"
  3. #ifdef __CYGWIN__
  4. # define START _data_start__
  5. # define END _data_end__
  6. #else
  7. # define START etext
  8. # define END edata
  9. #endif
  10. extern char START, END;
  11. char *lub_heap_data_start = &START;
  12. char *lub_heap_data_end = &END;
  13. /*--------------------------------------------------------- */
  14. void lub_heap_scan_data(void)
  15. {
  16. /* now scan the memory */
  17. lub_heap_scan_memory(lub_heap_data_start,
  18. lub_heap_data_end - lub_heap_data_start);
  19. }
  20. /*--------------------------------------------------------- */