]> granicus.if.org Git - nethack/commitdiff
add a note
authornhmall <nhmall@nethack.org>
Thu, 10 Nov 2022 16:57:00 +0000 (11:57 -0500)
committernhmall <nhmall@nethack.org>
Thu, 10 Nov 2022 16:57:00 +0000 (11:57 -0500)
DEVEL/code_style.txt

index c12489eef82c2d6a07a41db3259c2feb15170aa0..e0aaaf20be8443df0042eb6185f380cf5ed0c19f 100644 (file)
@@ -163,6 +163,13 @@ wrapped in an additional set of parentheses for clarity:
         /* body */
     }
 
+Variable names to avoid
+-----------------------
+
+    near, far    Some compilers and cross-compilers that target old
+                 processors with segmented architectures may treat
+                 those as keywords. It is safest to just avoid them.
+
 Spaces in Expressions
 ---------------------