summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2010-06-03 12:08:14 +0200
committerVincent Pit <perl@profvince.com>2010-06-03 14:00:50 +0200
commit03d5bcf83cdbcccf9aefa373ec7b6a3dc11c5142 (patch)
tree7cd0596d1bcd84c13e71e9e1550692002ce43e63
parent483ce06a4f6c720f66285117b98747911f62226a (diff)
downloadperl-03d5bcf83cdbcccf9aefa373ec7b6a3dc11c5142.tar.gz
Deprecate find_rundefsvoffset()
-rw-r--r--embed.fnc2
-rw-r--r--pod/perl5132delta.pod9
-rw-r--r--proto.h4
3 files changed, 13 insertions, 2 deletions
diff --git a/embed.fnc b/embed.fnc
index 6400f3e306..01605a96aa 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -855,7 +855,7 @@ p |PADOFFSET|allocmy |NN const char *const name|const STRLEN len\
|const U32 flags
: Used in op.c and toke.c
AMpdR |PADOFFSET|pad_findmy |NN const char* name|STRLEN len|U32 flags
-Ap |PADOFFSET|find_rundefsvoffset |
+ApD |PADOFFSET|find_rundefsvoffset |
: Used in pp.c
Ap |SV* |find_rundefsv |
: Used in perly.y
diff --git a/pod/perl5132delta.pod b/pod/perl5132delta.pod
index 92d3b0d4cd..9551f4a4a4 100644
--- a/pod/perl5132delta.pod
+++ b/pod/perl5132delta.pod
@@ -181,6 +181,15 @@ XXX Changes which affect the interface available to C<XS> code go here.
=item *
+The C<fund_rundefsvoffset> function has been deprecated. It appeared that
+its design was insufficient to reliably get the lexical C<$_> at run-time.
+
+Use the new C<find_rundefsv> function or the C<UNDERBAR> macro instead.
+They directly return the right SV representing C<$_>, whether it's lexical
+or dynamic.
+
+=item *
+
The following new functions or macros have been added to the public API:
C<SvNV_nomg>, C<sv_2nv_flags>, C<find_rundefsv>.
diff --git a/proto.h b/proto.h
index c27313c512..9ce57d535e 100644
--- a/proto.h
+++ b/proto.h
@@ -2509,7 +2509,9 @@ PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name, STRLEN len, U32
#define PERL_ARGS_ASSERT_PAD_FINDMY \
assert(name)
-PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX);
+PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX)
+ __attribute__deprecated__;
+
PERL_CALLCONV SV* Perl_find_rundefsv(pTHX);
PERL_CALLCONV OP* Perl_oopsAV(pTHX_ OP* o)
__attribute__warn_unused_result__