aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-03-15 10:27:19 +0000
committerRon Yorston <rmy@pobox.com>2019-03-15 10:27:19 +0000
commit996f93243dda87de3140c497624312722f47ffa1 (patch)
tree8c894b5b7414cbd72f02bd309d54ffa62283915a /include
parent79c85ec59075b5ead415a4713bd72445546dcf8e (diff)
downloadbusybox-w32-996f93243dda87de3140c497624312722f47ffa1.tar.gz
busybox-w32-996f93243dda87de3140c497624312722f47ffa1.tar.bz2
busybox-w32-996f93243dda87de3140c497624312722f47ffa1.zip
win32: add function to convert slashes to backslashes
There are now two places where slashes are converted to backslashes throughout a string so it makes sense to create a function to do this. To avoid confusion rename convert_slashes() to bs_to_slash() and call the new function slash_to_bs().
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 7aa2d5cc9..36c2f6805 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -510,7 +510,8 @@ static inline char *auto_win32_extension(const char *p)
510 return s ? auto_string(s) : NULL; 510 return s ? auto_string(s) : NULL;
511} 511}
512 512
513void convert_slashes(char *p) FAST_FUNC; 513void bs_to_slash(char *p) FAST_FUNC;
514void slash_to_bs(char *p) FAST_FUNC;
514size_t remove_cr(char *p, size_t len) FAST_FUNC; 515size_t remove_cr(char *p, size_t len) FAST_FUNC;
515 516
516int err_win_to_posix(void); 517int err_win_to_posix(void);