aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/charset.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-26 21:08:52 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-26 21:08:52 -0500
commit6bc8c7be3a808f66d2c47bfe463a1346490da7f4 (patch)
tree80d0fde12c759fa9e64e40fae2c2bcad13591398 /src/nvim/charset.c
parent75a1006a20c5be7add44ed709ad34ae9fb3fce7b (diff)
parent5deb06597ce72470a5cc86d4f52ee9b025288228 (diff)
downloadrneovim-6bc8c7be3a808f66d2c47bfe463a1346490da7f4.tar.gz
rneovim-6bc8c7be3a808f66d2c47bfe463a1346490da7f4.tar.bz2
rneovim-6bc8c7be3a808f66d2c47bfe463a1346490da7f4.zip
Merge pull request #1867 from elmart/nonnull-deadcode
Remove deadcode due to nonnullret funcs.
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r--src/nvim/charset.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index 86d6acc60b..6fb5ebf3e4 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -390,19 +390,13 @@ char_u *transstr(char_u *s) FUNC_ATTR_NONNULL_RET
return res;
}
-/// Convert the string "str[orglen]" to do ignore-case comparing. Uses the
-/// current locale.
+/// Convert the string "str[orglen]" to do ignore-case comparing.
+/// Use the current locale.
///
-/// When "buf" is NULL returns an allocated string (NULL for out-of-memory).
-/// Otherwise puts the result in "buf[buflen]".
-///
-/// @param str
-/// @param orglen
-/// @param buf
-/// @param buflen
-///
-/// @return converted string.
+/// When "buf" is NULL, return an allocated string.
+/// Otherwise, put the result in buf, limited by buflen, and return buf.
char_u* str_foldcase(char_u *str, int orglen, char_u *buf, int buflen)
+ FUNC_ATTR_NONNULL_RET
{
garray_T ga;
int i;