mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member
Problem: Vim9: compiler complains about using "try" as a struct member. Solution: Rename "try" to "tryref".
This commit is contained in:
@@ -3517,11 +3517,11 @@ exec_instructions(ectx_T *ectx)
|
||||
trycmd->tcd_frame_idx = ectx->ec_frame_idx;
|
||||
trycmd->tcd_stack_len = ectx->ec_stack.ga_len;
|
||||
trycmd->tcd_catch_idx =
|
||||
iptr->isn_arg.try.try_ref->try_catch;
|
||||
iptr->isn_arg.tryref.try_ref->try_catch;
|
||||
trycmd->tcd_finally_idx =
|
||||
iptr->isn_arg.try.try_ref->try_finally;
|
||||
iptr->isn_arg.tryref.try_ref->try_finally;
|
||||
trycmd->tcd_endtry_idx =
|
||||
iptr->isn_arg.try.try_ref->try_endtry;
|
||||
iptr->isn_arg.tryref.try_ref->try_endtry;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -5670,7 +5670,7 @@ list_instructions(char *pfx, isn_T *instr, int instr_count, ufunc_T *ufunc)
|
||||
|
||||
case ISN_TRY:
|
||||
{
|
||||
try_T *try = &iptr->isn_arg.try;
|
||||
try_T *try = &iptr->isn_arg.tryref;
|
||||
|
||||
if (try->try_ref->try_finally == 0)
|
||||
smsg("%s%4d TRY catch -> %d, endtry -> %d",
|
||||
|
Reference in New Issue
Block a user