Remove the "preview" status from the loaded object feature

Add an ABI version both to the header file and passed to the setup
function.  Unfortunately this itself is an ABI break and I couldn't
find a good way to avoid it.

* NEWS: Announce the ABI is not a preview and the incompatibility.
* doc/make.texi: Remove the preview warnings for object loading.
Document the new ABI version argument.
* src/gnumake.h (GMK_ABI_VERSION): Set the ABI version to 1.
Add comments documenting the format of the setup function.
* src/load.c (setup_func_t): Rename from load_func_t.
(load_file): Pass the ABI version to the setup function.
* tests/scripts/features/load: Rework the setup function.
* tests/scripts/features/loadapi: Ditto.
This commit is contained in:
Paul Smith
2023-05-06 16:21:39 -04:00
parent 3f28ec2f58
commit 8e0e6c678f
7 changed files with 234 additions and 203 deletions

View File

@@ -28,7 +28,7 @@ char *getenv (const char*);
int plugin_is_GPL_compatible;
int testapi_gmk_setup ();
int testapi_gmk_setup (unsigned int abi, const gmk_floc *floc);
static char *
test_eval (const char *buf)
@@ -71,7 +71,7 @@ func_test (const char *funcname, unsigned int argc, char **argv)
}
int
testapi_gmk_setup (const gmk_floc *floc)
testapi_gmk_setup (unsigned int abi, const gmk_floc *floc)
{
const char *verbose = getenv ("TESTAPI_VERBOSE");