p4raw-id: //depot/perl@23735
{
dXSARGS;
SV *rv, *sv;
-#ifdef dXSTARGET
- dXSTARGET;
-#else
- SV * TARG = sv_newmortal();
-#endif
+ dXSTARG;
if (items != 1) {
usage:
sv_setpv(TARG, HvNAME(stash));
}
-#ifdef dXSTARGET
SvSETMAGIC(TARG);
-#endif
XSRETURN(1);
}
{
dXSARGS;
SV *rv, *sv;
-#ifdef dXSTARGET
- dXSTARGET;
-#else
- SV * TARG = sv_newmortal();
-#endif
+ dXSTARG;
if (items != 1) {
usage:
goto usage;
sv = SvRV(rv);
sv_setpv(TARG, sv_reftype(sv, 0));
-#ifdef dXSTARGET
SvSETMAGIC(TARG);
-#endif
XSRETURN(1);
}
XS(XS_attributes__warn_reserved)
{
dXSARGS;
-#ifdef dXSTARGET
- dXSTARGET;
-#else
- SV * TARG = sv_newmortal();
-#endif
+ dXSTARG;
if (items != 0) {
Perl_croak(aTHX_
EXTEND(SP,1);
ST(0) = TARG;
sv_setiv(TARG, ckWARN(WARN_RESERVED) != 0);
-#ifdef dXSTARGET
SvSETMAGIC(TARG);
-#endif
XSRETURN(1);
}