1996-08-27 21:59:28 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* palloc.h--
|
1997-09-07 01:04:48 -04:00
|
|
|
* POSTGRES memory allocator definitions.
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
|
*
|
1997-09-07 22:41:22 -04:00
|
|
|
* $Id: palloc.h,v 1.5 1997/09/08 02:39:53 momjian Exp $
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
1997-09-07 01:04:48 -04:00
|
|
|
#ifndef PALLOC_H
|
1996-08-27 21:59:28 -04:00
|
|
|
#define PALLOC_H
|
|
|
|
|
|
1996-11-25 22:20:35 -05:00
|
|
|
#include <c.h>
|
|
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void *palloc(Size size);
|
|
|
|
|
extern void pfree(void *pointer);
|
|
|
|
|
extern void *repalloc(void *pointer, Size size);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
|
|
|
|
/* like strdup except uses palloc */
|
1997-09-07 22:41:22 -04:00
|
|
|
extern char *pstrdup(char *pointer);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1997-09-07 01:04:48 -04:00
|
|
|
#endif /* PALLOC_H */
|