diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-09 14:16:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-09 14:16:56 +0100 |
| commit | 886ee66e7fcabbd09c20fd55d98051e3854dfd76 (patch) | |
| tree | 42009ae0ef71a2c755eb375416143a77d4240c77 /src/parser.hpp | |
| parent | 68b70a21831b3128828357e8af366a377283fa80 (diff) | |
Cache files, env, and args
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 521fd7a37..86b3393af 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -140,6 +140,8 @@ struct AstFile { // This is effectively a queue but does not require any multi-threading capabilities Array<Ast *> delayed_decls_queues[AstDelayQueue_COUNT]; + std::atomic<isize> seen_load_directive_count; + #define PARSER_MAX_FIX_COUNT 6 isize fix_count; TokenPos fix_prev_pos; @@ -210,6 +212,8 @@ struct Parser { std::atomic<isize> total_token_count; std::atomic<isize> total_line_count; + std::atomic<isize> total_seen_load_directive_count; + // TODO(bill): What should this mutex be per? // * Parser // * Package |