summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-28 16:08:19 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-28 16:35:53 -0800
commiteb4ec35b34d91de654d6eb753c89dca0b28c7a07 (patch)
treeb52ef80d209fb967bc96c219bbdfd2e9a42be961 /proto.h
parent1d51ab6ca7dce64da157c7a48bf6431086a32ed2 (diff)
downloadperl-eb4ec35b34d91de654d6eb753c89dca0b28c7a07.tar.gz
[perl #123514] Make prototype() imply $_
Previously it would read and replace the previous item on the stack: $ ./perl -le 'print "CORE::undef", prototype' ;\[$@%&*]
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index c27e50b90b..cf8e93df61 100644
--- a/proto.h
+++ b/proto.h
@@ -570,6 +570,12 @@ PERL_CALLCONV OP * Perl_ck_open(pTHX_ OP *o)
#define PERL_ARGS_ASSERT_CK_OPEN \
assert(o)
+PERL_CALLCONV OP * Perl_ck_prototype(pTHX_ OP *o)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_CK_PROTOTYPE \
+ assert(o)
+
PERL_CALLCONV OP * Perl_ck_readline(pTHX_ OP *o)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);