diff options
author | 2009-03-11 07:08:15 +0000 | |
---|---|---|
committer | 2009-07-18 05:30:09 +0000 | |
commit | 8de386390c2028ccaea4ac7e39aa915b6ec6bf94 (patch) | |
tree | d6bb1a0570875c5ac136b2a59b43e48262e38ad3 /parse.h | |
parent | Fix __label__ handling (diff) | |
download | sparse-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |