This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add core_prototype; make pp_prototype use it
authorFather Chrysostomos <sprout@cpan.org>
Tue, 26 Jul 2011 05:33:40 +0000 (22:33 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 26 Jul 2011 07:09:04 +0000 (00:09 -0700)
commitb8c38f0a2a65800ef71a3715d0a31299fcfb4986
tree59c92ee641df16c144dd57596edc22421381e102
parent69f26f522d3144d15f7bf1df76cb51db6af43d05
Add core_prototype; make pp_prototype use it

This commit moves the code for generating core prototypes into a sepa-
rate function, core_prototype, in op.c. This serves two porpoises:

• It allows the lock and tie exceptional cases to be incorporated into
  the main prototype=generation code, which requires the use of a
  static function in op.c.
• It allows other parts of the core (e.g., the upcoming \&CORE::foo
  feature) to use the same code.

The docs for it are in a section boringly entitled ‘Functions in
op.c’, for lack of a better name. This, I believe, is the only op.c
function that is in perlintern currently, so it’s hard to see what to
name a section that will, at least for now, contain nothing else.
embed.fnc
embed.h
op.c
pp.c
proto.h