Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6337865

Browse files
committed
Remove TRUE and FALSE
Code should be using true and false. Existing code can be changed tothose in a backward compatible way.The definitions in the ecpg header files are left around to avoidupsetting those users unnecessarily.Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parent4e5fe9a commit6337865

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-
#ifndefTRUE
289-
#defineTRUE1
290-
#endif
291-
292-
#ifndefFALSE
293-
#defineFALSE0
294-
#endif
295-
296288

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp