mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Clean up #include in /include directory. Add scripts for checking includes.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: bufmgr.h,v 1.26 1999/05/25 16:14:39 momjian Exp $
|
||||
* $Id: bufmgr.h,v 1.27 1999/07/15 15:21:31 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -54,17 +54,6 @@ typedef bits16 BufferLock;
|
||||
*/
|
||||
#define BufferDescriptorGetBuffer(bdesc) ((bdesc)->buf_id + 1)
|
||||
|
||||
/*
|
||||
* BufferIsPinned
|
||||
* True iff the buffer is pinned (and therefore valid)
|
||||
*
|
||||
* Note:
|
||||
* Smenatics are identical to BufferIsValid
|
||||
* XXX - need to remove either one eventually.
|
||||
*/
|
||||
#define BufferIsPinned BufferIsValid
|
||||
|
||||
|
||||
extern int ShowPinTrace;
|
||||
|
||||
/*
|
||||
@@ -101,6 +90,17 @@ extern int ShowPinTrace;
|
||||
) \
|
||||
)
|
||||
|
||||
/*
|
||||
* BufferIsPinned
|
||||
* True iff the buffer is pinned (and therefore valid)
|
||||
*
|
||||
* Note:
|
||||
* Smenatics are identical to BufferIsValid
|
||||
* XXX - need to remove either one eventually.
|
||||
*/
|
||||
#define BufferIsPinned BufferIsValid
|
||||
|
||||
|
||||
#define IncrBufferRefCount(buffer) \
|
||||
( \
|
||||
BufferIsLocal(buffer) ? \
|
||||
|
Reference in New Issue
Block a user