mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
Change TRUE/FALSE to true/false
The lower case spellings are C and C++ standard and are used in most parts of the PostgreSQL sources. The upper case spellings are only used in some files/modules. So standardize on the standard spellings. The APIs for ICU, Perl, and Windows define their own TRUE and FALSE, so those are left as is when using those APIs. In code comments, we use the lower-case spelling for the C concepts and keep the upper-case spelling for the SQL concepts. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -257,7 +257,7 @@ ShmemAllocUnlocked(Size size)
|
||||
/*
|
||||
* ShmemAddrIsValid -- test if an address refers to shared memory
|
||||
*
|
||||
* Returns TRUE if the pointer points within the shared memory segment.
|
||||
* Returns true if the pointer points within the shared memory segment.
|
||||
*/
|
||||
bool
|
||||
ShmemAddrIsValid(const void *addr)
|
||||
@@ -361,7 +361,7 @@ ShmemInitHash(const char *name, /* table string name for shmem index */
|
||||
* for it. If it exists already, a pointer to the existing
|
||||
* structure is returned.
|
||||
*
|
||||
* Returns: pointer to the object. *foundPtr is set TRUE if the object was
|
||||
* Returns: pointer to the object. *foundPtr is set true if the object was
|
||||
* already in the shmem index (hence, already initialized).
|
||||
*
|
||||
* Note: before Postgres 9.0, this function returned NULL for some failure
|
||||
@@ -388,7 +388,7 @@ ShmemInitStruct(const char *name, Size size, bool *foundPtr)
|
||||
/* Must be initializing a (non-standalone) backend */
|
||||
Assert(shmemseghdr->index != NULL);
|
||||
structPtr = shmemseghdr->index;
|
||||
*foundPtr = TRUE;
|
||||
*foundPtr = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -403,7 +403,7 @@ ShmemInitStruct(const char *name, Size size, bool *foundPtr)
|
||||
Assert(shmemseghdr->index == NULL);
|
||||
structPtr = ShmemAlloc(size);
|
||||
shmemseghdr->index = structPtr;
|
||||
*foundPtr = FALSE;
|
||||
*foundPtr = false;
|
||||
}
|
||||
LWLockRelease(ShmemIndexLock);
|
||||
return structPtr;
|
||||
|
Reference in New Issue
Block a user