summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-03 20:58:09 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-03 20:58:09 +0000
commitd277572a6346d5f51f7cc9aef51be155e4b63a19 (patch)
tree3ac35e79f684cd67caf1b0ee86be0e3ff2cdc215 /xsutils.c
parent9a3fb6522b161a2f761167a3e37e9407a2011a9e (diff)
downloadperl-d277572a6346d5f51f7cc9aef51be155e4b63a19.tar.gz
Change dXSTARGET to dXSTARG as recommended by Spider Boardman.
p4raw-id: //depot/perl@23735
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/xsutils.c b/xsutils.c
index 9844b0e398..f8527a283c 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -239,11 +239,7 @@ XS(XS_attributes__guess_stash)
{
dXSARGS;
SV *rv, *sv;
-#ifdef dXSTARGET
- dXSTARGET;
-#else
- SV * TARG = sv_newmortal();
-#endif
+ dXSTARG;
if (items != 1) {
usage:
@@ -287,9 +283,7 @@ usage:
sv_setpv(TARG, HvNAME(stash));
}
-#ifdef dXSTARGET
SvSETMAGIC(TARG);
-#endif
XSRETURN(1);
}
@@ -297,11 +291,7 @@ XS(XS_attributes_reftype)
{
dXSARGS;
SV *rv, *sv;
-#ifdef dXSTARGET
- dXSTARGET;
-#else
- SV * TARG = sv_newmortal();
-#endif
+ dXSTARG;
if (items != 1) {
usage:
@@ -317,9 +307,7 @@ usage:
goto usage;
sv = SvRV(rv);
sv_setpv(TARG, sv_reftype(sv, 0));
-#ifdef dXSTARGET
SvSETMAGIC(TARG);
-#endif
XSRETURN(1);
}
@@ -327,11 +315,7 @@ usage:
XS(XS_attributes__warn_reserved)
{
dXSARGS;
-#ifdef dXSTARGET
- dXSTARGET;
-#else
- SV * TARG = sv_newmortal();
-#endif
+ dXSTARG;
if (items != 0) {
Perl_croak(aTHX_
@@ -341,9 +325,7 @@ XS(XS_attributes__warn_reserved)
EXTEND(SP,1);
ST(0) = TARG;
sv_setiv(TARG, ckWARN(WARN_RESERVED) != 0);
-#ifdef dXSTARGET
SvSETMAGIC(TARG);
-#endif
XSRETURN(1);
}