summaryrefslogtreecommitdiff
path: root/pp.h
diff options
context:
space:
mode:
authorBen Morrow <ben@morrow.me.uk>2009-01-18 08:56:11 +0000
committerBen Morrow <ben@morrow.me.uk>2009-03-25 21:14:04 +0000
commit07fe7c6a9fbc767805839cebb0e0e06dd88b0104 (patch)
tree5b33525d73cb484448e61d656cbbbe9db17a24bd /pp.h
parent180b7b9bf7b919003df56bf402fc3934dc71f196 (diff)
downloadperl-07fe7c6a9fbc767805839cebb0e0e06dd88b0104.tar.gz
Finish the rest of the -X ops.
Diffstat (limited to 'pp.h')
-rw-r--r--pp.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/pp.h b/pp.h
index 5c25b5513b..a0714e9550 100644
--- a/pp.h
+++ b/pp.h
@@ -471,19 +471,20 @@ Does not use C<TARG>. See also C<XPUSHu>, C<mPUSHu> and C<PUSHu>.
#define tryAMAGICunDEREF_var(meth_enum) \
tryAMAGICunW_var(meth_enum,setAGAIN,0,(void)0)
-#define tryAMAGICftest(chr) \
- STMT_START { \
- if (SvAMAGIC(TOPs)) { \
- SV * const tmpsv = amagic_call(TOPs, \
- newSVpvn_flags(&chr, 1, SVs_TEMP), \
- ftest_amg, 0); \
- \
- if (tmpsv) { \
- SPAGAIN; \
- SETs(tmpsv); \
- RETURN; \
- } \
- } \
+#define tryAMAGICftest(chr) \
+ STMT_START { \
+ if (SvAMAGIC(TOPs)) { \
+ const char tmpchr = (chr); \
+ SV * const tmpsv = amagic_call(TOPs, \
+ newSVpvn_flags(&tmpchr, 1, SVs_TEMP), \
+ ftest_amg, 0); \
+ \
+ if (tmpsv) { \
+ SPAGAIN; \
+ SETs(tmpsv); \
+ RETURN; \
+ } \
+ } \
} STMT_END