aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-03-01 09:20:58 +0000
committerRon Yorston <rmy@pobox.com>2021-03-01 09:20:58 +0000
commitb2ea5c74c8e2a26f9d9e8978d41a2368693e5ff7 (patch)
tree93bafe054a07f805ec2d0d17f930328001710c56 /shell
parentaa1512610a7d5081f0b721e7dc24a95527c07a95 (diff)
downloadbusybox-w32-b2ea5c74c8e2a26f9d9e8978d41a2368693e5ff7.tar.gz
busybox-w32-b2ea5c74c8e2a26f9d9e8978d41a2368693e5ff7.tar.bz2
busybox-w32-b2ea5c74c8e2a26f9d9e8978d41a2368693e5ff7.zip
win32: move is_absolute_path()
Make is_absolute_path() a function rather than a macro and move it from ash.c into mingw.c.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 5c6eb5759..2c99c3ead 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -322,8 +322,6 @@ typedef long arith_t;
322 322
323#if !ENABLE_PLATFORM_MINGW32 323#if !ENABLE_PLATFORM_MINGW32
324# define is_absolute_path(path) ((path)[0] == '/') 324# define is_absolute_path(path) ((path)[0] == '/')
325#else
326# define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path))
327#endif 325#endif
328 326
329#if !BB_MMU 327#if !BB_MMU
@@ -3028,7 +3026,6 @@ updatepwd(const char *dir)
3028{ 3026{
3029#if ENABLE_PLATFORM_MINGW32 3027#if ENABLE_PLATFORM_MINGW32
3030# define is_path_sep(x) ((x) == '/' || (x) == '\\') 3028# define is_path_sep(x) ((x) == '/' || (x) == '\\')
3031# define is_root(x) (is_path_sep(x[0]) && x[1] == '\0')
3032 /* 3029 /*
3033 * Due to Windows drive notion, getting pwd is a completely 3030 * Due to Windows drive notion, getting pwd is a completely
3034 * different thing. Handle it in a separate routine 3031 * different thing. Handle it in a separate routine