summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-20 20:13:12 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-20 20:13:12 +0000
commit62d55b227f6b1e95d65e7faf12ed22fd467e4c0e (patch)
tree878ebaec9c22b6cea9c0ddb9e303b2ea782dc6f4 /proto.h
parentb204bbd55f0b19ee3a808931bc9154c7a5183948 (diff)
downloadperl-62d55b227f6b1e95d65e7faf12ed22fd467e4c0e.tar.gz
Take care in toke.c not to convert constant subroutine reference
proxies into full blown PVGVs with PVCVs, and recognise them and inline their values. Adds a new function gv_const_sv(gv) to return the value of the constant subroutine from a GV, and adds a cv parameter to S_intuit_method. p4raw-id: //depot/perl@26427
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index f1922a3b70..ff0e856742 100644
--- a/proto.h
+++ b/proto.h
@@ -290,6 +290,10 @@ PERL_CALLCONV void Perl_cv_ckproto(pTHX_ const CV* cv, const GV* gv, const char*
PERL_CALLCONV CV* Perl_cv_clone(pTHX_ CV* proto)
__attribute__nonnull__(pTHX_1);
+PERL_CALLCONV SV* Perl_gv_const_sv(pTHX_ GV* gv)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1);
+
PERL_CALLCONV SV* Perl_cv_const_sv(pTHX_ CV* cv)
__attribute__warn_unused_result__;
@@ -3772,7 +3776,7 @@ STATIC void S_force_ident(pTHX_ const char *s, int kind)
STATIC void S_incline(pTHX_ char *s)
__attribute__nonnull__(pTHX_1);
-STATIC int S_intuit_method(pTHX_ char *s, GV *gv)
+STATIC int S_intuit_method(pTHX_ char *s, GV *gv, CV *cv)
__attribute__nonnull__(pTHX_1);
STATIC int S_intuit_more(pTHX_ char *s)