mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Cleanup of /include #include's, for 6.6 only.
This commit is contained in:
@ -6,15 +6,13 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: palloc.h,v 1.9 1999/05/25 16:14:56 momjian Exp $
|
||||
* $Id: palloc.h,v 1.10 1999/07/14 01:20:30 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef PALLOC_H
|
||||
#define PALLOC_H
|
||||
|
||||
#include "c.h"
|
||||
|
||||
#ifdef PALLOC_IS_MALLOC
|
||||
|
||||
#define palloc(s) malloc(s)
|
||||
@ -27,8 +25,6 @@
|
||||
* In the case we use memory contexts, use macro's for palloc() etc.
|
||||
* ----------
|
||||
*/
|
||||
#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)))
|
||||
|
Reference in New Issue
Block a user