diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-08-30 18:39:29 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-08-30 18:39:29 +0100 |
| commit | a06f70d5d95bb7889bf9e8b920d70fd10daf7c12 (patch) | |
| tree | 59e9577fa42612de96849ee4ce6d8bbd2b38c9b6 /src/checker/type.cpp | |
| parent | 0eaf7bd830dcda6e00f80eefed36bdf7beb02d5d (diff) | |
Better `using`; foreign system libraries; optional semicolons
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp index bd1ff223e..d5cef4b07 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -107,18 +107,22 @@ struct Type { // Theses are arrays Entity **fields; // Entity_Variable isize field_count; // == offset_count + AstNode *node; + i64 * offsets; b32 are_offsets_set; b32 is_packed; Entity **other_fields; // Entity_Constant or Entity_TypeName isize other_field_count; + } Struct; struct { - // IMPORTANT HACK(bill): The positions of fields and field_count + // IMPORTANT HACK(bill): The positions of fields, field_count, and node // must be same for Struct and Union Entity **fields; // Entity_Variable isize field_count; + AstNode *node; } Union; struct { Type *elem; } Pointer; struct { |