Author: sveinung
Date: Thu Sep 15 17:03:20 2016
New Revision: 33808

URL: http://svn.gna.org/viewcvs/freeciv?rev=33808&view=rev
Log:
Clarify doc/CodingStyle on variable declaration.

Change "Declaring variables in the middle of the function body is forbidden"
to "Declaring variables in the middle of the scope is forbidden".

See patch #7688

Modified:
    trunk/doc/CodingStyle

Modified: trunk/doc/CodingStyle
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/CodingStyle?rev=33808&r1=33807&r2=33808&view=diff
==============================================================================
--- trunk/doc/CodingStyle       (original)
+++ trunk/doc/CodingStyle       Thu Sep 15 17:03:20 2016
@@ -18,7 +18,7 @@
 - C++-style comments (i.e., // comments) are forbidden in C code.
   They should be used for single-line comments in C++ code.
 
-- Declaring variables in the middle of the function body is forbidden
+- Declaring variables in the middle of the scope is forbidden
   (unless you are using C99 dynamic arrays and you need to check the size
    of the array before you declare it).
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to