From b2ea5c74c8e2a26f9d9e8978d41a2368693e5ff7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 1 Mar 2021 09:20:58 +0000 Subject: win32: move is_absolute_path() Make is_absolute_path() a function rather than a macro and move it from ash.c into mingw.c. --- shell/ash.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'shell') 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; #if !ENABLE_PLATFORM_MINGW32 # define is_absolute_path(path) ((path)[0] == '/') -#else -# define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path)) #endif #if !BB_MMU @@ -3028,7 +3026,6 @@ updatepwd(const char *dir) { #if ENABLE_PLATFORM_MINGW32 # define is_path_sep(x) ((x) == '/' || (x) == '\\') -# define is_root(x) (is_path_sep(x[0]) && x[1] == '\0') /* * Due to Windows drive notion, getting pwd is a completely * different thing. Handle it in a separate routine -- cgit v1.2.3-55-g6feb