feat: phase 1 complete - dependency system, cascade unload, pending queue (v1.0.0-pre.1)

This commit is contained in:
2026-03-06 22:13:35 +01:00
parent 6477cde367
commit 2e2c3d5e9e
4 changed files with 85 additions and 17 deletions
+4 -4
View File
@@ -497,18 +497,18 @@ validate_deps:
break;
for (j = 0; j < cascade_count; j++) {
size_t idx = cascade_indices[j];
size_t index = cascade_indices[j];
stk_log(STK_LOG_WARN,
"Unloading '%s': unmet dependencies",
stk_modules[idx].id);
stk_modules[index].id);
build_path(cascade_tmp_path,
sizeof(cascade_tmp_path),
stk_tmp_dir, stk_modules[idx].id);
stk_tmp_dir, stk_modules[index].id);
strncat(cascade_tmp_path, STK_MODULE_EXT,
sizeof(cascade_tmp_path) -
strlen(cascade_tmp_path) - 1);
stk_pending_add(cascade_tmp_path);
stk_module_unload(idx);
stk_module_unload(index);
}
cascade_write = 0;