[U-Boot] [PATCH-OMAP3] OMAP3: Plain numbers don't need parens
Wolfgang Denk
wd at denx.de
Tue Nov 4 22:08:24 CET 2008
Dear Magnus,
In message <59b21cf20811041128uca98211v51ca6b393c3d5d56 at mail.gmail.com> you wrote:
>
> > you might comment that such a #define is dangerous in itself, but why
> > not protet against it? with a number we are sure we don't need parens,
> > but with a macro we'd should rather play safe.
>
> Should we really start protection against such things?
No. We should not start doing this. We should have been doing this
from the beginning. Defensive programming is a simple but efficient
tool to help producing high quality software.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: Why do mountain climbers rope themselves together?
A: To prevent the sensible ones from going home.
More information about the U-Boot
mailing list