summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-01-09 14:45:24 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-01-09 14:45:24 +0000
commit11b8faa4b88ddb655238bb84b542f78345a7d7bb (patch)
treee79338ee5072b9a02c2dc10af617a4b5dd3f6422 /toke.c
parent0f502ccae46b6d23173ca88b28f2ead08f7afcbf (diff)
downloadperl-11b8faa4b88ddb655238bb84b542f78345a7d7bb.tar.gz
Missing dTHRs added.
p4raw-id: //depot/cfgperl@2591
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/toke.c b/toke.c
index f91b4cdcc9..fca117b047 100644
--- a/toke.c
+++ b/toke.c
@@ -1089,14 +1089,17 @@ scan_const(char *start)
continue;
}
/* FALL THROUGH */
- /* default action is to copy the quoted character */
default:
- if (ckWARN(WARN_UNSAFE) && isALPHA(*s))
- warner(WARN_UNSAFE,
- "Unrecognized escape \\%c passed through",
- *s);
- *d++ = *s++;
- continue;
+ {
+ dTHR;
+ if (ckWARN(WARN_UNSAFE) && isALPHA(*s))
+ warner(WARN_UNSAFE,
+ "Unrecognized escape \\%c passed through",
+ *s);
+ /* default action is to copy the quoted character */
+ *d++ = *s++;
+ continue;
+ }
/* \132 indicates an octal constant */
case '0': case '1': case '2': case '3':