Make input data and source file names const in memacpy and stracpy.
[elinks/elinks-j605.git] / src / util / memdebug.h
blobbcccd41a517b980a3c7418801b8f4f145a2b6a44
1 #ifndef EL__UTIL_MEMDEBUG_H
2 #define EL__UTIL_MEMDEBUG_H
4 #ifdef DEBUG_MEMLEAK
6 /* TODO: Another file? */
8 struct mem_stats {
9 long true_amount;
10 long amount;
13 extern struct mem_stats mem_stats;
15 void *debug_mem_alloc(const unsigned char *, int, size_t);
16 void *debug_mem_calloc(const unsigned char *, int, size_t, size_t);
17 void debug_mem_free(const unsigned char *, int, void *);
18 void *debug_mem_realloc(const unsigned char *, int, void *, size_t);
19 void set_mem_comment(void *, const unsigned char *, int);
21 void check_memory_leaks(void);
23 #else
24 #define set_mem_comment(p, c, l)
25 #endif /* DEBUG_MEMLEAK */
27 #endif