diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-03 22:54:32 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-03 22:54:32 -0700 |
commit | 385d7b257acf087e02114c619beee07f2b49cb41 (patch) | |
tree | 3b6d5e74f240e60a97f89046c4324ae4ff075803 /type.h | |
parent | 5b8a2d225ca3777c7b49421182bb5c1faf99ae64 (diff) |
Parse bit-fields
Diffstat (limited to 'type.h')
-rw-r--r-- | type.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; }; |