mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Add #load_directory(path: string) > []runtime.Load_Directory_File
This commit is contained in:
@@ -340,6 +340,19 @@ struct LoadFileCache {
|
||||
StringMap<u64> hashes;
|
||||
};
|
||||
|
||||
|
||||
struct LoadDirectoryFile {
|
||||
String file_name;
|
||||
String data;
|
||||
};
|
||||
|
||||
struct LoadDirectoryCache {
|
||||
String path;
|
||||
gbFileError file_error;
|
||||
Array<LoadFileCache *> files;
|
||||
};
|
||||
|
||||
|
||||
struct GenProcsData {
|
||||
Array<Entity *> procs;
|
||||
RwMutex mutex;
|
||||
@@ -416,6 +429,11 @@ struct CheckerInfo {
|
||||
BlockingMutex instrumentation_mutex;
|
||||
Entity *instrumentation_enter_entity;
|
||||
Entity *instrumentation_exit_entity;
|
||||
|
||||
|
||||
BlockingMutex load_directory_mutex;
|
||||
StringMap<LoadDirectoryCache *> load_directory_cache;
|
||||
PtrMap<Ast *, LoadDirectoryCache *> load_directory_map; // Key: Ast_CallExpr *
|
||||
};
|
||||
|
||||
struct CheckerContext {
|
||||
|
||||
Reference in New Issue
Block a user