diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-21 16:04:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-21 16:04:21 +0100 |
commit | d155d7a8519987361169459b8d464ae1caef5e9c (patch) | |
tree | 26d437fd67b33ca1b57aca568d4da40151bc9a81 /src/window.c | |
parent | 162b71479bd4dcdb3a2ef9198a1444f6f99e6843 (diff) | |
download | vim-git-d155d7a8519987361169459b8d464ae1caef5e9c.tar.gz |
patch 8.1.0615: get_tv function names are not consistentv8.1.0615
Problem: Get_tv function names are not consistent.
Solution: Rename to tv_get.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/window.c b/src/window.c index e8e816b83..cba9785c3 100644 --- a/src/window.c +++ b/src/window.c @@ -6867,7 +6867,7 @@ match_add( subli = subl->lv_first; if (subli == NULL) goto fail; - lnum = get_tv_number_chk(&subli->li_tv, &error); + lnum = tv_get_number_chk(&subli->li_tv, &error); if (error == TRUE) goto fail; if (lnum == 0) @@ -6879,13 +6879,13 @@ match_add( subli = subli->li_next; if (subli != NULL) { - col = get_tv_number_chk(&subli->li_tv, &error); + col = tv_get_number_chk(&subli->li_tv, &error); if (error == TRUE) goto fail; subli = subli->li_next; if (subli != NULL) { - len = get_tv_number_chk(&subli->li_tv, &error); + len = tv_get_number_chk(&subli->li_tv, &error); if (error == TRUE) goto fail; } @@ -7132,7 +7132,7 @@ win_getid(typval_T *argvars) if (argvars[0].v_type == VAR_UNKNOWN) return curwin->w_id; - winnr = get_tv_number(&argvars[0]); + winnr = tv_get_number(&argvars[0]); if (winnr > 0) { if (argvars[1].v_type == VAR_UNKNOWN) @@ -7140,7 +7140,7 @@ win_getid(typval_T *argvars) else { tabpage_T *tp; - int tabnr = get_tv_number(&argvars[1]); + int tabnr = tv_get_number(&argvars[1]); FOR_ALL_TABPAGES(tp) if (--tabnr == 0) @@ -7164,7 +7164,7 @@ win_gotoid(typval_T *argvars) { win_T *wp; tabpage_T *tp; - int id = get_tv_number(&argvars[0]); + int id = tv_get_number(&argvars[0]); FOR_ALL_TAB_WINDOWS(tp, wp) if (wp->w_id == id) @@ -7182,7 +7182,7 @@ win_id2tabwin(typval_T *argvars, list_T *list) tabpage_T *tp; int winnr = 1; int tabnr = 1; - int id = get_tv_number(&argvars[0]); + int id = tv_get_number(&argvars[0]); FOR_ALL_TABPAGES(tp) { @@ -7208,7 +7208,7 @@ win_id2wp(typval_T *argvars) { win_T *wp; tabpage_T *tp; - int id = get_tv_number(&argvars[0]); + int id = tv_get_number(&argvars[0]); FOR_ALL_TAB_WINDOWS(tp, wp) if (wp->w_id == id) @@ -7222,7 +7222,7 @@ win_id2win(typval_T *argvars) { win_T *wp; int nr = 1; - int id = get_tv_number(&argvars[0]); + int id = tv_get_number(&argvars[0]); FOR_ALL_WINDOWS(wp) { @@ -7238,7 +7238,7 @@ win_findbuf(typval_T *argvars, list_T *list) { win_T *wp; tabpage_T *tp; - int bufnr = get_tv_number(&argvars[0]); + int bufnr = tv_get_number(&argvars[0]); FOR_ALL_TAB_WINDOWS(tp, wp) if (wp->w_buffer->b_fnum == bufnr) |