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