Reimplement #ordered again

This commit is contained in:
Ginger Bill
2017-05-12 10:27:14 +01:00
parent 87f1a62ca4
commit 45eecc0905
6 changed files with 40 additions and 37 deletions
+5 -5
View File
@@ -2746,11 +2746,11 @@ AstNode *parse_type_or_ident(AstFile *f) {
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
}
is_packed = true;
// } else if (str_eq(tag.string, str_lit("ordered"))) {
// if (is_ordered) {
// syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
// }
// is_ordered = true;
} else if (str_eq(tag.string, str_lit("ordered"))) {
if (is_ordered) {
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
}
is_ordered = true;
} else if (str_eq(tag.string, str_lit("align"))) {
if (align) {
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));