summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-14 15:38:31 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-14 15:38:31 +0100
commit8f66717a1f835b8194139d158c1e2df8b30c3ef3 (patch)
treea85c2d9df9a47870d35c88ae849510407c670b81 /src/quickfix.c
parentfb95e212a2696e5b1c8b5e6b2984af59fa7ead6f (diff)
downloadvim-git-8f66717a1f835b8194139d158c1e2df8b30c3ef3.tar.gz
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()v8.1.0583
Problem: Using illogical name for get_dict_number()/get_dict_string(). Solution: Rename to start with dict_.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index a8449c9cd..5291fb111 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -6258,16 +6258,16 @@ qf_add_entry_from_dict(
if (first_entry)
did_bufnr_emsg = FALSE;
- filename = get_dict_string(d, (char_u *)"filename", TRUE);
- module = get_dict_string(d, (char_u *)"module", TRUE);
- bufnum = (int)get_dict_number(d, (char_u *)"bufnr");
- lnum = (int)get_dict_number(d, (char_u *)"lnum");
- col = (int)get_dict_number(d, (char_u *)"col");
- vcol = (int)get_dict_number(d, (char_u *)"vcol");
- nr = (int)get_dict_number(d, (char_u *)"nr");
- type = get_dict_string(d, (char_u *)"type", TRUE);
- pattern = get_dict_string(d, (char_u *)"pattern", TRUE);
- text = get_dict_string(d, (char_u *)"text", TRUE);
+ filename = dict_get_string(d, (char_u *)"filename", TRUE);
+ module = dict_get_string(d, (char_u *)"module", TRUE);
+ bufnum = (int)dict_get_number(d, (char_u *)"bufnr");
+ lnum = (int)dict_get_number(d, (char_u *)"lnum");
+ col = (int)dict_get_number(d, (char_u *)"col");
+ vcol = (int)dict_get_number(d, (char_u *)"vcol");
+ nr = (int)dict_get_number(d, (char_u *)"nr");
+ type = dict_get_string(d, (char_u *)"type", TRUE);
+ pattern = dict_get_string(d, (char_u *)"pattern", TRUE);
+ text = dict_get_string(d, (char_u *)"text", TRUE);
if (text == NULL)
text = vim_strsave((char_u *)"");
@@ -6290,7 +6290,7 @@ qf_add_entry_from_dict(
// If the 'valid' field is present it overrules the detected value.
if ((dict_find(d, (char_u *)"valid", -1)) != NULL)
- valid = (int)get_dict_number(d, (char_u *)"valid");
+ valid = (int)dict_get_number(d, (char_u *)"valid");
status = qf_add_entry(qi,
qf_idx,
@@ -6456,7 +6456,7 @@ qf_setprop_title(qf_info_T *qi, int qf_idx, dict_T *what, dictitem_T *di)
return FAIL;
vim_free(qfl->qf_title);
- qfl->qf_title = get_dict_string(what, (char_u *)"title", TRUE);
+ qfl->qf_title = dict_get_string(what, (char_u *)"title", TRUE);
if (qf_idx == qi->qf_curlist)
qf_update_win_titlevar(qi);