Inline a subset of S_force_word() into the KEY_format section of Perl_yylex().
authorNicholas Clark <nick@ccl4.org>
Wed, 27 Feb 2013 15:09:29 +0000 (16:09 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 11 Jun 2013 13:03:47 +0000 (15:03 +0200)
commitd6a4f4b5319be6b18d1a7e66172237c8b6137820
tree4255d793df80095a6ec272e9821113d935e5b13b
parent345b3785326c7725d2f52bfa4a802d2428eb8a17
Inline a subset of S_force_word() into the KEY_format section of Perl_yylex().

In code handling formats, Perl_yylex() calls S_force_word() at a point where
it has already done half the work that S_force_word() does. The validation
Perl_yylex() has already passed, along with the normalisation performed by
S_scan_word() mean that all it actually needs from S_force_word() is the
token forcing. Inlining these lines decouples the code.
toke.c