Macros | Typedefs
memory.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <time.h>

Go to the source code of this file.

Macros

#define XFREE_CLEAR(ptr)
 

Typedefs

typedef void *(* MemMalloc) (size_t)
 malloc() function signature More...
 
typedef void(* MemFree) (void *)
 free() function signature More...
 
typedef void *(* MemCalloc) (size_t, size_t)
 calloc() function signature More...
 
typedef void *(* MemRealloc) (void *, size_t)
 realloc() function signature More...
 

Macro Definition Documentation

#define XFREE_CLEAR (   ptr)
Value:
do { \
/* Take the address to avoid double evaluation. #1375 */ \
void **ptr_ = (void **)&(ptr); \
xfree(*ptr_); \
/* coverity[dead-store] */ \
*ptr_ = NULL; \
(void)(*ptr_); \
} while (0)
xfree(tofree)
return NULL
Definition: eval.c:23842

Typedef Documentation

typedef void*(* MemCalloc) (size_t, size_t)

calloc() function signature

typedef void(* MemFree) (void *)

free() function signature

typedef void*(* MemMalloc) (size_t)

malloc() function signature

typedef void*(* MemRealloc) (void *, size_t)

realloc() function signature