sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 6c1a7649e26079337aff8d33330f893a4a4a6ff3
parent 8ca75c43880fa647d9b96f4bb596f6459304b789
Author: sin <sin@2f30.org>
Date:   Tue, 23 Dec 2014 10:51:24 +0000

style: Remember to add a NOTREACHED comment

Diffstat:
Msuckless.org/style.md | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/suckless.org/style.md b/suckless.org/style.md @@ -91,7 +91,7 @@ Keywords Switch ------ * Do not indent cases another level -* Comment cases that fall through +* Comment cases that FALLTHROUGH Headers ------- @@ -144,4 +144,5 @@ Handling Errors hcf(); * Use `goto` to unwind and cleanup when necessary instead of multiple nested levels * `return` or `exit` early on failures instead of multiple nested levels +* Unreachable code should have a NOTREACHED comment * Think long and hard on whether or not you should cleanup on fatal errors