summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-05-06 16:21:39 -0400
committerPaul Smith <psmith@gnu.org>2023-05-07 16:51:06 -0400
commit8e0e6c678f3cf1199751e3b097745531ceed34ed (patch)
tree8647293487f21237585ee19b4e5997577716c442 /tests
parent3f28ec2f58c3defebd1d9e66ec0ae653e78d88d5 (diff)
downloadmake-git-8e0e6c678f3cf1199751e3b097745531ceed34ed.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/features/load8
-rw-r--r--tests/scripts/features/loadapi4
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/scripts/features/load b/tests/scripts/features/load
index 3713f944..41333a54 100644
--- a/tests/scripts/features/load
+++ b/tests/scripts/features/load
@@ -25,11 +25,11 @@ char* getenv (const char*);
int plugin_is_GPL_compatible;
-int testload_gmk_setup (gmk_floc *);
-int explicit_setup (gmk_floc *);
+int testload_gmk_setup (unsigned int, gmk_floc *);
+int explicit_setup (unsigned int, gmk_floc *);
int
-testload_gmk_setup (gmk_floc *pos)
+testload_gmk_setup (unsigned int abi, gmk_floc *pos)
{
(void)pos;
gmk_eval ("TESTLOAD = implicit", 0);
@@ -39,7 +39,7 @@ testload_gmk_setup (gmk_floc *pos)
}
int
-explicit_setup (gmk_floc *pos)
+explicit_setup (unsigned int abi, gmk_floc *pos)
{
(void)pos;
gmk_eval ("TESTLOAD = explicit", 0);
diff --git a/tests/scripts/features/loadapi b/tests/scripts/features/loadapi
index a72f1f1b..311260f9 100644
--- a/tests/scripts/features/loadapi
+++ b/tests/scripts/features/loadapi
@@ -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");