mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Remove TRUE and FALSE
Code should be using true and false. Existing code can be changed to those in a backward compatible way. The definitions in the ecpg header files are left around to avoid upsetting those users unnecessarily. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
* ------- ------------------------------------------------
|
* ------- ------------------------------------------------
|
||||||
* 0) pg_config.h and standard system headers
|
* 0) pg_config.h and standard system headers
|
||||||
* 1) compiler characteristics
|
* 1) compiler characteristics
|
||||||
* 2) bool, true, false, TRUE, FALSE
|
* 2) bool, true, false
|
||||||
* 3) standard system types
|
* 3) standard system types
|
||||||
* 4) IsValid macros for system types
|
* 4) IsValid macros for system types
|
||||||
* 5) offsetof, lengthof, alignment
|
* 5) offsetof, lengthof, alignment
|
||||||
@ -257,7 +257,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
* Section 2: bool, true, false, TRUE, FALSE
|
* Section 2: bool, true, false
|
||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -285,14 +285,6 @@ typedef char bool;
|
|||||||
|
|
||||||
#endif /* not C++ */
|
#endif /* not C++ */
|
||||||
|
|
||||||
#ifndef TRUE
|
|
||||||
#define TRUE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FALSE
|
|
||||||
#define FALSE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
* Section 3: standard system types
|
* Section 3: standard system types
|
||||||
|
Reference in New Issue
Block a user