| ... | ... | @@ -56,22 +56,22 @@ pub const Type = packed struct { |
| 56 | 56 | |
| 57 | 57 | /// For some kinds, Type is immediately followed by extra data |
| 58 | 58 | pub const Kind = enum(u4) { |
| 59 | | Unknown, |
| 60 | | Int, |
| 61 | | Ptr, |
| 62 | | Array, |
| 63 | | Struct, |
| 64 | | Union, |
| 65 | | Enum, |
| 66 | | Fwd, |
| 67 | | Typedef, |
| 68 | | Volatile, |
| 69 | | Const, |
| 70 | | Restrict, |
| 71 | | Func, |
| 72 | | FuncProto, |
| 73 | | Var, |
| 74 | | DataSec, |
| 59 | unknown, |
| 60 | int, |
| 61 | ptr, |
| 62 | array, |
| 63 | structure, |
| 64 | kind_union, |
| 65 | enumeration, |
| 66 | fwd, |
| 67 | typedef, |
| 68 | kind_volatile, |
| 69 | constant, |
| 70 | restrict, |
| 71 | func, |
| 72 | funcProto, |
| 73 | variable, |
| 74 | dataSec, |
| 75 | 75 | }; |
| 76 | 76 | |
| 77 | 77 | /// Int kind is followed by this struct |
| ... | ... | @@ -80,9 +80,9 @@ pub const IntInfo = packed struct { |
| 80 | 80 | unused: u8, |
| 81 | 81 | offset: u8, |
| 82 | 82 | encoding: enum(u4) { |
| 83 | | Signed = 1 << 0, |
| 84 | | Char = 1 << 1, |
| 85 | | Bool = 1 << 2, |
| 83 | signed = 1 << 0, |
| 84 | char = 1 << 1, |
| 85 | boolean = 1 << 2, |
| 86 | 86 | }, |
| 87 | 87 | }; |
| 88 | 88 | |
| ... | ... | @@ -125,15 +125,15 @@ pub const Param = packed struct { |
| 125 | 125 | }; |
| 126 | 126 | |
| 127 | 127 | pub const VarLinkage = enum { |
| 128 | | Static, |
| 129 | | GlobalAllocated, |
| 130 | | GlobalExtern, |
| 128 | static, |
| 129 | global_allocated, |
| 130 | global_extern, |
| 131 | 131 | }; |
| 132 | 132 | |
| 133 | 133 | pub const FuncLinkage = enum { |
| 134 | | Static, |
| 135 | | Global, |
| 136 | | Extern, |
| 134 | static, |
| 135 | global, |
| 136 | external, |
| 137 | 137 | }; |
| 138 | 138 | |
| 139 | 139 | /// Var kind is followd by a single Var struct to describe additional |