summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-18 07:06:15 +0000
committermidipix <writeonce@midipix.org>2024-02-18 07:37:54 +0000
commit4b56dee0873d57ed2a0891a4a2370d20d46845c3 (patch)
tree36b1645696d42bed98625964f471ad8cbcdb19fe /src/driver
parentd603a45e5710cc897681c3395188d7376593dcbe (diff)
downloadslibtool-4b56dee0873d57ed2a0891a4a2370d20d46845c3.tar.bz2
slibtool-4b56dee0873d57ed2a0891a4a2370d20d46845c3.tar.xz
code base: set the visilbity of internal library interfaces to hidden.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c18
-rw-r--r--src/driver/slbt_host_params.c9
-rw-r--r--src/driver/slbt_link_params.c3
-rw-r--r--src/driver/slbt_split_argv.c3
-rw-r--r--src/driver/slbt_version_info.c3
5 files changed, 20 insertions, 16 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 11d4e4d..d2589b7 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -92,13 +92,13 @@ static void slbt_output_raw_vector(int fderr, char ** argv, char ** envp, bool f
slbt_dprintf(fderr,"%s\n\n",fcolor ? aclr_reset : "");
}
-const char * slbt_program_name(const char * path)
+slbt_hidden const char * slbt_program_name(const char * path)
{
return argv_program_name(path);
}
-int slbt_optv_init(
+slbt_hidden int slbt_optv_init(
const struct argv_option options[],
const struct argv_option ** optv)
{
@@ -106,7 +106,7 @@ int slbt_optv_init(
}
-void slbt_argv_scan(
+slbt_hidden void slbt_argv_scan(
char ** argv,
const struct argv_option ** optv,
struct argv_ctx * ctx,
@@ -116,7 +116,7 @@ void slbt_argv_scan(
}
-struct argv_meta * slbt_argv_get(
+slbt_hidden struct argv_meta * slbt_argv_get(
char ** argv,
const struct argv_option ** optv,
int flags,
@@ -126,13 +126,13 @@ struct argv_meta * slbt_argv_get(
}
-void slbt_argv_free(struct argv_meta * meta)
+slbt_hidden void slbt_argv_free(struct argv_meta * meta)
{
return argv_free(meta);
}
-void slbt_argv_usage(
+slbt_hidden void slbt_argv_usage(
int fd,
const char * header,
const struct argv_option ** optv,
@@ -142,7 +142,7 @@ void slbt_argv_usage(
}
-void slbt_argv_usage_plain(
+slbt_hidden void slbt_argv_usage_plain(
int fd,
const char * header,
const struct argv_option ** optv,
@@ -152,7 +152,7 @@ void slbt_argv_usage_plain(
}
-uint64_t slbt_argv_flags(uint64_t flags)
+slbt_hidden uint64_t slbt_argv_flags(uint64_t flags)
{
uint32_t ret = 0;
@@ -195,7 +195,7 @@ static int slbt_free_argv_buffer(
return -1;
}
-int slbt_driver_usage(
+slbt_hidden int slbt_driver_usage(
int fdout,
const char * program,
const char * arg,
diff --git a/src/driver/slbt_host_params.c b/src/driver/slbt_host_params.c
index 9fe8153..d708028 100644
--- a/src/driver/slbt_host_params.c
+++ b/src/driver/slbt_host_params.c
@@ -16,6 +16,7 @@
#include <slibtool/slibtool.h>
#include "slibtool_driver_impl.h"
#include "slibtool_errinfo_impl.h"
+#include "slibtool_visibility_impl.h"
#include "slibtool_ar_impl.h"
@@ -130,7 +131,7 @@ static void slbt_spawn_ar(char ** argv, int * ecode)
}
-int slbt_init_host_params(
+slbt_hidden int slbt_init_host_params(
const struct slbt_driver_ctx * dctx,
const struct slbt_common_ctx * cctx,
struct slbt_host_strs * drvhost,
@@ -498,7 +499,7 @@ static void slbt_free_host_tool_argv(char ** argv)
free(argv);
}
-void slbt_free_host_params(struct slbt_host_strs * host)
+slbt_hidden void slbt_free_host_params(struct slbt_host_strs * host)
{
if (host->machine)
free(host->machine);
@@ -538,7 +539,7 @@ void slbt_free_host_params(struct slbt_host_strs * host)
}
-void slbt_init_flavor_settings(
+slbt_hidden void slbt_init_flavor_settings(
struct slbt_common_ctx * cctx,
const struct slbt_host_params * ahost,
struct slbt_flavor_settings * psettings)
@@ -575,7 +576,7 @@ void slbt_init_flavor_settings(
}
-int slbt_init_ldrpath(
+slbt_hidden int slbt_init_ldrpath(
struct slbt_common_ctx * cctx,
struct slbt_host_params * host)
{
diff --git a/src/driver/slbt_link_params.c b/src/driver/slbt_link_params.c
index 080abbe..c12f513 100644
--- a/src/driver/slbt_link_params.c
+++ b/src/driver/slbt_link_params.c
@@ -14,9 +14,10 @@
#include "slibtool_version.h"
#include "slibtool_driver_impl.h"
#include "slibtool_errinfo_impl.h"
+#include "slibtool_visibility_impl.h"
-int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
+slbt_hidden int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
{
const char * program;
const char * libname;
diff --git a/src/driver/slbt_split_argv.c b/src/driver/slbt_split_argv.c
index 601c1ad..db4693a 100644
--- a/src/driver/slbt_split_argv.c
+++ b/src/driver/slbt_split_argv.c
@@ -15,12 +15,13 @@
#include "slibtool_driver_impl.h"
#include "slibtool_objlist_impl.h"
#include "slibtool_errinfo_impl.h"
+#include "slibtool_visibility_impl.h"
#include "slibtool_ar_impl.h"
#include "argv/argv.h"
static char * slbt_default_cargv[] = {"cc",0};
-int slbt_split_argv(
+slbt_hidden int slbt_split_argv(
char ** argv,
uint64_t flags,
struct slbt_split_vector * sargv,
diff --git a/src/driver/slbt_version_info.c b/src/driver/slbt_version_info.c
index e6ce735..bb4a36e 100644
--- a/src/driver/slbt_version_info.c
+++ b/src/driver/slbt_version_info.c
@@ -14,10 +14,11 @@
#include "slibtool_version.h"
#include "slibtool_driver_impl.h"
#include "slibtool_errinfo_impl.h"
+#include "slibtool_visibility_impl.h"
#include "argv/argv.h"
-int slbt_init_version_info(
+slbt_hidden int slbt_init_version_info(
struct slbt_driver_ctx_impl * ictx,
struct slbt_version_info * verinfo)
{