summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-11-22 15:05:01 +0100
committerNicholas Clark <nick@ccl4.org>2011-11-22 15:05:01 +0100
commit27a6968ba35b6cbe9590b659be9641ced651ef8b (patch)
tree96a5a82ab917e7cec07f4f1b7ff26d8e137381ca /perl.c
parent6da1ef1ca88ce3e9e6a3da8722992917363120fe (diff)
downloadperl-27a6968ba35b6cbe9590b659be9641ced651ef8b.tar.gz
In Perl_moreswitches(), merge the cases for 't' and 'T'.
Both bodies were the same, aside from hardcoded 't' and 'T', which can be replaced with a variable.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/perl.c b/perl.c
index bbfae80d79..27e80ac837 100644
--- a/perl.c
+++ b/perl.c
@@ -3293,14 +3293,10 @@ Perl_moreswitches(pTHX_ const char *s)
s++;
return s;
case 't':
+ case 'T':
if (!PL_tainting)
- TOO_LATE_FOR('t');
+ TOO_LATE_FOR(*s);
s++;
- return s;
- case 'T':
- if (!PL_tainting)
- TOO_LATE_FOR('T');
- s++;
return s;
case 'u':
PL_do_undump = TRUE;