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);
61#define pg_malloc_object(type) ((type *) pg_malloc(sizeof(type)))
62#define pg_malloc0_object(type) ((type *) pg_malloc0(sizeof(type)))
67#define pg_malloc_array(type, count) ((type *) pg_malloc_mul(sizeof(type), count))
68#define pg_malloc0_array(type, count) ((type *) pg_malloc0_mul(sizeof(type), count))
69#define pg_malloc_array_extended(type, count, flags) ((type *) pg_malloc_mul_extended(sizeof(type), count, flags))
75#define pg_realloc_array(pointer, type, count) ((type *) pg_realloc_mul(pointer, sizeof(type), count))
78extern char *
pstrdup(
const char *in);
84extern void pfree(
void *pointer);
90#define palloc_object(type) ((type *) palloc(sizeof(type)))
91#define palloc0_object(type) ((type *) palloc0(sizeof(type)))
92#define palloc_array(type, count) ((type *) palloc_mul(sizeof(type), count))
93#define palloc0_array(type, count) ((type *) palloc0_mul(sizeof(type), count))
94#define palloc_array_extended(type, count, flags) ((type *) palloc_mul_extended(sizeof(type), count, flags))
95#define repalloc_array(pointer, type, count) ((type *) repalloc_mul(pointer, sizeof(type), count))
#define pg_attribute_printf(f, a)
void * pg_malloc_mul_extended(Size s1, Size s2, int flags)
void * palloc_mul_extended(Size s1, Size s2, int flags)
Size add_size(Size s1, Size s2)
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)
Size mul_size(Size s1, Size s2)
void * palloc0_mul(Size s1, Size s2)
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
void * palloc_mul(Size s1, Size s2)
char * pg_strdup(const char *in)
void * pg_malloc0_mul(Size s1, Size s2)
void * repalloc_mul(void *p, Size s1, Size s2)
void * pg_realloc_mul(void *p, Size s1, Size s2)
void * pg_malloc0(size_t size)
void * pg_malloc_mul(Size s1, Size s2)
char * pnstrdup(const char *in, Size size)
void * pg_realloc(void *ptr, size_t size)
static char buf[DEFAULT_XLOG_SEG_SIZE]