container: root: remove loading dfi src API headers by default

Because of the nature of the interpreter, these headers should be
loaded/unloaded on an as-needed basis.

This commit is particularly useful for pluggables in that, if the
pluggable requires that the `dfi` API (or API-related implementations)
have certain preprocessor requisites fulfilled for the pluggable, the
API can now be compiled *after* the pluggable has been loaded but also
*before* the pluggable *requires* the use of the API (or API-related).

In other words, without this commit, a pluggable's `#define`s will be
useless *after* the API (or API-related implementations) is loaded and
compiled (at least not without an API reload, but that is not needed).

NOTE: this change does not affect `dfi`'s pluggable auto-(un|re)loading,
as the pluggable will have already been loaded prior to any other `dfi`
API compiling.
This commit is contained in:
2025-12-17 13:18:07 -08:00
parent 0c35fe1edd
commit 6f415bd847

View File

@@ -213,9 +213,6 @@ void rootlogon()
// Load default `dfi` public consumables // Load default `dfi` public consumables
common::load("plugin/common/utility.hh"); common::load("plugin/common/utility.hh");
common::load("macro/common/utility.hh"); common::load("macro/common/utility.hh");
common::load("src/hash.hh");
common::load("src/random.hh");
common::load("src/utility.hh");
} }
#endif // CONTAINER_SRC_ROOT_MACRO_ROOTLOGON_C_ #endif // CONTAINER_SRC_ROOT_MACRO_ROOTLOGON_C_