summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-03-11 23:40:34 +0000
committerNicholas Clark <nick@ccl4.org>2006-03-11 23:40:34 +0000
commit888fea98b0a0f888136baacef34e1416016481b6 (patch)
treef97294c06dc5588708938a3f64f8b194e18df567 /toke.c
parent2ade63888e659bb60dd5fda64a79640b763ca351 (diff)
downloadperl-888fea98b0a0f888136baacef34e1416016481b6.tar.gz
isSPACE('\0') is false, so can simplify the condition in the for
loop. As the for loop is basically a while loop, write it as one, to make its intentions clearer. p4raw-id: //depot/perl@27480
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index f16964e47b..f256310bea 100644
--- a/toke.c
+++ b/toke.c
@@ -10167,8 +10167,8 @@ S_checkcomma(pTHX_ const char *s, const char *name, const char *what)
else if (*w == ')')
--level;
}
- for (; *w && isSPACE(*w); w++)
- /* EMPTY */;
+ while (isSPACE(*w))
+ ++w;
if (!*w || !strchr(";|})]oaiuw!=", *w)) /* an advisory hack only... */
Perl_warner(aTHX_ packWARN(WARN_SYNTAX),
"%s (...) interpreted as function",name);