aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-16 00:22:32 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-11-15 11:33:41 -0500
commit6337865f36da34e9c89aaa292f976bde6df0b065 (patch)
tree8352a133b07df5a3e7e00c9fde854c7e669c4d67
parent4e5fe9ad19e14af360de7970caa8b150436c9dec (diff)
downloadpostgresql-6337865f36da34e9c89aaa292f976bde6df0b065.tar.gz
postgresql-6337865f36da34e9c89aaa292f976bde6df0b065.zip
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>
-rw-r--r--src/include/c.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 18809c93720..c8c7be1d216 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -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
@@ -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++ */
-#ifndef TRUE
-#define TRUE 1
-#endif
-
-#ifndef FALSE
-#define FALSE 0
-#endif
-
/* ----------------------------------------------------------------
* Section 3: standard system types