diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-10 21:29:49 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-10 21:29:49 +0100 |
| commit | ed8a6f872dbcd8b195940dec40a0d86d59f11eaa (patch) | |
| tree | bbf4d7fc301a432583f8f2121742a83c1d4cc6af /src/parser.hpp | |
| parent | 0a61d4bf2b2d6e8c8d0c92410f6dcfd2b6046f86 (diff) | |
Move things around for sanity checking for multithread preparation
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index ad2b8c260..b14e336c3 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -162,16 +162,18 @@ struct AstPackage { struct Parser { - String init_fullpath; - StringSet imported_files; // fullpath - StringMap<AstPackage *> package_map; // Key(package name) - Array<AstPackage *> packages; - Array<ImportedPackage> package_imports; - isize file_to_process_count; - isize total_token_count; - isize total_line_count; - gbMutex file_add_mutex; - gbMutex file_decl_mutex; + String init_fullpath; + StringSet imported_files; // fullpath + StringMap<AstPackage *> package_map; // Key(package name) + Array<AstPackage *> packages; + Array<ImportedPackage> package_imports; + isize file_to_process_count; + isize total_token_count; + isize total_line_count; + gbMutex import_mutex; + gbMutex file_add_mutex; + gbMutex file_decl_mutex; + MPMCQueue<ParseFileError> file_error_queue; }; |