[gnome-devel-docs] programming-guidelines: Linux Kernel indentation style is with tabs



commit bce41a700dc0f7b3043caebd737e0873afc2c1aa
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Feb 14 19:49:35 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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/programming-guidelines/C/c-coding-style.page b/programming-guidelines/C/c-coding-style.page
index 5438186..62e2502 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">


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