From 8e0e6c678f3cf1199751e3b097745531ceed34ed Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 6 May 2023 16:21:39 -0400 Subject: 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. --- tests/scripts/features/load | 8 ++++---- tests/scripts/features/loadapi | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') 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"); -- cgit v1.2.1