From: Robin Barker Date: Wed, 21 Apr 2010 23:37:34 +0000 (+0100) Subject: avoid use of operator name in macro X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9500e8e2396502af05bf3891caf7e5d5cc9dc8d9;p=p5sagit%2Fp5-mst-13.2.git avoid use of operator name in macro --- diff --git a/pp.c b/pp.c index 2c5f69a..3cc8869 100644 --- a/pp.c +++ b/pp.c @@ -2485,14 +2485,14 @@ PP(pp_negate) PP(pp_not) { - dVAR; dSP; tryAMAGICunSET(not); + dVAR; dSP; tryAMAGICunSET_var(not_amg); *PL_stack_sp = boolSV(!SvTRUE(*PL_stack_sp)); return NORMAL; } PP(pp_complement) { - dVAR; dSP; dTARGET; tryAMAGICun(compl); + dVAR; dSP; dTARGET; tryAMAGICun_var(compl_amg); { dTOPss; SvGETMAGIC(sv); diff --git a/pp.h b/pp.h index c36502a..a107dda 100644 --- a/pp.h +++ b/pp.h @@ -450,6 +450,7 @@ Does not use C. See also C, C and C. #define tryAMAGICun_var(meth_enum) tryAMAGICunW_var(meth_enum,SETsvUN,0,RETURN) #define tryAMAGICun(meth) tryAMAGICun_var(CAT2(meth,_amg)) +#define tryAMAGICunSET_var(meth_enum) tryAMAGICunW_var(meth_enum,SETs,0,RETURN) #define tryAMAGICunSET(meth) tryAMAGICunW(meth,SETs,0,RETURN) #define tryAMAGICunTARGET(meth, shift) \ STMT_START { dSP; sp--; /* get TARGET from below PL_stack_sp */ \