summaryrefslogtreecommitdiff
path: root/src/h_sa2str.c
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers@khanacademy.org>2008-05-20 06:13:28 +0000
committerCraig Silverstein <csilvers@khanacademy.org>2008-05-20 06:13:28 +0000
commit41b794c77d881e29b260d5fccd14293af499b768 (patch)
tree4883b724529a1f64b45cb666e3f3764a945bfb5a /src/h_sa2str.c
parent48fff1e2284aed7ea44eb6ac23b00166c1225038 (diff)
downloaddistcc-git-41b794c77d881e29b260d5fccd14293af499b768.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
Diffstat (limited to 'src/h_sa2str.c')
-rw-r--r--src/h_sa2str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/h_sa2str.c b/src/h_sa2str.c
index 3cc58d2..686a605 100644
--- a/src/h_sa2str.c
+++ b/src/h_sa2str.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_sa2str.c,v 1.1 2004/01/10 23:15:32 mbp Exp $
+ * $Header: /data/cvs/distcc/src/h_sa2str.c,v 1.1 2004/01/10 23:15:32 mbp Exp $
*
* Copyright (C) 2004 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