This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change core_prototype to take a keyword num
authorFather Chrysostomos <sprout@cpan.org>
Tue, 9 Aug 2011 06:38:14 +0000 (23:38 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 14 Aug 2011 19:53:36 +0000 (12:53 -0700)
commitbe1b855bbb2f62dad5aa5efb8dc5bce980ad4086
tree25b4a0adfe9d21d63179837e35a7e6f30cb23b27
parent6f9f564c230503d37f06f18407442c68cef573db
Change core_prototype to take a keyword num

This refactoring requires the caller to provide the keyword
number to core_prototype.  Consequently, it speeds up the code in
gv.c:gv_fetchpvn_flags by allowing it to avoid an extra call to
keyword().

This takes the place of the len parameter, which is no longer used.
It used to be used only as an argument to keyword().  Since the code
that uses strEQ is only reached if the keyword has already been veri-
fied by keyword(), the name simply cannot have embedded nulls, so len
is not necessary.
embed.fnc
gv.c
op.c
pp.c
proto.h