Parenthesize nd_fl_newline
macro expressions
This commit is contained in:
parent
691d85d342
commit
22f98bb7ca
2
parse.y
2
parse.y
@ -14039,7 +14039,7 @@ reduce_nodes(struct parser_params *p, NODE **body)
|
||||
(reduce_nodes(p, &type(node)->n1), body = &type(node)->n2, 1))
|
||||
|
||||
while (node) {
|
||||
int newline = (int)(nd_fl_newline(node));
|
||||
int newline = (int)nd_fl_newline(node);
|
||||
switch (nd_type(node)) {
|
||||
end:
|
||||
case NODE_NIL:
|
||||
|
@ -1166,9 +1166,9 @@ typedef struct RNode_ERROR {
|
||||
#define NODE_TYPESHIFT 8
|
||||
#define NODE_TYPEMASK (((VALUE)0x7f)<<NODE_TYPESHIFT)
|
||||
|
||||
#define nd_fl_newline(n) (n)->flags & NODE_FL_NEWLINE
|
||||
#define nd_set_fl_newline(n) (n)->flags |= NODE_FL_NEWLINE
|
||||
#define nd_unset_fl_newline(n) (n)->flags &= ~NODE_FL_NEWLINE
|
||||
#define nd_fl_newline(n) ((n)->flags & NODE_FL_NEWLINE)
|
||||
#define nd_set_fl_newline(n) ((n)->flags |= NODE_FL_NEWLINE)
|
||||
#define nd_unset_fl_newline(n) ((n)->flags &= ~NODE_FL_NEWLINE)
|
||||
|
||||
#define nd_type(n) ((int) ((RNODE(n)->flags & NODE_TYPEMASK)>>NODE_TYPESHIFT))
|
||||
#define nd_set_type(n,t) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user