Go to the source code of this file.
◆ xfree
#define xfree |
( |
| a | ) |
free(a) |
◆ xcalloc()
Definition at line 18 of file xalloc.h.
18 {
19 void *a = calloc(n, sz);
21}
static void * xcheck(void *a)
◆ xcheck()
static void * xcheck |
( |
void * | a | ) |
|
|
static |
Definition at line 4 of file xalloc.h.
4 {
5 if (a) return a;
8}
#define gw_err(...)
similar to fprintf(stderr, fmt, ...)
#define THREAD_RETURN(arg)
◆ xmalloc()
Definition at line 13 of file xalloc.h.
13 {
14 void *a = malloc(sz);
16}
◆ xrealloc()
static ANEW void * xrealloc |
( |
void * | p, |
|
|
const m_uint | sz ) |
|
inlinestatic |
Definition at line 23 of file xalloc.h.
23 {
24 void *a = realloc(p, sz);
26}