]> granicus.if.org Git - postgresql/commitdiff
Remove TRUE and FALSE
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Aug 2017 04:22:32 +0000 (00:22 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 15 Nov 2017 16:33:41 +0000 (11:33 -0500)
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>
src/include/c.h

index 18809c937208000f693162012754d1b7c0c30f72..c8c7be1d2168186579fc95467928becb8a6fe87c 100644 (file)
@@ -27,7 +27,7 @@
  *       -------       ------------------------------------------------
  *             0)              pg_config.h and standard system headers
  *             1)              compiler characteristics
- *             2)              bool, true, false, TRUE, FALSE
+ *             2)              bool, true, false
  *             3)              standard system types
  *             4)              IsValid macros for system types
  *             5)              offsetof, lengthof, alignment
 
 
 /* ----------------------------------------------------------------
- *                             Section 2:      bool, true, false, TRUE, FALSE
+ *                             Section 2:      bool, true, false
  * ----------------------------------------------------------------
  */
 
@@ -285,14 +285,6 @@ typedef char bool;
 
 #endif                                                 /* not C++ */
 
-#ifndef TRUE
-#define TRUE   1
-#endif
-
-#ifndef FALSE
-#define FALSE  0
-#endif
-
 
 /* ----------------------------------------------------------------
  *                             Section 3:      standard system types