diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-15 10:27:19 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-15 10:27:19 +0000 |
commit | 996f93243dda87de3140c497624312722f47ffa1 (patch) | |
tree | 8c894b5b7414cbd72f02bd309d54ffa62283915a /include | |
parent | 79c85ec59075b5ead415a4713bd72445546dcf8e (diff) | |
download | busybox-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.h | 3 |
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 | ||
513 | void convert_slashes(char *p) FAST_FUNC; | 513 | void bs_to_slash(char *p) FAST_FUNC; |
514 | void slash_to_bs(char *p) FAST_FUNC; | ||
514 | size_t remove_cr(char *p, size_t len) FAST_FUNC; | 515 | size_t remove_cr(char *p, size_t len) FAST_FUNC; |
515 | 516 | ||
516 | int err_win_to_posix(void); | 517 | int err_win_to_posix(void); |