Go to the source code of this file.
Defines |
| #define | BEGIN_C_DECLS |
| #define | END_C_DECLS |
| #define | STR(x) "x" |
| #define | CONC(x, y) xy |
| #define | EXIT_SUCCESS 0 |
| #define | EXIT_FAILURE 1 |
| #define | XCALLOC(type, num) ((type *) xcalloc ((num), sizeof(type))) |
| #define | XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) |
| #define | XREALLOC(type, p, num) ((type *) xrealloc ((p), (num) * sizeof(type))) |
| #define | XFREE(stale) |
| #define | pocc_debug(S) { fprintf (stderr, #S); fprintf (stderr, "\n"); } |
Functions |
| BEGIN_C_DECLS void * | xcalloc (size_t num, size_t size) |
| void * | xmalloc (size_t num) |
| void * | xrealloc (void *p, size_t num) |
| char * | xstrdup (const char *string) |
| char * | xstrerror (int errnum) |
Define Documentation
| #define XCALLOC |
( |
|
type, |
|
|
|
num | |
|
) |
| | ((type *) xcalloc ((num), sizeof(type))) |
| #define XMALLOC |
( |
|
type, |
|
|
|
num | |
|
) |
| | ((type *) xmalloc ((num) * sizeof(type))) |
| #define XREALLOC |
( |
|
type, |
|
|
|
p, |
|
|
|
num | |
|
) |
| | ((type *) xrealloc ((p), (num) * sizeof(type))) |
| #define pocc_debug |
( |
|
S |
) |
{ fprintf (stderr, #S); fprintf (stderr, "\n"); } |
Function Documentation
| BEGIN_C_DECLS void* xcalloc |
( |
size_t |
num, |
|
|
size_t |
size | |
|
) |
| | |
| void* xmalloc |
( |
size_t |
num |
) |
|
| void* xrealloc |
( |
void * |
p, |
|
|
size_t |
num | |
|
) |
| | |
| char* xstrdup |
( |
const char * |
string |
) |
|
| char* xstrerror |
( |
int |
errnum |
) |
|