mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42: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:
@@ -1166,7 +1166,7 @@ tuplesort_end(Tuplesortstate *state)
|
||||
/*
|
||||
* Grow the memtuples[] array, if possible within our memory constraint. We
|
||||
* must not exceed INT_MAX tuples in memory or the caller-provided memory
|
||||
* limit. Return TRUE if we were able to enlarge the array, FALSE if not.
|
||||
* limit. Return true if we were able to enlarge the array, false if not.
|
||||
*
|
||||
* Normally, at each increment we double the size of the array. When doing
|
||||
* that would exceed a limit, we attempt one last, smaller increase (and then
|
||||
@@ -1733,7 +1733,7 @@ tuplesort_performsort(Tuplesortstate *state)
|
||||
|
||||
/*
|
||||
* Internal routine to fetch the next tuple in either forward or back
|
||||
* direction into *stup. Returns FALSE if no more tuples.
|
||||
* direction into *stup. Returns false if no more tuples.
|
||||
* Returned tuple belongs to tuplesort memory context, and must not be freed
|
||||
* by caller. Note that fetched tuple is stored in memory that may be
|
||||
* recycled by any future fetch.
|
||||
@@ -1975,10 +1975,10 @@ tuplesort_gettuple_common(Tuplesortstate *state, bool forward,
|
||||
|
||||
/*
|
||||
* Fetch the next tuple in either forward or back direction.
|
||||
* If successful, put tuple in slot and return TRUE; else, clear the slot
|
||||
* and return FALSE.
|
||||
* If successful, put tuple in slot and return true; else, clear the slot
|
||||
* and return false.
|
||||
*
|
||||
* Caller may optionally be passed back abbreviated value (on TRUE return
|
||||
* Caller may optionally be passed back abbreviated value (on true return
|
||||
* value) when abbreviation was used, which can be used to cheaply avoid
|
||||
* equality checks that might otherwise be required. Caller can safely make a
|
||||
* determination of "non-equal tuple" based on simple binary inequality. A
|
||||
@@ -2065,13 +2065,13 @@ tuplesort_getindextuple(Tuplesortstate *state, bool forward)
|
||||
|
||||
/*
|
||||
* Fetch the next Datum in either forward or back direction.
|
||||
* Returns FALSE if no more datums.
|
||||
* Returns false if no more datums.
|
||||
*
|
||||
* If the Datum is pass-by-ref type, the returned value is freshly palloc'd
|
||||
* and is now owned by the caller (this differs from similar routines for
|
||||
* other types of tuplesorts).
|
||||
*
|
||||
* Caller may optionally be passed back abbreviated value (on TRUE return
|
||||
* Caller may optionally be passed back abbreviated value (on true return
|
||||
* value) when abbreviation was used, which can be used to cheaply avoid
|
||||
* equality checks that might otherwise be required. Caller can safely make a
|
||||
* determination of "non-equal tuple" based on simple binary inequality. A
|
||||
@@ -2115,7 +2115,7 @@ tuplesort_getdatum(Tuplesortstate *state, bool forward,
|
||||
/*
|
||||
* Advance over N tuples in either forward or back direction,
|
||||
* without returning any data. N==0 is a no-op.
|
||||
* Returns TRUE if successful, FALSE if ran out of tuples.
|
||||
* Returns true if successful, false if ran out of tuples.
|
||||
*/
|
||||
bool
|
||||
tuplesort_skiptuples(Tuplesortstate *state, int64 ntuples, bool forward)
|
||||
|
||||
@@ -562,7 +562,7 @@ tuplestore_ateof(Tuplestorestate *state)
|
||||
/*
|
||||
* Grow the memtuples[] array, if possible within our memory constraint. We
|
||||
* must not exceed INT_MAX tuples in memory or the caller-provided memory
|
||||
* limit. Return TRUE if we were able to enlarge the array, FALSE if not.
|
||||
* limit. Return true if we were able to enlarge the array, false if not.
|
||||
*
|
||||
* Normally, at each increment we double the size of the array. When doing
|
||||
* that would exceed a limit, we attempt one last, smaller increase (and then
|
||||
@@ -1064,12 +1064,12 @@ tuplestore_gettuple(Tuplestorestate *state, bool forward,
|
||||
/*
|
||||
* tuplestore_gettupleslot - exported function to fetch a MinimalTuple
|
||||
*
|
||||
* If successful, put tuple in slot and return TRUE; else, clear the slot
|
||||
* and return FALSE.
|
||||
* If successful, put tuple in slot and return true; else, clear the slot
|
||||
* and return false.
|
||||
*
|
||||
* If copy is TRUE, the slot receives a copied tuple (allocated in current
|
||||
* If copy is true, the slot receives a copied tuple (allocated in current
|
||||
* memory context) that will stay valid regardless of future manipulations of
|
||||
* the tuplestore's state. If copy is FALSE, the slot may just receive a
|
||||
* the tuplestore's state. If copy is false, the slot may just receive a
|
||||
* pointer to a tuple held within the tuplestore. The latter is more
|
||||
* efficient but the slot contents may be corrupted if additional writes to
|
||||
* the tuplestore occur. (If using tuplestore_trim, see comments therein.)
|
||||
@@ -1129,7 +1129,7 @@ tuplestore_advance(Tuplestorestate *state, bool forward)
|
||||
/*
|
||||
* Advance over N tuples in either forward or back direction,
|
||||
* without returning any data. N<=0 is a no-op.
|
||||
* Returns TRUE if successful, FALSE if ran out of tuples.
|
||||
* Returns true if successful, false if ran out of tuples.
|
||||
*/
|
||||
bool
|
||||
tuplestore_skiptuples(Tuplestorestate *state, int64 ntuples, bool forward)
|
||||
|
||||
Reference in New Issue
Block a user