Adding a prototype attribute.
authorPeter Martini <PeterCMartini@GMail.com>
Sun, 13 Oct 2013 20:00:00 +0000 (16:00 -0400)
committerJames E Keenan <jkeenan@cpan.org>
Wed, 16 Oct 2013 11:17:44 +0000 (13:17 +0200)
commiteedb00faea0e643c5d10ea0d9200aa705124d603
tree1da04599023cc1c8c85517c195cf8f3be9506710
parent53d48b8bc3daee9ac6baf1f5eb39e4d9899a6646
Adding a prototype attribute.

This attribute adds an additional way of declaring a prototype for a
sub, making sub foo($$) and sub foo : prototype($$) equivalent.  The
intent is to keep the functionality of prototypes while allowing other
modules to use the syntactic space it currently occupies for other
purposes.

The attribute is supported in attributes.xs to allow
attributes::->import to work, but if its defined inline via something
like sub foo : prototype($$) {}, it will not call out to the
attributes module.

For: RT #119251
MANIFEST
embed.fnc
embed.h
ext/attributes/attributes.pm
ext/attributes/attributes.xs
op.c
pod/perldelta.pod
pod/perldiag.pod
pod/perlsub.pod
proto.h
t/op/attrproto.t [new file with mode: 0644]