[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Normalize space: add one between every control keyword and ...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Normalize space: add one between every control keyword and ...
- From: nickm@seul.org (Nick Mathewson)
- Date: Sun, 28 Nov 2004 04:05:49 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 28 Nov 2004 04:12:44 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/tor/contrib
In directory moria.mit.edu:/tmp/cvs-serv11426/contrib
Modified Files:
	checkSpace.pl 
Log Message:
Normalize space: add one between every control keyword and control clause.
Index: checkSpace.pl
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/checkSpace.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- checkSpace.pl	22 Nov 2004 23:28:54 -0000	1.3
+++ checkSpace.pl	28 Nov 2004 09:05:45 -0000	1.4
@@ -18,9 +18,9 @@
             print "Space\@EOL:$fn:$.\n";
         }
 	## Warn about control keywords without following space.
-	#if (/\s(?:if|while|for|switch)\(/) {
-	#    print "      KW(:$fn:$.\n";
-	#}
+	if (/\s(?:if|while|for|switch)\(/) {
+	    print "      KW(:$fn:$.\n";
+	}
 	## Warn about multiple empty lines.
         if ($lastnil && /^$/) {
             print " DoubleNL:$fn:$.\n";