diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-08-14 18:11:49 -0700 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-08-14 20:02:56 -0700 |
commit | 8ca73af85a2351b99e0d19564548dd35ccf61011 (patch) | |
tree | 721de6856ab032da1d28e367a76559fc5b936a92 /all.h | |
parent | faa084cca9c764e86c2751109352a599a8782b8a (diff) | |
download | roux-8ca73af85a2351b99e0d19564548dd35ccf61011.tar.gz |
use an enum for aggregate segments
Diffstat (limited to 'all.h')
-rw-r--r-- | all.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/all.h b/all.h index 5a5c3c0..34ad47e 100644 --- a/all.h +++ b/all.h @@ -425,9 +425,14 @@ struct Typ { ulong size; int align; - struct { - uint isflt:1; - uint ispad:1; + struct Seg { + enum { + Spad, + Sint, + Sflt, + Styp, + }; + uint type:2; uint len:30; } seg[NSeg+1]; }; |