[wiki] [sites] style: Remember to add a NOTREACHED comment || sin
commit 6c1a7649e26079337aff8d33330f893a4a4a6ff3
Author: sin <sin_AT_2f30.org>
Date: Tue Dec 23 10:51:24 2014 +0000
style: Remember to add a NOTREACHED comment
diff --git a/suckless.org/style.md b/suckless.org/style.md
index f5b494c..dca3359 100644
--- a/suckless.org/style.md
+++ b/suckless.org/style.md
_AT_@ -91,7 +91,7 @@ Keywords
Switch
------
* Do not indent cases another level
-* Comment cases that fall through
+* Comment cases that FALLTHROUGH
Headers
-------
_AT_@ -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
Received on Tue Dec 23 2014 - 11:52:01 CET
This archive was generated by hypermail 2.3.0
: Thu Jun 18 2015 - 17:39:54 CEST