aboutsummaryrefslogtreecommitdiff
path: root/type.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-03 22:54:32 -0700
committerMichael Forney <mforney@mforney.org>2019-04-03 22:54:32 -0700
commit385d7b257acf087e02114c619beee07f2b49cb41 (patch)
tree3b6d5e74f240e60a97f89046c4324ae4ff075803 /type.h
parent5b8a2d225ca3777c7b49421182bb5c1faf99ae64 (diff)
Parse bit-fields
Diffstat (limited to 'type.h')
-rw-r--r--type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/type.h b/type.h
index 728806a..c6e0f46 100644
--- a/type.h
+++ b/type.h
@@ -41,10 +41,16 @@ struct param {
struct param *next;
};
+struct bitfield {
+ short before; /* number of bits in the storage unit before the bit-field */
+ short after; /* number of bits in the storage unit after the bit-field */
+};
+
struct member {
char *name;
struct type *type;
uint64_t offset;
+ struct bitfield bits;
struct member *next;
};