diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2009-03-09 07:12:48 +0000 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2009-07-17 23:06:23 +0000 |
commit | 6cae5e1dc6b32b593342f1ddc1cc4c7547b07bc7 (patch) | |
tree | 3052c02a3de9603d35960482ad334a7e6b983da7 /symbol.h | |
parent | Clean up and split declaration_specifiers() (diff) | |
download | sparse-6cae5e1dc6b32b593342f1ddc1cc4c7547b07bc7.tar.gz sparse-6cae5e1dc6b32b593342f1ddc1cc4c7547b07bc7.tar.bz2 sparse-6cae5e1dc6b32b593342f1ddc1cc4c7547b07bc7.zip |
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>
Diffstat (limited to 'symbol.h')
-rw-r--r-- | symbol.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ struct symbol_op { int (*args)(struct expression *); /* keywords */ - struct token *(*declarator)(struct token *token, struct ctype *ctype); + struct token *(*declarator)(struct token *token, struct decl_state *ctx); struct token *(*statement)(struct token *token, struct statement *stmt); struct token *(*toplevel)(struct token *token, struct symbol_list **list); struct token *(*attribute)(struct token *token, struct symbol *attr, struct ctype *ctype); |