diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-30 09:59:41 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-30 09:59:41 +0000 |
commit | 887986eb9473f45f115f0a49ec6a7899f43f8906 (patch) | |
tree | f23bf4a29472289d649c063d59081a86dbc7906b | |
parent | f95f476d3e4012b98bef777c4cf9fdc247d48d71 (diff) | |
download | perl-887986eb9473f45f115f0a49ec6a7899f43f8906.tar.gz |
Replace gv_fetchmethod() with a macro to call gv_fetchmethod_autoload()
with the extra TRUE argument.
p4raw-id: //depot/perl@25893
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | embed.h | 2 | ||||
-rw-r--r-- | gv.c | 14 | ||||
-rw-r--r-- | gv.h | 1 | ||||
-rw-r--r-- | mathoms.c | 14 | ||||
-rw-r--r-- | proto.h | 4 |
6 files changed, 18 insertions, 19 deletions
@@ -263,7 +263,7 @@ Ap |void |gv_efullname4 |NN SV* sv|NN const GV* gv|NULLOK const char* prefix|boo Ap |GV* |gv_fetchfile |NN const char* name Apd |GV* |gv_fetchmeth |NULLOK HV* stash|NN const char* name|STRLEN len|I32 level Apd |GV* |gv_fetchmeth_autoload |NULLOK HV* stash|NN const char* name|STRLEN len|I32 level -Apd |GV* |gv_fetchmethod |NULLOK HV* stash|NN const char* name +Apdmb |GV* |gv_fetchmethod |NULLOK HV* stash|NN const char* name Apd |GV* |gv_fetchmethod_autoload|NULLOK HV* stash|NN const char* name|I32 autoload Ap |GV* |gv_fetchpv |NN const char* name|I32 add|I32 sv_type Ap |void |gv_fullname |NN SV* sv|NN const GV* gv @@ -253,7 +253,6 @@ #define gv_fetchfile Perl_gv_fetchfile #define gv_fetchmeth Perl_gv_fetchmeth #define gv_fetchmeth_autoload Perl_gv_fetchmeth_autoload -#define gv_fetchmethod Perl_gv_fetchmethod #define gv_fetchmethod_autoload Perl_gv_fetchmethod_autoload #define gv_fetchpv Perl_gv_fetchpv #define gv_fullname Perl_gv_fullname @@ -2244,7 +2243,6 @@ #define gv_fetchfile(a) Perl_gv_fetchfile(aTHX_ a) #define gv_fetchmeth(a,b,c,d) Perl_gv_fetchmeth(aTHX_ a,b,c,d) #define gv_fetchmeth_autoload(a,b,c,d) Perl_gv_fetchmeth_autoload(aTHX_ a,b,c,d) -#define gv_fetchmethod(a,b) Perl_gv_fetchmethod(aTHX_ a,b) #define gv_fetchmethod_autoload(a,b,c) Perl_gv_fetchmethod_autoload(aTHX_ a,b,c) #define gv_fetchpv(a,b,c) Perl_gv_fetchpv(aTHX_ a,b,c) #define gv_fullname(a,b) Perl_gv_fullname(aTHX_ a,b) @@ -397,20 +397,6 @@ Perl_gv_fetchmeth_autoload(pTHX_ HV *stash, const char *name, STRLEN len, I32 le } /* -=for apidoc gv_fetchmethod - -See L<gv_fetchmethod_autoload>. - -=cut -*/ - -GV * -Perl_gv_fetchmethod(pTHX_ HV *stash, const char *name) -{ - return gv_fetchmethod_autoload(stash, name, TRUE); -} - -/* =for apidoc gv_fetchmethod_autoload Returns the glob which contains the subroutine to call to invoke the method @@ -160,3 +160,4 @@ Return the SV from the GV. */ #define gv_fullname3(sv,gv,prefix) gv_fullname4(sv,gv,prefix,TRUE) #define gv_efullname3(sv,gv,prefix) gv_efullname4(sv,gv,prefix,TRUE) +#define gv_fetchmethod(stash, name) gv_fetchmethod_autoload(stash, name, TRUE) @@ -581,6 +581,20 @@ Perl_gv_efullname3(pTHX_ SV *sv, const GV *gv, const char *prefix) gv_efullname4(sv, gv, prefix, TRUE); } +/* +=for apidoc gv_fetchmethod + +See L<gv_fetchmethod_autoload>. + +=cut +*/ + +GV * +Perl_gv_fetchmethod(pTHX_ HV *stash, const char *name) +{ + return gv_fetchmethod_autoload(stash, name, TRUE); +} + AV * Perl_av_fake(pTHX_ register I32 size, register SV **strp) { @@ -591,8 +591,8 @@ PERL_CALLCONV GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN le PERL_CALLCONV GV* Perl_gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level) __attribute__nonnull__(pTHX_2); -PERL_CALLCONV GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name) - __attribute__nonnull__(pTHX_2); +/* PERL_CALLCONV GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name) + __attribute__nonnull__(pTHX_2); */ PERL_CALLCONV GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload) __attribute__nonnull__(pTHX_2); |