diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 16:08:19 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 16:35:53 -0800 |
commit | eb4ec35b34d91de654d6eb753c89dca0b28c7a07 (patch) | |
tree | b52ef80d209fb967bc96c219bbdfd2e9a42be961 /proto.h | |
parent | 1d51ab6ca7dce64da157c7a48bf6431086a32ed2 (diff) | |
download | perl-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |