diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 14:51:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 14:51:28 -0400 |
| commit | 7f6683269ce689a83b9c6e1fae15e0cc60351095 (patch) | |
| tree | ab3c80a46b88d8bac383cec5d9854b055a8bdde6 /src | |
| parent | 44d866daf11455b2ddc031501d807dd812c614f6 (diff) | |
Add top-level system modules file for default core modules
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules.c b/src/modules.c index 9c562387..08550f2e 100644 --- a/src/modules.c +++ b/src/modules.c @@ -101,6 +101,9 @@ module_info_t get_used_module_info(ast_t *use) { if (cached) return **cached; const char *name = Match(use, Use)->path; module_info_t *info = new (module_info_t, .name = name); + Path_t tomo_default_modules = + Path$from_text(Texts(Text$from_str(TOMO_PATH), "/lib/tomo_" TOMO_VERSION "/modules.ini")); + read_modules_ini(tomo_default_modules, info); read_modules_ini(Path$sibling(Path$from_str(use->file->filename), Text("modules.ini")), info); read_modules_ini(Path$with_extension(Path$from_str(use->file->filename), Text(":modules.ini"), false), info); Table$set(&cache, &use, &info, cache_type); |
