]>
Commit | Line | Data |
---|---|---|
7117c2d2 JA |
1 | /* watch.h - definitions for tables for keeping track of allocated memory */ |
2 | ||
b80f6443 | 3 | /* Copyright (C) 2001-2003 Free Software Foundation, Inc. |
7117c2d2 JA |
4 | |
5 | This program is free software; you can redistribute it and/or modify | |
6 | it under the terms of the GNU General Public License as published by | |
7 | the Free Software Foundation; either version 2, or (at your option) | |
8 | any later version. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
16 | along with this program; if not, write to the Free Software | |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |
18 | ||
19 | #ifndef _MWATCH_H | |
20 | #define _MWATCH_H | |
21 | ||
22 | #include "imalloc.h" | |
23 | ||
24 | #ifdef MALLOC_WATCH | |
25 | ||
26 | /* `Events' for watchpoints */ | |
27 | ||
28 | #define W_ALLOC 0x01 | |
29 | #define W_FREE 0x02 | |
30 | #define W_REALLOC 0x04 | |
31 | #define W_RESIZED 0x08 | |
32 | ||
33 | extern int _malloc_nwatch; | |
34 | ||
35 | extern void _malloc_ckwatch __P((PTR_T, const char *, int, int, unsigned long)); | |
36 | ||
37 | #endif /* MALLOC_WATCH */ | |
38 | ||
39 | #endif /* _MWATCH_H */ |