Add extra parentheses to macro bodies 43/12143/3
authorBenjamin Kaduk <kaduk@mit.edu>
Fri, 25 Dec 2015 00:17:34 +0000 (18:17 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 4 May 2016 04:54:17 +0000 (00:54 -0400)
commitd3e043189abee8a6bd43a92a6e8c8ed7f578055e
tree8bd8b67cb38bd712644a9d2bee0d322b869d3111
parent9c08ab654846b701557d89107e60cc8a96dc6d3a
Add extra parentheses to macro bodies

In order to avoid surprises due to operator precedence, the bodies
of macros that are intended to be used as values should always
be enclosed in an outer set of parentheses, if they contain more than
one term.

Change-Id: If175b1977b9452a7507c5906e4e611eccafb4d67
Reviewed-on: https://gerrit.openafs.org/12143
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/config/stds.h