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".
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 43b7e6f..7485112 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -3517,11 +3517,11 @@
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 @@
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",