1
0
Peter Krempa 27dfb0280f docs: hacking: Add good practices for shortening conditional expressions
Document that checking if a integer is (non-)zero should (not must)
avoid the shortened form that C allows as it may confuse readers into
overlooking the other possible values which might be interresting to
handle.

While pointers have distinct values from the point of view of the code
we only care whether it's non-NULL and thus it's documented it's okay
to shorten those.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
ACKed-by: Eric Blake <eblake@redhat.com>
2019-05-22 14:46:29 +02:00
..
2016-11-21 13:15:12 +01:00
2019-04-11 15:20:17 +01:00
2017-10-16 10:22:34 +01:00
2018-12-17 17:52:46 +01:00
2018-05-03 12:40:37 +01:00
2019-04-09 16:59:49 +02:00
2018-12-17 17:52:46 +01:00
2018-12-17 17:52:46 +01:00
2017-11-15 13:52:13 +01:00
2018-04-01 17:42:29 +02:00
2017-08-02 15:00:28 -04:00