aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-05-12 10:27:14 +0100
committerGinger Bill <bill@gingerbill.org>2017-05-12 10:27:14 +0100
commit45eecc0905fa72b17a74b2a258598eae1da10597 (patch)
treea558b74855d8b13b8889448383b962315995cd22 /src/parser.c
parent87f1a62ca4280105eb845e5bae3acd8b8a0a0810 (diff)
Reimplement #ordered again
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parser.c b/src/parser.c
index fb8d5d91b..403fcdda2 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -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));