aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-12 22:55:29 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-12 23:04:20 +0200
commit1d943afe2b8bbdc45b9eabb168bbb5c52d9d6fbf (patch)
treec0f7f5491276dfe61c85c636f1ca2fad64582cca
parentb125cc05950819625b2e4486fac3a1130e1ba003 (diff)
downloadsparse-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbol.h b/symbol.h
index 13e1d90a..0e642df0 100644
--- a/symbol.h
+++ b/symbol.h
@@ -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 {