added alloction dump

shrunk some data structures
changed some ALLOCDEF's
changed setjmp to __setjmp
This commit is contained in:
eck
1990-01-10 17:33:35 +00:00
parent 776f85238f
commit 00876cd9df
34 changed files with 137 additions and 53 deletions

View File

@@ -3,6 +3,12 @@ s:^.*[ ]ALLOCDEF[ ].*"\(.*\)"[ ]*\([0-9][0-9]*\).*$:\
/* allocation definitions of struct \1 */\
extern char *st_alloc();\
extern struct \1 *h_\1;\
#ifdef DEBUG\
extern int cnt_\1;\
extern char *std_alloc();\
#define new_\1() ((struct \1 *) std_alloc((char **)\&h_\1, sizeof(struct \1), \2, \&cnt_\1))\
#else\
#define new_\1() ((struct \1 *) st_alloc((char **)\&h_\1, sizeof(struct \1), \2))\
#endif\
#define free_\1(p) st_free(p, \&h_\1, sizeof(struct \1))\
:'