summaryrefslogtreecommitdiff
path: root/src/include/utils/palloc.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-28 01:59:28 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-28 01:59:28 +0000
commit105409746499657acdffc109db9d343b464bda1f (patch)
treead73a9b45b4500ddedb5b7d18edcf90ec7cb35c5 /src/include/utils/palloc.h
parentca405ae4bf50a0074cf6e7ffb4873d5c9a861403 (diff)
downloadpostgresql-105409746499657acdffc109db9d343b464bda1f.tar.gz
More cleanups of the include files
- centralizing to simplify the -I's required to compile
Diffstat (limited to 'src/include/utils/palloc.h')
-rw-r--r--src/include/utils/palloc.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/utils/palloc.h b/src/include/utils/palloc.h
new file mode 100644
index 0000000000..d3953e941a
--- /dev/null
+++ b/src/include/utils/palloc.h
@@ -0,0 +1,26 @@
+/*-------------------------------------------------------------------------
+ *
+ * palloc.h--
+ * POSTGRES memory allocator definitions.
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * $Id: palloc.h,v 1.1 1996/08/28 01:59:16 scrappy 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 */
+