16 #define MCXT_ALLOC_HUGE 0x01
18 #define MCXT_ALLOC_NO_OOM 0x02
19 #define MCXT_ALLOC_ZERO 0x04
29 extern void *
pg_realloc(
void *ptr,
size_t size);
39 #define pg_malloc_object(type) ((type *) pg_malloc(sizeof(type)))
40 #define pg_malloc0_object(type) ((type *) pg_malloc0(sizeof(type)))
45 #define pg_malloc_array(type, count) ((type *) pg_malloc(sizeof(type) * (count)))
46 #define pg_malloc0_array(type, count) ((type *) pg_malloc0(sizeof(type) * (count)))
52 #define pg_realloc_array(pointer, type, count) ((type *) pg_realloc(pointer, sizeof(type) * (count)))
55 extern char *
pstrdup(
const char *in);
61 extern void pfree(
void *pointer);
63 #define palloc_object(type) ((type *) palloc(sizeof(type)))
64 #define palloc0_object(type) ((type *) palloc0(sizeof(type)))
65 #define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
66 #define palloc0_array(type, count) ((type *) palloc0(sizeof(type) * (count)))
67 #define repalloc_array(pointer, type, count) ((type *) repalloc(pointer, sizeof(type) * (count)))
#define pg_attribute_printf(f, a)
void * pg_realloc(void *ptr, size_t size)
char * pstrdup(const char *in)
void pfree(void *pointer)
void * palloc0(Size size)
void * repalloc(void *pointer, Size size)
void * pg_malloc0(size_t size)
void * palloc_extended(Size size, int flags)
void * pg_malloc_extended(size_t size, int flags)
char size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args) pg_attribute_printf(3
char * pg_strdup(const char *in)
char * psprintf(const char *fmt,...) pg_attribute_printf(1
char * pnstrdup(const char *in, Size size)
void * pg_malloc(size_t size)
static void const char * fmt