mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +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:
@@ -187,9 +187,9 @@ pg_isblank(const char c)
|
||||
* set *err_msg to a string describing the error. Currently the only
|
||||
* possible error is token too long for buf.
|
||||
*
|
||||
* If successful: store null-terminated token at *buf and return TRUE.
|
||||
* If no more tokens on line: set *buf = '\0' and return FALSE.
|
||||
* If error: fill buf with truncated or misformatted token and return FALSE.
|
||||
* If successful: store null-terminated token at *buf and return true.
|
||||
* If no more tokens on line: set *buf = '\0' and return false.
|
||||
* If error: fill buf with truncated or misformatted token and return false.
|
||||
*/
|
||||
static bool
|
||||
next_token(char **lineptr, char *buf, int bufsz,
|
||||
|
||||
@@ -914,7 +914,7 @@ RemoveSocketFiles(void)
|
||||
/* --------------------------------
|
||||
* socket_set_nonblocking - set socket blocking/non-blocking
|
||||
*
|
||||
* Sets the socket non-blocking if nonblocking is TRUE, or sets it
|
||||
* Sets the socket non-blocking if nonblocking is true, or sets it
|
||||
* blocking otherwise.
|
||||
* --------------------------------
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user