From ecf81c3f20e9f4e2c2a7d83195b8c0f71d09277d Mon Sep 17 00:00:00 2001 From: Scott Prager Date: Wed, 19 Nov 2014 14:44:45 -0500 Subject: strings/memory: constify and func_attr. Fix MB_COPY_cHAR() to accept const pointers. --- src/nvim/charset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/charset.c') 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] == '\\' -- cgit