home *** CD-ROM | disk | FTP | other *** search
- /*********************************HEAP.H*****************************************/
-
- #define malloc(size) my_malloc(__FILE__,__LINE__,(size))
- #define calloc(nitems,size) my_calloc(__FILE__,__LINE__,(nitems),(size))
- #define free(block) my_free(__FILE__,__LINE__,(block))
-
- void *my_malloc(char *file_name,unsigned int line_number,size_t size);
- void *my_calloc(char *file_name,unsigned int line_number,size_t nitems,size_t size);
- void my_free(char *file_name,unsigned int line_number, void *block);
-
- /* Prototypes from SCREEN.C */
-
- void draw_boxes_and_titles(char *labels[],int row_count);
- void screenputc(int row,int col,char c);
- void screenputf(int row,int col,char *format,...);
- void screenputs(int row,int col,char *string);
- void screenclearline(int row);
- void initialize_screen(char *labels[],int widths[]);
- void setup_screen(char *labels[],int widths[],int rows);
- void restore_screen(void);
-
- /* Prototypes from HEAP.C */
-
- void screen_message(int immediate_return, int tag, char *format,...);
- void hide_screen(void);
- void my_free(char *file_name,unsigned int line_number, void *block);
- void *my_malloc(char *file_name,unsigned int line_number,size_t size);
- void initialize_tags(void);
- void display_tag_table(int last_tag);
- void add_tag_to_table(char far *pointer,char maverick,size_t size,char *file_name,unsigned int line_number);
- void delete_tag_from_table(int tag);
- void verify_heap(void);
- void heap_walk(void);
-