mirror of
https://github.com/cc65/cc65.git
synced 2026-03-13 22:16:33 +00:00
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>
3.0 KiB
3.0 KiB