SF.net SVN: geany:[4486] trunk/HACKING

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Dec 9 12:52:11 UTC 2009


Revision: 4486
          http://geany.svn.sourceforge.net/geany/?rev=4486&view=rev
Author:   ntrel
Date:     2009-12-09 12:52:11 +0000 (Wed, 09 Dec 2009)

Log Message:
-----------
Add some Style example comments.

Modified Paths:
--------------
    trunk/HACKING

Modified: trunk/HACKING
===================================================================
--- trunk/HACKING	2009-12-08 20:52:42 UTC (rev 4485)
+++ trunk/HACKING	2009-12-09 12:52:11 UTC (rev 4486)
@@ -207,10 +207,14 @@
     gint function_long_name(gchar arg1, <too many args to fit on this line>,
             gchar argN)
     {
+        /* variable declarations go before code in each scope */
         gint foo, bar;  /* variables can go on the same line */
         gchar *ptr;     /* pointer symbol must go next to variable name, not type */
         gchar *another; /* pointers should normally go on separate lines */
 
+        /* Some long comment block
+         * taking several different
+         * lines to explain */
         if (foo)
         {
             gint dir = -1;    /* -1 to search backwards */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list