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) x/**/y |
#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 | FM_STATUS_ERROR 1 |
#define | FM_STATUS_OK 0 |
#define | FM_SIZE_BUF 5000 |
#define | Z_STRING_MODIFIER "%ld" |
Typedefs | |
typedef long int | z_type_t |
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 BEGIN_C_DECLS |
#define END_C_DECLS |
#define STR | ( | x | ) | "x" |
#define CONC | ( | x, | |||
y | ) | x/**/y |
#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 | ) |
Value:
do { \ if (stale) { free (stale); stale = 0; } \ } while (0)
#define FM_STATUS_ERROR 1 |
#define FM_STATUS_OK 0 |
#define FM_SIZE_BUF 5000 |
#define Z_STRING_MODIFIER "%ld" |
typedef long int z_type_t |
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 | ) |