|
Defines |
| #define | PARAMS(Args) () |
| #define | __attribute__(x) |
| #define | ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) |
| #define | XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items))) |
| #define | XCALLOC(Type, N_items) ((Type *) xcalloc (sizeof (Type), (N_items))) |
| #define | XREALLOC(Ptr, Type, N_items) ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_items))) |
| #define | NEW(Type, Var) Type *(Var) = XMALLOC (Type, 1) |
| #define | XFREE(Var) |
| #define | CCLONE(Src, Num) (memcpy (xmalloc (sizeof (*Src) * (Num)), (Src), sizeof (*Src) * (Num))) |
| #define | CLONE(Src) CCLONE (Src, 1) |
Functions |
| void xalloc_fail_func | PARAMS ((void)) |
| void *xmalloc | PARAMS ((size_t n)) |
| void *xcalloc | PARAMS ((size_t n, size_t s)) |
| void *xrealloc | PARAMS ((void *p, size_t n)) |
| char *xstrdup | PARAMS ((const char *str)) |
Variables |
| int | xalloc_exit_failure |
| char const | xalloc_msg_memory_exhausted [] |