Author: sveinung
Date: Thu Sep 15 17:04:02 2016
New Revision: 33809

URL: http://svn.gna.org/viewcvs/freeciv?rev=33809&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:
    branches/S2_6/doc/CodingStyle

Modified: branches/S2_6/doc/CodingStyle
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/doc/CodingStyle?rev=33809&r1=33808&r2=33809&view=diff
==============================================================================
--- branches/S2_6/doc/CodingStyle       (original)
+++ branches/S2_6/doc/CodingStyle       Thu Sep 15 17:04:02 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