Revision: 56637
          http://sourceforge.net/p/brlcad/code/56637
Author:   brlcad
Date:     2013-08-06 18:47:35 +0000 (Tue, 06 Aug 2013)
Log Message:
-----------
add a visual example of the indentation style

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

Modified: brlcad/trunk/HACKING
===================================================================
--- brlcad/trunk/HACKING        2013-08-06 18:42:58 UTC (rev 56636)
+++ brlcad/trunk/HACKING        2013-08-06 18:47:35 UTC (rev 56637)
@@ -639,6 +639,32 @@
 languages (such as Tcl, Shell, Perl, etc.).  See the local variable
 footer script in sh/footer.sh to automatically set/update files.
 
+Here is an example where '.' represents a literal space character
+(0x20) and '[ ]' represents a literal tab character (0x09):
+
+int
+main(int ac, char *av[])
+{
+....int i;
+....int foo = 0;
+
+....for (i=0; i<10; i++) {
+[      ]foo += 1;
+[      ]if (foo % 2) {
+[      ]....printf("hello\n");
+[      ]....if (foo > 5) {
+[      ][      ]printf("world\n");
+[      ]....}
+[      ]}
+....}
+....return 0;
+}
+
+We may change this at some point in the future, but this is the style
+for now.  If this is confusing, use spaces to indent and run sh/ws.sh
+to convert spaces to tabs.  We value consistency in order to preserve
+maintainability.
+
 2) Stylistic whitespace
 
 No space immediately inside parentheses.

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


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to