~ubuntu-branches/ubuntu/oneiric/bogofilter/oneiric

« back to all changes in this revision

Viewing changes to src/memdebug.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2004-06-27 09:22:31 UTC
  • Revision ID: james.westby@ubuntu.com-20040627092231-u26smic0nhp7rl4z
Tags: upstream-0.92.0
ImportĀ upstreamĀ versionĀ 0.92.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: memdebug.h,v 1.3 2004/01/01 18:19:01 relson Exp $ */
 
2
 
 
3
/*
 
4
* NAME:
 
5
*    memdebug.h -- header file for memdebug.c
 
6
*
 
7
*/
 
8
 
 
9
#ifndef MEMDEBUG_H
 
10
#define MEMDEBUG_H
 
11
 
 
12
#undef  MEMDISPLAY
 
13
#define MEMDISPLAY      memdisplay(__FILE__, __LINE__)
 
14
 
 
15
extern int memtrace;
 
16
 
 
17
void *md_calloc(size_t nmemb, size_t size);
 
18
void *md_malloc(size_t size);
 
19
void *md_realloc(void *ptr, size_t size);
 
20
void  md_free(void *ptr);
 
21
void  memdisplay(const char *file, int lineno);
 
22
 
 
23
enum { M_MALLOC = 1, 
 
24
       M_FREE = 2 
 
25
};
 
26
 
 
27
#define bf_malloc  md_malloc
 
28
#define bf_calloc  md_calloc
 
29
#define bf_realloc md_realloc
 
30
#define bf_free    md_free
 
31
 
 
32
#endif  /* MEMDEBUG_H */