diff options
author | csilvers <csilvers@01de4be4-8c4a-0410-9132-4925637da917> | 2008-05-20 06:13:28 +0000 |
---|---|---|
committer | csilvers <csilvers@01de4be4-8c4a-0410-9132-4925637da917> | 2008-05-20 06:13:28 +0000 |
commit | 9d7d41c8586d571e6e05a7bbc0b623333f7250ce (patch) | |
tree | 4883b724529a1f64b45cb666e3f3764a945bfb5a /src/h_exten.c | |
parent | a3f9539b6a2c9ef05898598e02cf4a476579fb8e (diff) | |
download | distcc-9d7d41c8586d571e6e05a7bbc0b623333f7250ce.tar.gz |
Turned all tabs into 4 spaces. Got rid of whitespace at the end of
lines. Fixed up resulting mis-indented code I noticed (mostly in
files that used 8 space indents, or used 4-space and 8-space indents
in the same file (!)). Added the emacs tab-var setting for all files,
not just some of them.
I also added in copyright notices for files I noticed that didn't have
them. We'll want to do another pass-through to fix these up properly,
though.
I used the following perl snippet to check for mis-indented code after
converting tabs to whitespace:
$ for i in *.{c,h}; do echo $i; perl -nle 'if ($indent > 0) {$sp=" " x $indent; /^$sp[^ ]/ && print "$.: $_"; $indent=0;}; if (/^( *).*{/ ) {$indent=length($1);} else {$indent=0;}' $i; done | less
It had false positives, but hopefully didn't miss anything.
Reviewed by klarlund@google.com
git-svn-id: http://distcc.googlecode.com/svn/trunk@320 01de4be4-8c4a-0410-9132-4925637da917
Diffstat (limited to 'src/h_exten.c')
-rw-r--r-- | src/h_exten.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/h_exten.c b/src/h_exten.c index 1463c99..82e554e 100644 --- a/src/h_exten.c +++ b/src/h_exten.c @@ -1,7 +1,7 @@ -/* -*- c-file-style: "java"; indent-tabs-mode: nil -*- +/* -*- c-file-style: "java"; indent-tabs-mode: nil -*- * * distcc -- A simple distributed compiler system - * $Header: /data/cvs/distcc/src/h_exten.c,v 1.7 2003/07/13 08:08:02 mbp Exp $ + * $Header: /data/cvs/distcc/src/h_exten.c,v 1.7 2003/07/13 08:08:02 mbp Exp $ * * Copyright (C) 2002 by Martin Pool <mbp@samba.org> * @@ -14,7 +14,7 @@ * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 @@ -48,13 +48,13 @@ const char *rs_program_name = __FILE__; int main(int argc, char *argv[]) { char *ex; - + if (argc != 2) { rs_log_error("usage: h_exten FILENAME"); return 1; } printf("%s", (ex = dcc_find_extension(argv[1])) ? ex : "(NULL)"); - + return 0; } |