diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-01-03 12:52:57 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:18:46 +0100 |
commit | def98457bebf9277bd0ba86a3cb4eeb7c8e59875 (patch) | |
tree | 3a6d5550ed8366ed7746acd590532d357a9fdf8d /CODING_STYLE | |
parent | c0f6bb301e2d228d6be93f925e6178994aabaa41 (diff) |
Prep v225: Sync build files with upstream
Diffstat (limited to 'CODING_STYLE')
-rw-r--r-- | CODING_STYLE | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CODING_STYLE b/CODING_STYLE index dbadfbdb5..a96ddd359 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -314,3 +314,10 @@ are always defined after more global ones. Thus, our local definitions will never "leak" into the global header files, possibly altering their effect due to #ifdeffery. + +- To implement an endless loop, use "for (;;)" rather than "while + (1)". The latter is a bit ugly anyway, since you probably really + meant "while (true)"... To avoid the discussion what the right + always-true expression for an infinite while() loop is our + recommendation is to simply write it without any such expression by + using "for (;;)". |