diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-29 22:48:23 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-29 22:48:23 -0500 |
commit | 3e665efea47911bcbe94485dd35efa4c3062c662 (patch) | |
tree | c5058e31d662c66bc5fb0b701d234f58fb9f7517 /src/nvim/charset.c | |
parent | 75524dbf9ac0013305fa4357066c36f41784a87c (diff) | |
parent | f75de5e671699fbcff93bb9715916a02b5c7b37d (diff) | |
download | rneovim-3e665efea47911bcbe94485dd35efa4c3062c662.tar.gz rneovim-3e665efea47911bcbe94485dd35efa4c3062c662.tar.bz2 rneovim-3e665efea47911bcbe94485dd35efa4c3062c662.zip |
Merge pull request #1497 from splinterofchaos/const-attr
constify and func-attribute memory.c and strings.c
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 bbe80a519c..9e5194a5df 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1855,7 +1855,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 @@ -1869,8 +1869,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] == '\\' |