From 71d335e5ccc5c7c37ac40debf78ad3aa096b22d3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 3 Feb 2017 11:39:24 -0500 Subject: implement packed structs closes #183 --- src/parseh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parseh.cpp') diff --git a/src/parseh.cpp b/src/parseh.cpp index 94f430cdfa..9a83e0d6b1 100644 --- a/src/parseh.cpp +++ b/src/parseh.cpp @@ -720,7 +720,7 @@ static TypeTableEntry *resolve_enum_decl(Context *c, const EnumDecl *enum_decl) const EnumDecl *enum_def = enum_decl->getDefinition(); if (!enum_def) { TypeTableEntry *enum_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, - ContainerKindEnum, c->source_node, buf_ptr(full_type_name), true); + ContainerKindEnum, c->source_node, buf_ptr(full_type_name), ContainerLayoutExtern); enum_type->data.enumeration.zero_bits_known = true; c->enum_type_table.put(bare_name, enum_type); c->decl_table.put(enum_decl, enum_type); @@ -745,7 +745,7 @@ static TypeTableEntry *resolve_enum_decl(Context *c, const EnumDecl *enum_decl) if (pure_enum) { TypeTableEntry *enum_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, - ContainerKindEnum, c->source_node, buf_ptr(full_type_name), true); + ContainerKindEnum, c->source_node, buf_ptr(full_type_name), ContainerLayoutExtern); c->enum_type_table.put(bare_name, enum_type); c->decl_table.put(enum_decl, enum_type); @@ -885,7 +885,7 @@ static TypeTableEntry *resolve_record_decl(Context *c, const RecordDecl *record_ TypeTableEntry *struct_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, - ContainerKindStruct, c->source_node, buf_ptr(full_type_name), true); + ContainerKindStruct, c->source_node, buf_ptr(full_type_name), ContainerLayoutExtern); struct_type->data.structure.zero_bits_known = true; c->struct_type_table.put(bare_name, struct_type); -- cgit v1.2.3