Skip to content

Commit 6337865

Browse files
committed
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>
1 parent 4e5fe9a commit 6337865

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/include/c.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* ------- ------------------------------------------------
2828
* 0) pg_config.h and standard system headers
2929
* 1) compiler characteristics
30-
* 2) bool, true, false, TRUE, FALSE
30+
* 2) bool, true, false
3131
* 3) standard system types
3232
* 4) IsValid macros for system types
3333
* 5) offsetof, lengthof, alignment
@@ -257,7 +257,7 @@
257257

258258

259259
/* ----------------------------------------------------------------
260-
* Section 2: bool, true, false, TRUE, FALSE
260+
* Section 2: bool, true, false
261261
* ----------------------------------------------------------------
262262
*/
263263

@@ -285,14 +285,6 @@ typedef char bool;
285285

286286
#endif /* not C++ */
287287

288-
#ifndef TRUE
289-
#define TRUE 1
290-
#endif
291-
292-
#ifndef FALSE
293-
#define FALSE 0
294-
#endif
295-
296288

297289
/* ----------------------------------------------------------------
298290
* Section 3: standard system types

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy