indent(1): if an identifier can be either a typedef name or as a struct
member, it is taken as the latter
This commit is contained in:
parent
01a206e63c
commit
2364d1a74e
@ -321,6 +321,10 @@ lexi(struct parser_state *state)
|
||||
/* inside parens: cast, param list, offsetof or sizeof */
|
||||
state->cast_mask |= (1 << state->p_l_follow) & ~state->not_cast_mask;
|
||||
}
|
||||
if (state->last_token == period || state->last_token == unary_op) {
|
||||
state->keyword = 0;
|
||||
break;
|
||||
}
|
||||
if (p != NULL && p->rwcode == 3)
|
||||
return (structure);
|
||||
if (state->p_l_follow)
|
||||
|
@ -21,4 +21,7 @@ test(void)
|
||||
char *xxx = firstf(secondf2(p1,
|
||||
p2));
|
||||
}
|
||||
|
||||
rb->allocfunc(1);
|
||||
rb2.allocfunc(7);
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
-ts4 -i4 -di12
|
||||
-ts4 -i4 -di12 -Tallocfunc
|
||||
|
@ -21,4 +21,7 @@ test(void)
|
||||
char *xxx = firstf(secondf2(p1,
|
||||
p2));
|
||||
}
|
||||
|
||||
rb->allocfunc(1);
|
||||
rb2.allocfunc(7);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user