aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2009-03-09 07:12:48 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-17 23:06:23 +0000
commit6cae5e1dc6b32b593342f1ddc1cc4c7547b07bc7 (patch)
tree3052c02a3de9603d35960482ad334a7e6b983da7 /symbol.h
parentClean up and split declaration_specifiers() (diff)
downloadsparse-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbol.h b/symbol.h
index 07da99c..fd75631 100644
--- a/symbol.h
+++ b/symbol.h
@@ -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);