summaryrefslogtreecommitdiff
path: root/vxs.inc
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-11 13:17:59 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-01-04 05:10:03 -0800
commitb47c4431974de7ad0820e4d84da48d468e06ee16 (patch)
treee774be9aae85a360bcf31e7e27dd460af4410b78 /vxs.inc
parent8a3edca7ce6c05c68923832e2f5e5eac46975fd0 (diff)
downloadperl-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.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/vxs.inc b/vxs.inc
index b239fadf61..6f321f1f04 100644
--- a/vxs.inc
+++ b/vxs.inc
@@ -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;