diff options
author | James McCoy <jamessan@jamessan.com> | 2017-02-22 17:07:47 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-02-22 19:23:20 -0500 |
commit | bc76ce2c4f26a1ceabc8ba7dc8d5ff3378648a40 (patch) | |
tree | b5b295f6a593f77f6995e6d6478afdf37043b11d /src/nvim/charset.c | |
parent | 10c9ecc2117a69d2b83e983082f53c1779547035 (diff) | |
parent | ddab4661f7acad985096138b0c29a2b7e569022a (diff) | |
download | rneovim-bc76ce2c4f26a1ceabc8ba7dc8d5ff3378648a40.tar.gz rneovim-bc76ce2c4f26a1ceabc8ba7dc8d5ff3378648a40.tar.bz2 rneovim-bc76ce2c4f26a1ceabc8ba7dc8d5ff3378648a40.zip |
Merge remote-tracking branch 'origin/master' into lambda
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 4d150c3230..e33e002787 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1373,17 +1373,17 @@ void getvcols(win_T *wp, pos_T *pos1, pos_T *pos2, colnr_T *left, /// skipwhite: skip over ' ' and '\t'. /// -/// @param q +/// @param[in] q String to skip in. /// /// @return Pointer to character after the skipped whitespace. -char_u* skipwhite(char_u *q) +char_u *skipwhite(const char_u *q) + FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { - char_u *p = q; + const char_u *p = q; while (ascii_iswhite(*p)) { - // skip to next non-white p++; } - return p; + return (char_u *)p; } /// skip over digits |