This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Simplify the CORE::__FOO__ op-generation code
authorFather Chrysostomos <sprout@cpan.org>
Fri, 19 Aug 2011 05:19:25 +0000 (22:19 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 25 Aug 2011 06:38:27 +0000 (23:38 -0700)
commitc2f605db621edfb16309200bbba8ced984d34476
treecff01a54d0de63402bdd6d7644d45e67f76d9992
parent1e4b6aa1907f271ce023ffe6f03439e2ce7f65dc
Simplify the CORE::__FOO__ op-generation code

It just happens that the (caller)[...] offsets for file and line are
the same as the keyword numbers.  KEY___PACKAGE__ is 3 and (caller)[0]
returns the package, so keyword_number % 3 can be used for the offset
instead of an unwieldy switch block.
keywords.c
keywords.h
op.c
regen/keywords.pl