aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2009-03-11 07:08:15 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-18 05:30:09 +0000
commit8de386390c2028ccaea4ac7e39aa915b6ec6bf94 (patch)
treed6bb1a0570875c5ac136b2a59b43e48262e38ad3 /parse.h
parentFix __label__ handling (diff)
downloadsparse-8de386390c2028ccaea4ac7e39aa915b6ec6bf94.tar.gz
sparse-8de386390c2028ccaea4ac7e39aa915b6ec6bf94.tar.bz2
sparse-8de386390c2028ccaea4ac7e39aa915b6ec6bf94.zip
Simplify get_number_value() and ctype_integer()
There's no point whatsoever in constructing modifiers for chosen type when decoding integer constant only to have them picked apart by ctype_integer(). Seeing that the former is the only caller of the latter these days, we can bloody well just pass the rank and signedness explicitly and save a lot of efforts. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Christopher Li <chrisl@hera.kernel.org>
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.h b/parse.h
index 26dc624..02b8585 100644
--- a/parse.h
+++ b/parse.h
@@ -127,7 +127,7 @@ extern int show_expression(struct expression *);
extern struct token *external_declaration(struct token *token, struct symbol_list **list);
-extern struct symbol *ctype_integer(unsigned long spec);
+extern struct symbol *ctype_integer(int size, int want_unsigned);
extern void copy_statement(struct statement *src, struct statement *dst);
extern int inline_function(struct expression *expr, struct symbol *sym);