22#define MaxAllocSize ((Size) 0x3fffffff)
28#define MCXT_ALLOC_HUGE 0x01
30#define MCXT_ALLOC_NO_OOM 0x02
31#define MCXT_ALLOC_ZERO 0x04
41extern void *
pg_realloc(
void *ptr,
size_t size);
51#define pg_malloc_object(type) ((type *) pg_malloc(sizeof(type)))
52#define pg_malloc0_object(type) ((type *) pg_malloc0(sizeof(type)))
57#define pg_malloc_array(type, count) ((type *) pg_malloc(sizeof(type) * (count)))
58#define pg_malloc0_array(type, count) ((type *) pg_malloc0(sizeof(type) * (count)))
64#define pg_realloc_array(pointer, type, count) ((type *) pg_realloc(pointer, sizeof(type) * (count)))
67extern char *
pstrdup(
const char *in);
73extern void pfree(
void *pointer);
75#define palloc_object(type) ((type *) palloc(sizeof(type)))
76#define palloc0_object(type) ((type *) palloc0(sizeof(type)))
77#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
78#define palloc0_array(type, count) ((type *) palloc0(sizeof(type) * (count)))
79#define repalloc_array(pointer, type, count) ((type *) repalloc(pointer, sizeof(type) * (count)))
#define pg_attribute_printf(f, a)
char * pstrdup(const char *in)
char * psprintf(const char *fmt,...) pg_attribute_printf(1
void * repalloc(void *pointer, Size size)
void pfree(void *pointer)
void * palloc0(Size size)
void * pg_malloc(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)
void * pg_malloc0(size_t size)
char * pnstrdup(const char *in, Size size)
void * pg_realloc(void *ptr, size_t size)