mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Massive commit to run PGINDENT on all *.c and *.h files.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* itemptr.c--
|
||||
* POSTGRES disk item pointer code.
|
||||
* POSTGRES disk item pointer code.
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/page/itemptr.c,v 1.2 1996/11/03 05:07:46 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/page/itemptr.c,v 1.3 1997/09/07 04:49:07 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -20,21 +20,20 @@
|
||||
|
||||
/*
|
||||
* ItemPointerEquals --
|
||||
* Returns true if both item pointers point to the same item,
|
||||
* otherwise returns false.
|
||||
* Returns true if both item pointers point to the same item,
|
||||
* otherwise returns false.
|
||||
*
|
||||
* Note:
|
||||
* Assumes that the disk item pointers are not NULL.
|
||||
* Assumes that the disk item pointers are not NULL.
|
||||
*/
|
||||
bool
|
||||
ItemPointerEquals(ItemPointer pointer1, ItemPointer pointer2)
|
||||
{
|
||||
if (ItemPointerGetBlockNumber(pointer1) ==
|
||||
ItemPointerGetBlockNumber(pointer2) &&
|
||||
ItemPointerGetOffsetNumber(pointer1) ==
|
||||
ItemPointerGetOffsetNumber(pointer2))
|
||||
return(true);
|
||||
else
|
||||
return(false);
|
||||
if (ItemPointerGetBlockNumber(pointer1) ==
|
||||
ItemPointerGetBlockNumber(pointer2) &&
|
||||
ItemPointerGetOffsetNumber(pointer1) ==
|
||||
ItemPointerGetOffsetNumber(pointer2))
|
||||
return (true);
|
||||
else
|
||||
return (false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user