aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/charset.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-09-04 02:25:24 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:08:05 +0300
commitc8e63a8db84e9d9f7bd855085a87d93631504fc7 (patch)
tree5c08bf960178f7a4edc7a5f9918dfd6e0424b098 /src/nvim/charset.c
parent50ebd1dff5c4e995c4f7e7980870e43d9defabc6 (diff)
downloadrneovim-c8e63a8db84e9d9f7bd855085a87d93631504fc7.tar.gz
rneovim-c8e63a8db84e9d9f7bd855085a87d93631504fc7.tar.bz2
rneovim-c8e63a8db84e9d9f7bd855085a87d93631504fc7.zip
eval: Move remaining get_tv_string* functions to eval/typval.c
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r--src/nvim/charset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index cb6a9fa43c..6c22108853 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -90,7 +90,6 @@ int buf_init_chartab(buf_T *buf, int global)
{
int c;
int c2;
- char_u *p;
int i;
bool tilde;
bool do_isalpha;
@@ -144,7 +143,8 @@ int buf_init_chartab(buf_T *buf, int global)
// Walk through the 'isident', 'iskeyword', 'isfname' and 'isprint'
// options Each option is a list of characters, character numbers or
// ranges, separated by commas, e.g.: "200-210,x,#-178,-"
- for (i = global ? 0 : 3; i <= 3; ++i) {
+ for (i = global ? 0 : 3; i <= 3; i++) {
+ const char_u *p;
if (i == 0) {
// first round: 'isident'
p = p_isi;
@@ -169,7 +169,7 @@ int buf_init_chartab(buf_T *buf, int global)
}
if (ascii_isdigit(*p)) {
- c = getdigits_int(&p);
+ c = getdigits_int((char_u **)&p);
} else {
c = mb_ptr2char_adv(&p);
}
@@ -179,7 +179,7 @@ int buf_init_chartab(buf_T *buf, int global)
++p;
if (ascii_isdigit(*p)) {
- c2 = getdigits_int(&p);
+ c2 = getdigits_int((char_u **)&p);
} else {
c2 = mb_ptr2char_adv(&p);
}