Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: kernel guide to space | Date | Wed, 20 Jul 2005 19:42:45 +0200 |
| |
Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
>> 3) If a normal line of code is more than 80 characters, one of the >> following is probably true: you need to break the line up and use temps >> for clarity, or your function is so big that you're tabbing over too >> far. > > (Find source files, expand tab chars to their on-screen length, print if >>= 80, count lines) > > ~/linux-2.6.12 > > find . -type f "(" -iname "*.c" -o -iname "*.h" -o -iname "*.S" ")"
... -exec expand -t 8 '{}' \; | egrep '^.{80}' | wc -l
233941
You didn't take \t[^\t]\t into account. -- Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |