#include "alloc.h"
#include <stdlib.h>
#include "../error/error.h"
Defines | |
#define | NPS_MALLOC(x) malloc(x) |
#define | NPS_REALLOC(x, y) realloc((x),(y)) |
#define | NPS_FREE(x) free(x) |
#define | NPS_CALLOC(p, s) calloc((p),(s)) |
Functions | |
NPS_ALLOC_LKG void * | nps_malloc (size_t size) |
NPS_ALLOC_LKG void * | nps_calloc (size_t nmemb, size_t size) |
NPS_ALLOC_LKG void | nps_free (void *ptr) |
NPS_ALLOC_LKG void * | nps_realloc (void *ptr, size_t size) |
Variables | |
nps_domain_t | NPS_ALLOC = {"Memory Allocation"} |
nps_errorType_t | NPS_ALLOC_OutOfMemory = {"Out of memory"} |
#define NPS_CALLOC | ( | p, | |||
s | ) | calloc((p),(s)) |
#define NPS_FREE | ( | x | ) | free(x) |
#define NPS_MALLOC | ( | x | ) | malloc(x) |
#define NPS_REALLOC | ( | x, | |||
y | ) | realloc((x),(y)) |
NPS_ALLOC_LKG void* nps_calloc | ( | size_t | nmemb, | |
size_t | size | |||
) |
NPS_ALLOC_LKG void nps_free | ( | void * | ptr | ) |
NPS_ALLOC_LKG void* nps_malloc | ( | size_t | size | ) |
NPS_ALLOC_LKG void* nps_realloc | ( | void * | ptr, | |
size_t | size | |||
) |
nps_domain_t NPS_ALLOC = {"Memory Allocation"} |
nps_errorType_t NPS_ALLOC_OutOfMemory = {"Out of memory"} |