diff options
| author | welinder@troll.com <welinder@troll.com> | 2004-08-17 15:20:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:02:50 -0700 |
| commit | 736cbc34dda3b6b9eae6297865ec6811ea27df83 (patch) | |
| tree | 1d82a50cf20b599c099a66b13368eee7427ac7ca | |
| parent | cbb4be32c7eab4abcf1cd0cbe078768b2a5f0b8e (diff) | |
| download | sparse-dev-736cbc34dda3b6b9eae6297865ec6811ea27df83.tar.gz | |
Mondane cleanups at the level of typos.
| -rw-r--r-- | parse.c | 8 | ||||
| -rw-r--r-- | parse.h | 4 | ||||
| -rw-r--r-- | symbol.c | 4 |
3 files changed, 8 insertions, 8 deletions
@@ -360,7 +360,7 @@ struct token *attribute_specifier(struct token *token, struct ctype *ctype) #define MOD_SPECIALBITS (MOD_STRUCTOF | MOD_UNIONOF | MOD_ENUMOF | MOD_ATTRIBUTE | MOD_TYPEOF) #define MOD_SPECIFIER (MOD_CHAR | MOD_SHORT | MOD_LONG | MOD_LONGLONG | MOD_SIGNED | MOD_UNSIGNED) -struct symbol * ctype_integer(unsigned int spec) +struct symbol * ctype_integer(unsigned long spec) { static struct symbol *const integer_ctypes[][2] = { { &llong_ctype, &ullong_ctype }, @@ -386,7 +386,7 @@ struct symbol * ctype_integer(unsigned int spec) return ctype[0][(spec & MOD_UNSIGNED) != 0]; } -struct symbol * ctype_fp(unsigned int spec) +struct symbol * ctype_fp(unsigned long spec) { if (spec & MOD_LONGLONG) return &ldouble_ctype; @@ -549,7 +549,7 @@ static struct token *declaration_specifiers(struct token *next, struct ctype *ct } if (ctype->base_type == &int_type) { - ctype->base_type = ctype_integer(ctype->modifiers & MOD_SPECIFIER); + ctype->base_type = ctype_integer(ctype->modifiers); ctype->modifiers &= ~MOD_SPECIFIER; return token; } @@ -595,7 +595,7 @@ static struct token *direct_declarator(struct token *token, struct symbol **tree /* * This can be either a parameter list or a grouping. * For the direct (non-abstract) case, we know if must be - * a paramter list if we already saw the identifier. + * a parameter list if we already saw the identifier. * For the abstract case, we know if must be a parameter * list if it is empty or starts with a type. */ @@ -106,8 +106,8 @@ extern void show_statement_list(struct statement_list *, const char *); extern int show_expression(struct expression *); extern void translation_unit(struct token *, struct symbol_list **); -extern struct symbol *ctype_integer(unsigned int spec); -extern struct symbol *ctype_fp(unsigned int spec); +extern struct symbol *ctype_integer(unsigned long spec); +extern struct symbol *ctype_fp(unsigned long spec); extern int match_string_ident(struct ident *, const char *); extern void copy_statement(struct statement *src, struct statement *dst); @@ -475,7 +475,7 @@ struct symbol bool_ctype, void_ctype, type_ctype, string_ctype, ptr_ctype, lazy_ptr_ctype, incomplete_ctype; -struct ctype_declare { +const struct ctype_declare { struct symbol *ptr; unsigned long modifiers; int *bit_size; @@ -586,7 +586,7 @@ void init_symbols(void) void init_ctype(void) { - struct ctype_declare *ctype; + const struct ctype_declare *ctype; ptr_ctype.type = SYM_PTR; lazy_ptr_ctype.type = SYM_PTR; |
