1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00
cc65/include
Alejandro Colomar f14e793197 Make NULL conform to POSIX
POSIX.1-2008 tightened the definition of NULL to be 0 cast to the
type 'void *'.

Defining NULL as 0 is problematic, because it requires users to
cast NULL to a pointer type before passing it to variadic
functions.  Using POSIX's definition is safer, because NULL can be
used in all contexts without a cast, due to the alignment of
'void *' and 'char *' being the same.  It also helps the compiler
be able to detect when NULL is being used in an integer context.

Link: <http://ewontfix.com/11/>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2022-08-10 12:56:23 +02:00
..
2022-04-17 16:05:19 +02:00
2021-04-19 15:50:52 +02:00
2022-04-17 16:05:19 +02:00
2022-04-17 16:05:19 +02:00
2022-04-17 16:05:19 +02:00
2022-04-17 16:05:19 +02:00
2020-04-16 17:06:18 +02:00
2022-03-01 06:44:26 +02:00
2022-04-17 16:05:19 +02:00
2021-04-19 16:06:10 +02:00
2019-02-05 23:27:52 +01:00
2018-12-30 03:49:26 -05:00
2022-04-17 16:05:19 +02:00
2022-02-02 00:58:50 +01:00
2022-02-02 00:58:50 +01:00
2022-02-02 00:58:50 +01:00
2022-02-02 00:58:50 +01:00
2022-02-02 00:58:50 +01:00
2021-03-19 22:26:49 +01:00
2020-07-12 22:19:55 +02:00
2022-04-17 16:05:19 +02:00
2022-04-17 16:05:19 +02:00
2021-04-19 15:50:52 +02:00
2022-02-02 00:58:50 +01:00
2021-04-19 16:06:10 +02:00
2022-07-20 23:54:57 +02:00
2022-02-02 00:58:50 +01:00
2022-02-02 00:58:50 +01:00
2021-04-19 16:06:10 +02:00
2021-04-19 16:06:10 +02:00
2022-05-30 17:10:33 +02:00
2021-04-19 15:50:52 +02:00
2021-04-19 16:06:10 +02:00
2022-08-10 12:56:23 +02:00
2022-04-17 16:05:19 +02:00
2021-06-15 16:39:28 -05:00
2022-03-01 06:44:55 +02:00
2022-02-02 00:58:50 +01:00