plan9fox/sys
Ori Bernstein 3df95385bc fix special case for null pointer constants in cond expressions
Section 6.5.15 of the C99 spec requires that if
	one argument of a ?: expression is a null pointer
	constant, and the other has a pointer type T*, then
	the type of the expression is T*.

	We were attempting to follow this rule, however,
	we only handled literal expressions when checking
	for null pointers.

	This change looks through casts, so 'nil' and 'NULL',
	and their expansion '(void*)0' are all detected as
	null pointer constants.
2020-02-27 15:09:10 -05:00
..
doc
games/lib add games/linden and games/turtle 2019-11-03 13:49:23 +00:00
include remove C99_SPRINTF_EXTENSION define. 2020-02-10 19:26:39 -08:00
lib include section 9 in manpage plumb rules. 2020-02-26 20:52:20 -08:00
man image(6): fix typo 2020-02-04 21:32:33 +01:00
src fix special case for null pointer constants in cond expressions 2020-02-27 15:09:10 -05:00