* alloc.c (check_depth): New variable.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 25 Dec 2004 10:13:57 +0000 (10:13 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 25 Dec 2004 10:13:57 +0000 (10:13 +0000)
commit857ae68b96103b3a8a7116f8d14a13d1623be4d5
tree8bb55aa3c45483166729f63f2780ca8734b49ee2
parent70d16390a08dc9d94c961eb380be8e1b5b496963
* alloc.c (check_depth): New variable.
(overrun_check_malloc, overrun_check_realloc): Only add
overhead and write check pattern if check_depth is 1 (to handle
recursive calls).  Increase/decrease check_depth in entry/exit.
(overrun_check_free): Only check for overhead if check_depth is 1.
Increase/decrease check_depth in entry/exit.
src/ChangeLog
src/alloc.c