diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-03-11 23:40:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-03-11 23:40:34 +0000 |
commit | 888fea98b0a0f888136baacef34e1416016481b6 (patch) | |
tree | f97294c06dc5588708938a3f64f8b194e18df567 /toke.c | |
parent | 2ade63888e659bb60dd5fda64a79640b763ca351 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |