aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/palloc.h
blob: 02c7b9ab25721035ed54e543375cd6675ad82454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*-------------------------------------------------------------------------
 *
 * palloc.h--
 *    POSTGRES memory allocator definitions.
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: palloc.h,v 1.3 1996/11/26 03:20:23 bryanh Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef	PALLOC_H
#define PALLOC_H

#include <c.h>

extern void*   palloc(Size size);
extern void    pfree(void *pointer); 
extern void *repalloc(void *pointer, Size size);

/* like strdup except uses palloc */
extern char* pstrdup(char* pointer);

#endif	/* PALLOC_H */