diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-09-11 13:17:59 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-01-04 05:10:03 -0800 |
commit | b47c4431974de7ad0820e4d84da48d468e06ee16 (patch) | |
tree | e774be9aae85a360bcf31e7e27dd460af4410b78 /vxs.inc | |
parent | 8a3edca7ce6c05c68923832e2f5e5eac46975fd0 (diff) | |
download | perl-b47c4431974de7ad0820e4d84da48d468e06ee16.tar.gz |
vxs.inc: Disallow multiple args to XS_version_normal
Also rename the argument.
This is part of bringing perl and CPAN into synch.
Diffstat (limited to 'vxs.inc')
-rw-r--r-- | vxs.inc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -274,19 +274,19 @@ XS(XS_version_normal) { dVAR; dXSARGS; - if (items < 1) - croak_xs_usage(cv, "lobj, ..."); + if (items != 1) + croak_xs_usage(cv, "ver, ..."); SP -= items; { - SV * lobj = ST(0); + SV * ver = ST(0); - if (sv_isobject(lobj) && sv_derived_from(lobj, "version")) { - lobj = SvRV(lobj); + if (sv_isobject(ver) && sv_derived_from(ver, "version")) { + ver = SvRV(ver); } else - Perl_croak(aTHX_ "lobj is not of type version"); + Perl_croak(aTHX_ "ver is not of type version"); - mPUSHs(vnormal(lobj)); + mPUSHs(vnormal(ver)); PUTBACK; return; |