Skip to content

Commit b2acdae

Browse files
committed
sv.h Convert _svrv to legal name
1 parent 21feb8b commit b2acdae

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

sv.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,20 +1420,20 @@ object type. Exposed to perl code via Internals::SvREADONLY().
14201420
&(((XPVNV*) MUTABLE_PTR(SvANY(_svnvx)))->xnv_u.xnv_nv); \
14211421
}))
14221422
# define SvRV(sv) \
1423-
(*({ SV *const _svrv = MUTABLE_SV(sv); \
1424-
assert(PL_valid_types_RV[SvTYPE(_svrv) & SVt_MASK]); \
1425-
assert(!isGV_with_GP(_svrv)); \
1426-
assert(!(SvTYPE(_svrv) == SVt_PVIO \
1427-
&& !(IoFLAGS(_svrv) & IOf_FAKE_DIRP))); \
1428-
&((_svrv)->sv_u.svu_rv); \
1423+
(*({ SV *const svrv_ = MUTABLE_SV(sv); \
1424+
assert(PL_valid_types_RV[SvTYPE(svrv_) & SVt_MASK]); \
1425+
assert(!isGV_with_GP(svrv_)); \
1426+
assert(!(SvTYPE(svrv_) == SVt_PVIO \
1427+
&& !(IoFLAGS(svrv_) & IOf_FAKE_DIRP))); \
1428+
&((svrv_)->sv_u.svu_rv); \
14291429
}))
14301430
# define SvRV_const(sv) \
1431-
({ const SV *const _svrv = (const SV *)(sv); \
1432-
assert(PL_valid_types_RV[SvTYPE(_svrv) & SVt_MASK]); \
1433-
assert(!isGV_with_GP(_svrv)); \
1434-
assert(!(SvTYPE(_svrv) == SVt_PVIO \
1435-
&& !(IoFLAGS(_svrv) & IOf_FAKE_DIRP))); \
1436-
(_svrv)->sv_u.svu_rv; \
1431+
({ const SV *const svrv_ = (const SV *)(sv); \
1432+
assert(PL_valid_types_RV[SvTYPE(svrv_) & SVt_MASK]); \
1433+
assert(!isGV_with_GP(svrv_)); \
1434+
assert(!(SvTYPE(svrv_) == SVt_PVIO \
1435+
&& !(IoFLAGS(svrv_) & IOf_FAKE_DIRP))); \
1436+
(svrv_)->sv_u.svu_rv; \
14371437
})
14381438
# define SvMAGIC(sv) \
14391439
(*({ const SV *const _svmagic = (const SV *)(sv); \

0 commit comments

Comments
 (0)