remove most calls to strlen in S_force_ident
authorDaniel Dragan <bulk88@hotmail.com>
Wed, 14 Nov 2012 11:18:54 +0000 (06:18 -0500)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 14 Nov 2012 17:53:47 +0000 (09:53 -0800)
commitc9b48522392b1e56ae3446488e15c25156b6dd16
tree311c9617bc7288d04ae8aa412ad40b467d767e3b
parent3ac7ff8feea83945e8004db016e86c3a7ba1c8b0
remove most calls to strlen in S_force_ident

I saw strlen("\"") being called here, where the string came from
Perl_yylex. This commit provides a shortcut to not call strlen for a
1 character + null character string.
toke.c