[Pidgin] StyleGuide modified

Pidgin trac at pidgin.im
Fri Feb 28 02:22:58 EST 2014


Page "StyleGuide" was changed by MarkDoliner
Diff URL: <https://developer.pidgin.im/wiki/StyleGuide?action=diff&version=9>
Revision 9
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: StyleGuide
=========================================================================
--- StyleGuide (version: 8)
+++ StyleGuide (version: 9)
@@ -40,7 +40,9 @@
  * A space in front of = and ( except for function calls. e.g.:
 {{{
 #!c
-for (i = 0; i < x; i++) ..
+for (i = 0; i < x; i++) {
+        ...
+}
 
 some_function(var1, var2);
 }}}
@@ -56,7 +58,7 @@
 #!c
 // don't use this style--we don't like it
 
-/* Use this kind of comment for a single line... */
+/* Use this kind of comment for a single line. */
 
 /* And if you have a comment spanning multiple lines,
  * have a neat column of stars to the left!
@@ -78,8 +80,9 @@
 {
         /* misc, other */
 }
+}}}
 
 
 == Variable Declarations ==
- * Prefer declaring each variable on its own line. This makes diffs easier to read and reduces churn.
+ * Prefer declaring each variable on its own line. This makes diffs easier to read and reduces churn. It also makes the code more clear when one variable is given an initial value but another is not.
  * Use const for variables that don't need to change or be deallocated.
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://developer.pidgin.im/wiki/StyleGuide>
Pidgin <https://pidgin.im>
Pidgin

This is an automated message. Someone added your email address to be
notified of changes on 'StyleGuide' page.
If it was not you, please report to datallah at pidgin.im.


More information about the Wikiedit mailing list