summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-03 01:48:22 -0400
committerNeil Moore <neil@s-z.org>2014-05-03 01:48:22 -0400
commit9514a6a4f6a51b50f5d1977c65416a266186cfa2 (patch)
treea1979d852c4ac4687c38edda8a5c9e473b56c220 /crawl-ref/source/util
parentc0af4134ef13c309b8fa84fa44aad751aa297de6 (diff)
downloadcrawl-ref-9514a6a4f6a51b50f5d1977c65416a266186cfa2.tar.gz
crawl-ref-9514a6a4f6a51b50f5d1977c65416a266186cfa2.zip
Remove an obsolete comment.
And wrap another comment to 80 characters.
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-xcrawl-ref/source/util/unbrace8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/util/unbrace b/crawl-ref/source/util/unbrace
index 9febd6dc62..5435dff6d4 100755
--- a/crawl-ref/source/util/unbrace
+++ b/crawl-ref/source/util/unbrace
@@ -19,15 +19,11 @@ for $f (@files)
my $old = $_ = <F>;
close F;
- # Aaaw, due to the support code, this beautiful one-liner is one no longer :(
- # Should have told you to:
- # for x in *.cc *.h;do unbrace <"$x" >aa && mv aa "$x";done
- # like I always did before...
# Eliminate braces around one-line blocks.
s&^( +(?:if|while|for|do|else)\b[^\n]*)\n +{\n( *[^/ }][^\n]*)\n +}$&$1\n$2&msg;
- # Something like the following should match multi-line flow-control statements
- # with missing braces, but:
+ # Something like the following should match multi-line flow-control
+ # statements with missing braces, but:
# 1. it's slow (for example, on beam.cc);
# 2. it has false positives at the end of do-while loops; and
# 3. it's not clear how to determine where to put the braces.