aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-05-02 21:16:09 +0100
committerGinger Bill <bill@gingerbill.org>2017-05-02 21:16:09 +0100
commitcc6282a6e3463dd2b0192789fbd373a6d8f59a3d (patch)
treebebc1e9f5cac3febb75d0ee2b6f8112660754171 /src/parser.c
parent206a3e093c19245e0f8ec7872b7cc36a3d266b55 (diff)
Fix alignment and size bug of enums; Remove #ordered and make the default #ordered.
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 cd8f65652..efa4acb83 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -2745,11 +2745,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));