summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-02-13 19:12:31 -0700
committerKarl Williamson <khw@cpan.org>2017-02-13 21:24:10 -0700
commit4c3e84f3090c9cc68d352a2c80a95c91d25a8fc7 (patch)
tree7c33c26933d9835d22e6d0acd88d5c87966cbd2f /toke.c
parentf065e1e68bf6a5541c8ceba8c9fcc6e18f51a32b (diff)
downloadperl-4c3e84f3090c9cc68d352a2c80a95c91d25a8fc7.tar.gz
toke.c: Un-special case something
By refactoring slightly, we make this code in a switch statement have the same entrance and exit invariants as the other cases, so they all can be handled uniformly at the end of the switch.
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 880ac53b7d..547e67ae5a 100644
--- a/toke.c
+++ b/toke.c
@@ -3934,7 +3934,7 @@ S_scan_const(pTHX_ char *start)
case 'c':
s++;
if (s < send) {
- *d++ = grok_bslash_c(*s++, 1);
+ *d++ = grok_bslash_c(*s, 1);
}
else {
yyerror("Missing control char name in \\c");
@@ -3942,7 +3942,7 @@ S_scan_const(pTHX_ char *start)
#ifdef EBCDIC
non_portable_endpoint++;
#endif
- continue;
+ break;
/* printf-style backslashes, formfeeds, newlines, etc */
case 'b':