diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-26 23:12:42 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-26 23:12:42 -0400 |
commit | ea483231c57d2acf6f4e17db82d33124526931f9 (patch) | |
tree | b26950291fbe3813b57db732cad9e152f6a6e1bc /src/nvim/charset.c | |
parent | e861af85f89e119193a9e219a4cb766757e28e5a (diff) | |
parent | 191fb638f415a0a1a05eb83a87d87fc9902d7ffe (diff) | |
download | rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.tar.gz rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.tar.bz2 rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.zip |
Merge pull request #4593 from ZyX-I/length-functions
Make some function accept strings with length in place of just strings
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 83e2aaa6e6..d0dc7b66fc 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1794,10 +1794,11 @@ bool vim_isblankline(char_u *lbuf) /// @param nptr Returns the signed result. /// @param unptr Returns the unsigned result. /// @param maxlen Max length of string to check. -void vim_str2nr(char_u *start, int *prep, int *len, int what, - long *nptr, unsigned long *unptr, int maxlen) +void vim_str2nr(const char_u *const start, int *const prep, int *const len, + const int what, long *const nptr, unsigned long *const unptr, + const int maxlen) { - char_u *ptr = start; + const char_u *ptr = start; int pre = 0; // default is decimal bool negative = false; unsigned long un = 0; |