Mercurial > vim
diff src/vim9execute.c @ 26672:3516017e5f54 v8.2.3865
patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member
Commit: https://github.com/vim/vim/commit/0d807107b66e0d30d4f338c272962af5714c400e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 21 09:42:09 2021 +0000
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Dec 2021 10:45:04 +0100 |
parents | 4b23672d1f0e |
children | 254fffd11fda |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -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 *inst 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",