diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-10-01 22:14:19 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-10-06 13:01:00 -0700 |
commit | 0eeb01b957d2d66eec1a0e1e347c6d8772e5284e (patch) | |
tree | 110f9778173d6a76d65b152c2344eb48f09bc692 /ext/XS-APItest/APItest.xs | |
parent | 0fe84f7c4203febe7385a57fe43af2ee032318cf (diff) | |
download | perl-0eeb01b957d2d66eec1a0e1e347c6d8772e5284e.tar.gz |
Remove method param from gv_autoload_*
method is a boolean flag (typed I32, but used as a boolean) added by
commit 54310121b442.
These new gv_autoload_* functions have a flags parameter, so there’s
no reason for this extra effective bool. We can just use a flag bit.
Diffstat (limited to 'ext/XS-APItest/APItest.xs')
-rw-r--r-- | ext/XS-APItest/APItest.xs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs index 618bd32dc8..6ef52d1b8f 100644 --- a/ext/XS-APItest/APItest.xs +++ b/ext/XS-APItest/APItest.xs @@ -1953,29 +1953,29 @@ gv_fetchmethod_flags_type(stash, methname, type, flags) XPUSHs( gv ? (SV*)gv : &PL_sv_undef); void -gv_autoload_type(stash, methname, type, method, flags) +gv_autoload_type(stash, methname, type, method) HV* stash SV* methname int type I32 method - I32 flags PREINIT: STRLEN len; const char * const name = SvPV_const(methname, len); GV* gv; + I32 flags = method ? GV_AUTOLOAD_ISMETHOD : 0; PPCODE: switch (type) { case 0: gv = gv_autoload4(stash, name, len, method); break; case 1: - gv = gv_autoload_sv(stash, methname, method, flags); + gv = gv_autoload_sv(stash, methname, flags); break; case 2: - gv = gv_autoload_pv(stash, name, method, flags | SvUTF8(methname)); + gv = gv_autoload_pv(stash, name, flags | SvUTF8(methname)); break; case 3: - gv = gv_autoload_pvn(stash, name, len, method, flags | SvUTF8(methname)); + gv = gv_autoload_pvn(stash, name, len, flags | SvUTF8(methname)); break; } XPUSHs( gv ? (SV*)gv : &PL_sv_undef); |