This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move coresub op-creation from gv.c to op.c
authorFather Chrysostomos <sprout@cpan.org>
Fri, 19 Aug 2011 05:09:17 +0000 (22:09 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 25 Aug 2011 06:37:59 +0000 (23:37 -0700)
commit1e4b6aa1907f271ce023ffe6f03439e2ce7f65dc
tree66d2f60ccc3e423a6fd77021258a20e81ebfcefc
parent46e00a91c0fa7d86de7f65504ba0a402c422d58b
Move coresub op-creation from gv.c to op.c

For functions that take handles as arguments, this code will need to
call static functions in op.c, like is_handle_constructor.

While we could make is_handle_constructor into a non-static function
and call it from gv.c, that seems backwards, as it would result in a
lot of op-manipulation code in the middle of gv.c.

So this commit creates a new function in op.c, called coresub_op,
which is only called from gv.c, from the &CORE::sub code.
embed.fnc
embed.h
gv.c
op.c
proto.h