| 26 |
|
#define _I_MEMORY_H |
| 27 |
|
|
| 28 |
|
#include "ircd_defs.h" |
| 29 |
– |
#include "config.h" |
| 29 |
|
|
| 30 |
|
extern void outofmemory(void); |
| 31 |
|
|
| 32 |
|
extern void *MyMalloc(size_t); |
| 33 |
|
extern void *MyRealloc(void *, size_t); |
| 34 |
|
extern void MyFree(void *); |
| 35 |
< |
extern void _DupString(char **, const char *); |
| 36 |
< |
|
| 38 |
< |
#define DupString(x,y) _DupString(&x, y) |
| 39 |
< |
|
| 40 |
< |
#ifndef NDEBUG |
| 41 |
< |
extern void mem_frob(void *, int); |
| 42 |
< |
#else |
| 43 |
< |
#define mem_frob(x, y) |
| 44 |
< |
#endif |
| 35 |
> |
extern void *xstrdup(const char *); |
| 36 |
> |
extern void *xstrndup(const char *, size_t); |
| 37 |
|
#endif /* _I_MEMORY_H */ |