diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-27 17:18:52 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-27 17:18:52 -0800 |
commit | 9524b6e63023b4fae3378cdcf37196df70cffc54 (patch) | |
tree | cbbbf41efb070b29ad58e835afea2e039889f80f /op.h | |
parent | 0b55efd76dc4f6ffbdef0307f4f1cb24f1c0c9f7 (diff) | |
download | perl-9524b6e63023b4fae3378cdcf37196df70cffc54.tar.gz |
op.h: Parenthesize macro args for cUNOPx etc.
Without this, we cannot do cUNOPx(complex expression) without worrying
about precedence issues.
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -419,18 +419,18 @@ struct loop { OP * op_lastop; }; -#define cUNOPx(o) ((UNOP*)o) -#define cUNOP_AUXx(o) ((UNOP_AUX*)o) -#define cBINOPx(o) ((BINOP*)o) -#define cLISTOPx(o) ((LISTOP*)o) -#define cLOGOPx(o) ((LOGOP*)o) -#define cPMOPx(o) ((PMOP*)o) -#define cSVOPx(o) ((SVOP*)o) -#define cPADOPx(o) ((PADOP*)o) -#define cPVOPx(o) ((PVOP*)o) -#define cCOPx(o) ((COP*)o) -#define cLOOPx(o) ((LOOP*)o) -#define cMETHOPx(o) ((METHOP*)o) +#define cUNOPx(o) ((UNOP*)(o)) +#define cUNOP_AUXx(o) ((UNOP_AUX*)(o)) +#define cBINOPx(o) ((BINOP*)(o)) +#define cLISTOPx(o) ((LISTOP*)(o)) +#define cLOGOPx(o) ((LOGOP*)(o)) +#define cPMOPx(o) ((PMOP*)(o)) +#define cSVOPx(o) ((SVOP*)(o)) +#define cPADOPx(o) ((PADOP*)(o)) +#define cPVOPx(o) ((PVOP*)(o)) +#define cCOPx(o) ((COP*)(o)) +#define cLOOPx(o) ((LOOP*)(o)) +#define cMETHOPx(o) ((METHOP*)(o)) #define cUNOP cUNOPx(PL_op) #define cUNOP_AUX cUNOP_AUXx(PL_op) |