comparison src/vim9execute.c @ 23934:f9a4ede76237 v8.2.2509

patch 8.2.2509: tests fail on s390 build Commit: https://github.com/vim/vim/commit/8d4be8901139f698c7919fd697d82abb1ce41911 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 13 18:33:02 2021 +0100 patch 8.2.2509: tests fail on s390 build Problem: Tests fail on s390 build. Solution: Initialize trycmd_T.
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Feb 2021 18:45:04 +0100
parents 5e5780e3f75d
children 03819ebd3e6d
comparison
equal deleted inserted replaced
23933:0ce2f119c5b9 23934:f9a4ede76237
2561 goto failed; 2561 goto failed;
2562 trycmd = ((trycmd_T *)ectx.ec_trystack.ga_data) 2562 trycmd = ((trycmd_T *)ectx.ec_trystack.ga_data)
2563 + ectx.ec_trystack.ga_len; 2563 + ectx.ec_trystack.ga_len;
2564 ++ectx.ec_trystack.ga_len; 2564 ++ectx.ec_trystack.ga_len;
2565 ++trylevel; 2565 ++trylevel;
2566 CLEAR_POINTER(trycmd);
2566 trycmd->tcd_frame_idx = ectx.ec_frame_idx; 2567 trycmd->tcd_frame_idx = ectx.ec_frame_idx;
2567 trycmd->tcd_stack_len = ectx.ec_stack.ga_len; 2568 trycmd->tcd_stack_len = ectx.ec_stack.ga_len;
2568 trycmd->tcd_catch_idx = iptr->isn_arg.try.try_catch; 2569 trycmd->tcd_catch_idx = iptr->isn_arg.try.try_catch;
2569 trycmd->tcd_finally_idx = iptr->isn_arg.try.try_finally; 2570 trycmd->tcd_finally_idx = iptr->isn_arg.try.try_finally;
2570 trycmd->tcd_caught = FALSE;
2571 trycmd->tcd_return = FALSE;
2572 } 2571 }
2573 break; 2572 break;
2574 2573
2575 case ISN_PUSHEXC: 2574 case ISN_PUSHEXC:
2576 if (current_exception == NULL) 2575 if (current_exception == NULL)
2668 while (ectx.ec_stack.ga_len > trycmd->tcd_stack_len) 2667 while (ectx.ec_stack.ga_len > trycmd->tcd_stack_len)
2669 { 2668 {
2670 --ectx.ec_stack.ga_len; 2669 --ectx.ec_stack.ga_len;
2671 clear_tv(STACK_TV_BOT(0)); 2670 clear_tv(STACK_TV_BOT(0));
2672 } 2671 }
2673 if (trycmd->tcd_cont) 2672 if (trycmd->tcd_cont != 0)
2674 // handling :continue: jump to outer try block or 2673 // handling :continue: jump to outer try block or
2675 // start of the loop 2674 // start of the loop
2676 ectx.ec_iidx = trycmd->tcd_cont; 2675 ectx.ec_iidx = trycmd->tcd_cont;
2677 } 2676 }
2678 } 2677 }