home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / memory / heapdbg / heap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-12  |  1.4 KB  |  34 lines

  1. /*********************************HEAP.H*****************************************/
  2.  
  3. #define malloc(size) my_malloc(__FILE__,__LINE__,(size))
  4. #define calloc(nitems,size) my_calloc(__FILE__,__LINE__,(nitems),(size))
  5. #define free(block)  my_free(__FILE__,__LINE__,(block))
  6.  
  7. void *my_malloc(char *file_name,unsigned int line_number,size_t size);
  8. void *my_calloc(char *file_name,unsigned int line_number,size_t nitems,size_t size);
  9. void my_free(char *file_name,unsigned int line_number, void *block);
  10.  
  11. /* Prototypes from SCREEN.C  */
  12.  
  13. void draw_boxes_and_titles(char *labels[],int row_count);
  14. void screenputc(int row,int col,char c);
  15. void screenputf(int row,int col,char *format,...);
  16. void screenputs(int row,int col,char *string);
  17. void screenclearline(int row);
  18. void initialize_screen(char *labels[],int widths[]);
  19. void setup_screen(char *labels[],int widths[],int rows);
  20. void restore_screen(void);
  21.  
  22. /* Prototypes from HEAP.C */
  23.  
  24. void screen_message(int immediate_return, int tag, char *format,...);
  25. void hide_screen(void);
  26. void my_free(char *file_name,unsigned int line_number, void *block);
  27. void *my_malloc(char *file_name,unsigned int line_number,size_t size);
  28. void initialize_tags(void);
  29. void display_tag_table(int last_tag);
  30. void add_tag_to_table(char far *pointer,char maverick,size_t size,char *file_name,unsigned int line_number);
  31. void delete_tag_from_table(int tag);
  32. void verify_heap(void);
  33. void heap_walk(void);
  34.