mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Remove #[...] attribute syntax.
(Not really worth the change)
This commit is contained in:
@@ -173,6 +173,7 @@ Typeid_Kind :: enum u8 {
|
|||||||
Bit_Set,
|
Bit_Set,
|
||||||
Opaque,
|
Opaque,
|
||||||
}
|
}
|
||||||
|
#assert(len(Typeid_Kind) < 32);
|
||||||
|
|
||||||
Typeid_Bit_Field :: bit_field #align align_of(uintptr) {
|
Typeid_Bit_Field :: bit_field #align align_of(uintptr) {
|
||||||
index: 8*size_of(align_of(uintptr)) - 8,
|
index: 8*size_of(align_of(uintptr)) - 8,
|
||||||
|
|||||||
+1
-5
@@ -3851,11 +3851,8 @@ Ast *parse_stmt(AstFile *f) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Token_Hash: {
|
case Token_Hash: {
|
||||||
Token hash_token = expect_token(f, Token_Hash);
|
|
||||||
if (f->curr_token.kind == Token_OpenBracket) {
|
|
||||||
return parse_attribute(f, hash_token, Token_OpenBracket, Token_CloseBracket);
|
|
||||||
} else {
|
|
||||||
Ast *s = nullptr;
|
Ast *s = nullptr;
|
||||||
|
Token hash_token = expect_token(f, Token_Hash);
|
||||||
Token name = expect_token(f, Token_Ident);
|
Token name = expect_token(f, Token_Ident);
|
||||||
String tag = name.string;
|
String tag = name.string;
|
||||||
|
|
||||||
@@ -3906,7 +3903,6 @@ Ast *parse_stmt(AstFile *f) {
|
|||||||
fix_advance_to_next_stmt(f);
|
fix_advance_to_next_stmt(f);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case Token_OpenBrace:
|
case Token_OpenBrace:
|
||||||
|
|||||||
Reference in New Issue
Block a user