1
0
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:
Bruce Momjian
1999-07-15 15:21:54 +00:00
parent 0df761420d
commit 4b2c2850bf
286 changed files with 421 additions and 737 deletions

View File

@@ -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) ? \