From: Eric Hodel Date: 2007-01-02T11:37:52+09:00 Subject: Re: Suggestion: Post indentation style guideline to "Rules for Core Developers" On Jan 1, 2007, at 06:58, Rob Muhlestein wrote: > On Sun, 2006-12-31 at 15:02 +0900, Eric Hodel wrote: >> On Dec 30, 2006, at 20:02, Rob Muhlestein wrote: >> >>> What *is* the preferred indentation style for ruby core C code? >> >> It appears to by four spaces with hard tabs. All the files I've >> encountered have this structure. >> > > Really, humm, in which files specifically are you seeing the mostly > hard > tabs? Around 200 *.[ch] files have tabs. Here's the files with the most tabs for trunk and ruby_1_8. Tabs are certainly heavily used. $ pwd /Users/drbrain/Work/svn/ruby/trunk $ find . -name "*[ch]" | xargs grep -c ' ' | grep -v ':0' | awk -F ':' '{ print $2, $1 }' | sort -rn | head 5008 ./parse.c 4258 ./ext/ripper/ripper.c 3013 ./compile.c 2767 ./ext/syck/implicit.c 1529 ./win32/win32.c 1448 ./ext/syck/token.c 1374 ./ext/nkf/nkf-utf8/nkf.c 1277 ./pack.c 1196 ./string.c 942 ./ext/nkf/nkf-utf8/utf8tbl.c $ pwd /Users/drbrain/Work/svn/ruby/branches/ruby_1_8 $ find . -name "*[ch]" | xargs grep -c ' ' | grep -v ':0' | awk -F ':' '{ print $2, $1 }' | sort -rn | head 3822 ./eval.c 3391 ./parse.c 2767 ./ext/syck/implicit.c 1910 ./regex.c 1448 ./ext/syck/token.c 1372 ./win32/win32.c 1276 ./pack.c 1113 ./ext/nkf/nkf-utf8/nkf.c 1097 ./string.c 1096 ./io.c -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!