diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-12 22:55:29 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-12 23:04:20 +0200 |
commit | 1d943afe2b8bbdc45b9eabb168bbb5c52d9d6fbf (patch) | |
tree | c0f7f5491276dfe61c85c636f1ca2fad64582cca | |
parent | b125cc05950819625b2e4486fac3a1130e1ba003 (diff) | |
download | sparse-1d943afe2b8bbdc45b9eabb168bbb5c52d9d6fbf.tar.gz |
ctype: keep modifiers & base_type close
In struct ctype, 'modifiers' & 'base_type' are, by far,
the 2 most frequently used members.
However, `base_type`, the most used, is defined as the last one.
Change this by moving `base_type` as the first one.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r-- | symbol.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,11 +96,11 @@ extern struct context *alloc_context(void); DECLARE_PTR_LIST(context_list, struct context); struct ctype { + struct symbol *base_type; unsigned long modifiers; unsigned long alignment; struct context_list *contexts; struct ident *as; - struct symbol *base_type; }; struct decl_state { |