mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-01 08:47:24 -04:00
acf2ec806b
A left over from the CVS Id removal. Also, for a few files, normalize the order in which things are declared in headers.
28 lines
586 B
C
28 lines
586 B
C
#ifndef EL__UTIL_MEMDEBUG_H
|
|
#define EL__UTIL_MEMDEBUG_H
|
|
|
|
#ifdef DEBUG_MEMLEAK
|
|
|
|
/* TODO: Another file? */
|
|
|
|
struct mem_stats {
|
|
long true_amount;
|
|
long amount;
|
|
};
|
|
|
|
extern struct mem_stats mem_stats;
|
|
|
|
void *debug_mem_alloc(unsigned char *, int, size_t);
|
|
void *debug_mem_calloc(unsigned char *, int, size_t, size_t);
|
|
void debug_mem_free(unsigned char *, int, void *);
|
|
void *debug_mem_realloc(unsigned char *, int, void *, size_t);
|
|
void set_mem_comment(void *, unsigned char *, int);
|
|
|
|
void check_memory_leaks(void);
|
|
|
|
#else
|
|
#define set_mem_comment(p, c, l)
|
|
#endif /* DEBUG_MEMLEAK */
|
|
|
|
#endif
|