Pass decl_state down to ->declarator() and handle_attributes()
commit6cae5e1dc6b32b593342f1ddc1cc4c7547b07bc7
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 9 Mar 2009 07:12:48 +0000 (9 07:12 +0000)
committerChristopher Li <sparse@chrisli.org>
Fri, 17 Jul 2009 23:06:23 +0000 (17 23:06 +0000)
tree3052c02a3de9603d35960482ad334a7e6b983da7
parentea73434b5cd6e4d7c7dd37e9f546795f0427c81b
Pass decl_state down to ->declarator() and handle_attributes()

Other than for attributes of labels (completely ignored, and we can
simply use skip_attributes() there), all callers of handle_attributes
actually get ctype == &ctx->ctype for some ctx.  Ditto for ->declarator().
Switch both to passing ctx instead (has to be done at the same time,
since we have handle_attributes() called from ->declarator() for struct).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
parse.c
symbol.h