~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to src/util/memdebug.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Gervai
  • Date: 2004-01-21 22:13:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040121221345-ju33hai1yhhqt6kn
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: memdebug.h,v 1.3 2003/05/08 23:03:08 zas Exp $ */
 
2
 
 
3
#ifndef EL__UTIL_MEMDEBUG_H
 
4
#define EL__UTIL_MEMDEBUG_H
 
5
 
 
6
#ifdef LEAK_DEBUG
 
7
 
 
8
/* TODO: Another file? */
 
9
 
 
10
extern long mem_amount;
 
11
 
 
12
void *debug_mem_alloc(unsigned char *, int, size_t);
 
13
void *debug_mem_calloc(unsigned char *, int, size_t, size_t);
 
14
void debug_mem_free(unsigned char *, int, void *);
 
15
void *debug_mem_realloc(unsigned char *, int, void *, size_t);
 
16
void set_mem_comment(void *, unsigned char *, int);
 
17
 
 
18
void check_memory_leaks(void);
 
19
 
 
20
#else
 
21
#define set_mem_comment(p, c, l)
 
22
#endif /* LEAK_DEBUG */
 
23
 
 
24
#endif