diff options
author | Scott Prager <splinterofchaos@gmail.com> | 2014-11-19 14:44:45 -0500 |
---|---|---|
committer | Scott Prager <splinterofchaos@gmail.com> | 2014-11-27 14:38:26 -0500 |
commit | ecf81c3f20e9f4e2c2a7d83195b8c0f71d09277d (patch) | |
tree | e042a7797a7d1c24b369295f50dbfe237985523b /src/nvim/charset.c | |
parent | 763b62698a4b249debc2c0f9abb9869f7dd669ec (diff) | |
download | rneovim-ecf81c3f20e9f4e2c2a7d83195b8c0f71d09277d.tar.gz rneovim-ecf81c3f20e9f4e2c2a7d83195b8c0f71d09277d.tar.bz2 rneovim-ecf81c3f20e9f4e2c2a7d83195b8c0f71d09277d.zip |
strings/memory: constify and func_attr.
Fix MB_COPY_cHAR() to accept const pointers.
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index f3bb3d8c73..c4e5986012 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1850,7 +1850,7 @@ int hexhex2nr(char_u *p) #endif // if defined(FEAT_TERMRESPONSE) || defined(FEAT_GUI_GTK) // || defined(PROTO) -/// Return TRUE if "str" starts with a backslash that should be removed. +/// Return true if "str" starts with a backslash that should be removed. /// For WIN32 this is only done when the character after the /// backslash is not a normal file name character. /// '$' is a valid file name character, we don't remove the backslash before @@ -1864,8 +1864,8 @@ int hexhex2nr(char_u *p) /// /// @param str /// -/// @return TRUE if `str` starts with a backslash that should be removed. -int rem_backslash(char_u *str) +/// @return true if `str` starts with a backslash that should be removed. +bool rem_backslash(const char_u *str) { #ifdef BACKSLASH_IN_FILENAME return str[0] == '\\' |