summaryrefslogtreecommitdiff
path: root/src/include/utils/palloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/palloc.h')
-rw-r--r--src/include/utils/palloc.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/include/utils/palloc.h b/src/include/utils/palloc.h
index 84074553c9..04db0f3cfb 100644
--- a/src/include/utils/palloc.h
+++ b/src/include/utils/palloc.h
@@ -17,23 +17,23 @@
#ifdef PALLOC_IS_MALLOC
-# define palloc(s) malloc(s)
-# define pfree(p) free(p)
-# define repalloc(p,s) realloc((p),(s))
+#define palloc(s) malloc(s)
+#define pfree(p) free(p)
+#define repalloc(p,s) realloc((p),(s))
-#else /* ! PALLOC_IS_MALLOC */
+#else /* ! PALLOC_IS_MALLOC */
/* ----------
* In the case we use memory contexts, use macro's for palloc() etc.
* ----------
*/
-# include "utils/mcxt.h"
+#include "utils/mcxt.h"
-# define palloc(s) ((void *)MemoryContextAlloc(CurrentMemoryContext,(Size)(s)))
-# define pfree(p) MemoryContextFree(CurrentMemoryContext,(Pointer)(p))
-# define repalloc(p,s) ((void *)MemoryContextRealloc(CurrentMemoryContext,(Pointer)(p),(Size)(s)))
+#define palloc(s) ((void *)MemoryContextAlloc(CurrentMemoryContext,(Size)(s)))
+#define pfree(p) MemoryContextFree(CurrentMemoryContext,(Pointer)(p))
+#define repalloc(p,s) ((void *)MemoryContextRealloc(CurrentMemoryContext,(Pointer)(p),(Size)(s)))
-#endif /* PALLOC_IS_MALLOC */
+#endif /* PALLOC_IS_MALLOC */
/* like strdup except uses palloc */
extern char *pstrdup(char *pointer);