diff options
author | Andy Lester <andy@petdance.com> | 2005-04-22 12:39:47 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-04-26 21:03:43 +0000 |
commit | 88d019551b04ba7828be67e8c0f62de7f769b5d5 (patch) | |
tree | 64b8bb3ef095bb63c97562cec480a2c7687a5bbd /universal.c | |
parent | f7fe979eb2503f8f9651a18eedcb85278b593375 (diff) | |
download | perl-88d019551b04ba7828be67e8c0f62de7f769b5d5.tar.gz |
XS() __attribute__
Message-ID: <20050422223947.GA4681@petdance.com>
p4raw-id: //depot/perl@24333
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/universal.c b/universal.c index e93a7c19ad..bf0a6fcb3b 100644 --- a/universal.c +++ b/universal.c @@ -251,7 +251,6 @@ XS(XS_UNIVERSAL_isa) SV *sv; const char *name; STRLEN n_a; - (void)cv; if (items != 2) Perl_croak(aTHX_ "Usage: UNIVERSAL::isa(reference, kind)"); @@ -279,7 +278,6 @@ XS(XS_UNIVERSAL_can) SV *rv; HV *pkg = NULL; STRLEN n_a; - (void)cv; if (items != 2) Perl_croak(aTHX_ "Usage: UNIVERSAL::can(object-ref, method)"); @@ -323,7 +321,6 @@ XS(XS_UNIVERSAL_VERSION) GV *gv; SV *sv; const char *undef; - (void)cv; if (SvROK(ST(0))) { sv = (SV*)SvRV(ST(0)); @@ -393,7 +390,6 @@ XS(XS_UNIVERSAL_VERSION) XS(XS_version_new) { dXSARGS; - (void)cv; if (items > 3) Perl_croak(aTHX_ "Usage: version::new(class, version)"); SP -= items; @@ -420,7 +416,6 @@ XS(XS_version_new) XS(XS_version_stringify) { dXSARGS; - (void)cv; if (items < 1) Perl_croak(aTHX_ "Usage: version::stringify(lobj, ...)"); SP -= items; @@ -444,7 +439,6 @@ XS(XS_version_stringify) XS(XS_version_numify) { dXSARGS; - (void)cv; if (items < 1) Perl_croak(aTHX_ "Usage: version::numify(lobj, ...)"); SP -= items; @@ -468,7 +462,6 @@ XS(XS_version_numify) XS(XS_version_vcmp) { dXSARGS; - (void)cv; if (items < 1) Perl_croak(aTHX_ "Usage: version::vcmp(lobj, ...)"); SP -= items; @@ -514,7 +507,6 @@ XS(XS_version_vcmp) XS(XS_version_boolean) { dXSARGS; - (void)cv; if (items < 1) Perl_croak(aTHX_ "Usage: version::boolean(lobj, ...)"); SP -= items; @@ -543,7 +535,6 @@ XS(XS_version_boolean) XS(XS_version_noop) { dXSARGS; - (void)cv; if (items < 1) Perl_croak(aTHX_ "Usage: version::noop(lobj, ...)"); { @@ -567,7 +558,6 @@ XS(XS_version_noop) XS(XS_version_is_alpha) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: version::is_alpha(lobj)"); SP -= items; @@ -597,7 +587,6 @@ XS(XS_version_is_alpha) XS(XS_version_qv) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: version::qv(ver)"); SP -= items; @@ -635,7 +624,6 @@ XS(XS_version_qv) XS(XS_utf8_is_utf8) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: utf8::is_utf8(sv)"); { @@ -653,7 +641,6 @@ XS(XS_utf8_is_utf8) XS(XS_utf8_valid) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: utf8::valid(sv)"); { @@ -673,7 +660,6 @@ XS(XS_utf8_valid) XS(XS_utf8_encode) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: utf8::encode(sv)"); { @@ -687,7 +673,6 @@ XS(XS_utf8_encode) XS(XS_utf8_decode) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: utf8::decode(sv)"); { @@ -702,7 +687,6 @@ XS(XS_utf8_decode) XS(XS_utf8_upgrade) { dXSARGS; - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: utf8::upgrade(sv)"); { @@ -719,7 +703,6 @@ XS(XS_utf8_upgrade) XS(XS_utf8_downgrade) { dXSARGS; - (void)cv; if (items < 1 || items > 2) Perl_croak(aTHX_ "Usage: utf8::downgrade(sv, failok=0)"); { @@ -737,7 +720,6 @@ XS(XS_utf8_native_to_unicode) { dXSARGS; const UV uv = SvUV(ST(0)); - (void)cv; if (items > 1) Perl_croak(aTHX_ "Usage: utf8::native_to_unicode(sv)"); @@ -750,7 +732,6 @@ XS(XS_utf8_unicode_to_native) { dXSARGS; const UV uv = SvUV(ST(0)); - (void)cv; if (items > 1) Perl_croak(aTHX_ "Usage: utf8::unicode_to_native(sv)"); @@ -763,7 +744,6 @@ XS(XS_Internals_SvREADONLY) /* This is dangerous stuff. */ { dXSARGS; SV *sv = SvRV(ST(0)); - (void)cv; if (items == 1) { if (SvREADONLY(sv)) @@ -789,7 +769,6 @@ XS(XS_Internals_SvREFCNT) /* This is dangerous stuff. */ { dXSARGS; SV *sv = SvRV(ST(0)); - (void)cv; if (items == 1) XSRETURN_IV(SvREFCNT(sv) - 1); /* Minus the ref created for us. */ @@ -805,7 +784,6 @@ XS(XS_Internals_hv_clear_placehold) { dXSARGS; HV *hv = (HV *) SvRV(ST(0)); - (void)cv; if (items != 1) Perl_croak(aTHX_ "Usage: UNIVERSAL::hv_clear_placeholders(hv)"); @@ -815,13 +793,11 @@ XS(XS_Internals_hv_clear_placehold) XS(XS_Regexp_DESTROY) { - (void)cv; } XS(XS_PerlIO_get_layers) { dXSARGS; - (void)cv; if (items < 1 || items % 2 == 0) Perl_croak(aTHX_ "Usage: PerlIO_get_layers(filehandle[,args])"); #ifdef USE_PERLIO @@ -949,7 +925,6 @@ XS(XS_Internals_hash_seed) /* Using dXSARGS would also have dITEM and dSP, * which define 2 unused local variables. */ dMARK; dAX; - (void)cv; XSRETURN_UV(PERL_HASH_SEED); } @@ -958,14 +933,12 @@ XS(XS_Internals_rehash_seed) /* Using dXSARGS would also have dITEM and dSP, * which define 2 unused local variables. */ dMARK; dAX; - (void)cv; XSRETURN_UV(PL_rehash_seed); } XS(XS_Internals_HvREHASH) /* Subject to change */ { dXSARGS; - (void)cv; if (SvROK(ST(0))) { const HV *hv = (HV *) SvRV(ST(0)); if (items == 1 && SvTYPE(hv) == SVt_PVHV) { |