diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-05 18:25:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 81b6004928015ced29b0b949e35753977aa17606 (patch) | |
tree | 410690c0ddc59b61bb471fe6cea0dcc71e133745 /include/compiler.h | |
parent | f41317b598e59eefaa912f0d49fe2b1817573d88 (diff) |
Add ast resolving using multiple threads
Fix issue where not all files are parsed
Diffstat (limited to 'include/compiler.h')
-rw-r--r-- | include/compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h index d01c756..d7314cc 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -21,10 +21,12 @@ struct amal_compiler { int usable_thread_count; bool started; amal_mutex mutex; + int resolve_ast_index; }; CHECK_RESULT int amal_compiler_init(amal_compiler *self); CHECK_RESULT int amal_compiler_deinit(amal_compiler *self); +/* Not thread-safe */ CHECK_RESULT int amal_compiler_load_file(amal_compiler *self, BufferView filepath); /* TODO: amal_compiler_unload_file */ |