Mercurial > vim
comparison src/list.c @ 26534:28745eec1dda v8.2.3796
patch 8.2.3796: the funcexe_T struct members are not named consistently
Commit: https://github.com/vim/vim/commit/851f86b951cdd67ad9cf3149e46169d1375c8d82
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 13 14:26:44 2021 +0000
patch 8.2.3796: the funcexe_T struct members are not named consistently
Problem: The funcexe_T struct members are not named consistently.
Solution: Prefix "fe_" to all the members.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Dec 2021 15:30:03 +0100 |
parents | b18f3b0f317c |
children | 06693d1afc48 |
comparison
equal
deleted
inserted
replaced
26533:88b2affbddd9 | 26534:28745eec1dda |
---|---|
1933 copy_tv(&si1->item->li_tv, &argv[0]); | 1933 copy_tv(&si1->item->li_tv, &argv[0]); |
1934 copy_tv(&si2->item->li_tv, &argv[1]); | 1934 copy_tv(&si2->item->li_tv, &argv[1]); |
1935 | 1935 |
1936 rettv.v_type = VAR_UNKNOWN; // clear_tv() uses this | 1936 rettv.v_type = VAR_UNKNOWN; // clear_tv() uses this |
1937 CLEAR_FIELD(funcexe); | 1937 CLEAR_FIELD(funcexe); |
1938 funcexe.evaluate = TRUE; | 1938 funcexe.fe_evaluate = TRUE; |
1939 funcexe.partial = partial; | 1939 funcexe.fe_partial = partial; |
1940 funcexe.selfdict = sortinfo->item_compare_selfdict; | 1940 funcexe.fe_selfdict = sortinfo->item_compare_selfdict; |
1941 res = call_func(func_name, -1, &rettv, 2, argv, &funcexe); | 1941 res = call_func(func_name, -1, &rettv, 2, argv, &funcexe); |
1942 clear_tv(&argv[0]); | 1942 clear_tv(&argv[0]); |
1943 clear_tv(&argv[1]); | 1943 clear_tv(&argv[1]); |
1944 | 1944 |
1945 if (res == FAIL) | 1945 if (res == FAIL) |
3201 { | 3201 { |
3202 emsg(_(e_missing_function_argument)); | 3202 emsg(_(e_missing_function_argument)); |
3203 return; | 3203 return; |
3204 } | 3204 } |
3205 | 3205 |
3206 vim_memset(&funcexe, 0, sizeof(funcexe)); | 3206 CLEAR_FIELD(funcexe); |
3207 funcexe.evaluate = TRUE; | 3207 funcexe.fe_evaluate = TRUE; |
3208 funcexe.partial = partial; | 3208 funcexe.fe_partial = partial; |
3209 | 3209 |
3210 if (argvars[0].v_type == VAR_LIST) | 3210 if (argvars[0].v_type == VAR_LIST) |
3211 { | 3211 { |
3212 list_T *l = argvars[0].vval.v_list; | 3212 list_T *l = argvars[0].vval.v_list; |
3213 listitem_T *li = NULL; | 3213 listitem_T *li = NULL; |