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

Commitba26f5c

Browse files
committed
Remove our own definition of NULL
Surely everyone has that by now.Reviewed-by: Michael Paquier <michael.paquier@gmail.com>Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
1 parent5a739e7 commitba26f5c

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)hacks to cope with non-ANSI C compilers
30-
*2)bool, true, false, TRUE, FALSE, NULL
30+
*2)bool, true, false, TRUE, FALSE
3131
*3)standard system types
3232
*4)IsValid macros for system types
3333
*5)offsetof, lengthof, endof, alignment
@@ -184,7 +184,7 @@
184184
#endif
185185

186186
/* ----------------------------------------------------------------
187-
*Section 2:bool, true, false, TRUE, FALSE, NULL
187+
*Section 2:bool, true, false, TRUE, FALSE
188188
* ----------------------------------------------------------------
189189
*/
190190

@@ -221,14 +221,6 @@ typedef bool *BoolPtr;
221221
#defineFALSE0
222222
#endif
223223

224-
/*
225-
* NULL
226-
*Null pointer.
227-
*/
228-
#ifndefNULL
229-
#defineNULL((void *) 0)
230-
#endif
231-
232224

233225
/* ----------------------------------------------------------------
234226
*Section 3:standard system types

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp