aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-02-02 11:43:15 +0000
committerRon Yorston <rmy@pobox.com>2024-02-02 11:43:15 +0000
commit8dee37d53a47b8f96ba609d65d85438ef4e14fea (patch)
tree7fbf1e4c0994651703457364ba86dd7a4fc3450e /include
parente960b0d69d3f954d50e814a6bc4d6e206bde7f66 (diff)
downloadbusybox-w32-8dee37d53a47b8f96ba609d65d85438ef4e14fea.tar.gz
busybox-w32-8dee37d53a47b8f96ba609d65d85438ef4e14fea.tar.bz2
busybox-w32-8dee37d53a47b8f96ba609d65d85438ef4e14fea.zip
win32: rearrange applet override handling
- Rename some functions to be more meaningful. - Adjust conditional compilation to clarify which code is required for 'standalone shell' and 'exec prefers applets' settings. This shouldn't result in any change to the behaviour or size of default builds.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 2f882aa9d..76a107521 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1330,12 +1330,12 @@ int find_applet_by_name(const char *name) FAST_FUNC;
1330void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC; 1330void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC;
1331# if ENABLE_PLATFORM_MINGW32 1331# if ENABLE_PLATFORM_MINGW32
1332# if ENABLE_FEATURE_PREFER_APPLETS || ENABLE_FEATURE_SH_STANDALONE 1332# if ENABLE_FEATURE_PREFER_APPLETS || ENABLE_FEATURE_SH_STANDALONE
1333int is_applet_preferred(const char *name, const char *path) FAST_FUNC; 1333int prefer_applet(const char *name, const char *path) FAST_FUNC;
1334int find_applet_by_name_with_path(const char *name, const char *path) FAST_FUNC; 1334int find_applet_by_name_for_sh(const char *name, const char *path) FAST_FUNC;
1335# endif 1335# endif
1336# else 1336# else
1337# define is_applet_preferred(n, p) (1) 1337# define prefer_applet(n, p) (1)
1338# define find_applet_by_name_with_path(n, p) find_applet_by_name(n) 1338# define find_applet_by_name_for_sh(n, p) find_applet_by_name(n)
1339# endif 1339# endif
1340#endif 1340#endif
1341void show_usage_if_dash_dash_help(int applet_no, char **argv) FAST_FUNC; 1341void show_usage_if_dash_dash_help(int applet_no, char **argv) FAST_FUNC;