[gnome-devel-docs/wip/swilmet/various-fixes: 4/7] programming-guidelines: Linux Kernel indentation style is with tabs



commit f0e6ab682507bb53880b5002f0584821c14ac9d2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Feb 13 17:16:30 2015 +0100

    programming-guidelines: Linux Kernel indentation style is with tabs
    
    The reference document is a bit confusing:
    https://www.kernel.org/doc/Documentation/CodingStyle
    
    But the indentation is with tabs, with a *length* of 8 characters.
    
    You can check the Linux kernel code, here is for example a random file:
    https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/async.c
    
    Or in Nautilus:
    https://git.gnome.org/browse/nautilus/tree/src/nautilus-application.c
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744521

 programming-guidelines/C/c-coding-style.page |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/programming-guidelines/C/c-coding-style.page b/programming-guidelines/C/c-coding-style.page
index 5438186..e3dac82 100644
--- a/programming-guidelines/C/c-coding-style.page
+++ b/programming-guidelines/C/c-coding-style.page
@@ -100,8 +100,8 @@
     <list type="ordered">
       <item>
        <p>
-         Linux Kernel style.  This is 8-space indentations, with
-         K&amp;R brace placement:
+         Linux Kernel style.  Tabs with a length of 8 characters are
+         used for the indentation, with K&amp;R brace placement:
        </p>
 
        <code style="valid">
@@ -177,9 +177,7 @@ for (i = 0; i &lt; num_elements; i++)
 
     <p>
       Instead, set the <em>indentation size</em> as appropriate for
-      the code you are editing.  You may even be able to tell your
-      editor to automatically convert all tabs to 8 spaces, so that
-      there is no ambiguity about the intended amount of space.
+      the code you are editing.
     </p>
   </section>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]