mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-02 10:13:35 +00:00
Use thread_safe_file
This commit is contained in:
@@ -1387,7 +1387,7 @@ gb_internal void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags
|
||||
}
|
||||
}
|
||||
|
||||
if (is_strict_style(ast_file(node))) {
|
||||
if (is_strict_style(node->thread_safe_file())) {
|
||||
Token stok = ss->token;
|
||||
for_array(i, bs->stmts) {
|
||||
Ast *stmt = bs->stmts[i];
|
||||
@@ -1663,7 +1663,7 @@ gb_internal void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_
|
||||
}
|
||||
}
|
||||
|
||||
if (is_strict_style(ast_file(node))) {
|
||||
if (is_strict_style(node->thread_safe_file())) {
|
||||
Token stok = ss->token;
|
||||
for_array(i, bs->stmts) {
|
||||
Ast *stmt = bs->stmts[i];
|
||||
|
||||
@@ -104,7 +104,7 @@ gb_internal bool ast_file_vet_explicit_allocators(AstFile *f) {
|
||||
}
|
||||
|
||||
gb_internal bool file_allow_newline(AstFile *f) {
|
||||
bool is_strict = is_strict_style(f) || ast_file_vet_style(f)
|
||||
bool is_strict = is_strict_style(f) || ast_file_vet_style(f);
|
||||
return !is_strict;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user