diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-11-22 15:05:01 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-11-22 15:05:01 +0100 |
commit | 27a6968ba35b6cbe9590b659be9641ced651ef8b (patch) | |
tree | 96a5a82ab917e7cec07f4f1b7ff26d8e137381ca /perl.c | |
parent | 6da1ef1ca88ce3e9e6a3da8722992917363120fe (diff) | |
download | perl-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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; |