comparison src/vim9execute.c @ 23569:754387a3aa35 v8.2.2327

patch 8.2.2327: debugging code included Commit: https://github.com/vim/vim/commit/16a6f91ccb42ebde639a4185322b07719d345e86 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 23:58:28 2021 +0100 patch 8.2.2327: debugging code included Problem: Debugging code included. Solution: Remove the debugging code.
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Jan 2021 00:00:04 +0100
parents 64dfb69e7d46
children dc3b7a31c29f
comparison
equal deleted inserted replaced
23568:e6f7afb1564b 23569:754387a3aa35
245 ectx->ec_stack.ga_len += arg_to_add; 245 ectx->ec_stack.ga_len += arg_to_add;
246 246
247 // Store current execution state in stack frame for ISN_RETURN. 247 // Store current execution state in stack frame for ISN_RETURN.
248 STACK_TV_BOT(STACK_FRAME_FUNC_OFF)->vval.v_number = ectx->ec_dfunc_idx; 248 STACK_TV_BOT(STACK_FRAME_FUNC_OFF)->vval.v_number = ectx->ec_dfunc_idx;
249 STACK_TV_BOT(STACK_FRAME_IIDX_OFF)->vval.v_number = ectx->ec_iidx; 249 STACK_TV_BOT(STACK_FRAME_IIDX_OFF)->vval.v_number = ectx->ec_iidx;
250 if (ectx->ec_outer != NULL)
251 printf("here");
252 STACK_TV_BOT(STACK_FRAME_OUTER_OFF)->vval.v_string = (void *)ectx->ec_outer; 250 STACK_TV_BOT(STACK_FRAME_OUTER_OFF)->vval.v_string = (void *)ectx->ec_outer;
253 STACK_TV_BOT(STACK_FRAME_IDX_OFF)->vval.v_number = ectx->ec_frame_idx; 251 STACK_TV_BOT(STACK_FRAME_IDX_OFF)->vval.v_number = ectx->ec_frame_idx;
254 ectx->ec_frame_idx = ectx->ec_stack.ga_len; 252 ectx->ec_frame_idx = ectx->ec_stack.ga_len;
255 253
256 // Initialize local variables 254 // Initialize local variables
528 // it may not be there and ec_frame_idx is the top of the stack. 526 // it may not be there and ec_frame_idx is the top of the stack.
529 ret_idx = ectx->ec_stack.ga_len - 1; 527 ret_idx = ectx->ec_stack.ga_len - 1;
530 if (ret_idx == ectx->ec_frame_idx + STACK_FRAME_IDX_OFF) 528 if (ret_idx == ectx->ec_frame_idx + STACK_FRAME_IDX_OFF)
531 ret_idx = 0; 529 ret_idx = 0;
532 530
533 if (ectx->ec_outer != NULL)
534 printf("here");
535 vim_free(ectx->ec_outer); 531 vim_free(ectx->ec_outer);
536 532
537 // Restore the previous frame. 533 // Restore the previous frame.
538 ectx->ec_dfunc_idx = STACK_TV(ectx->ec_frame_idx 534 ectx->ec_dfunc_idx = STACK_TV(ectx->ec_frame_idx
539 + STACK_FRAME_FUNC_OFF)->vval.v_number; 535 + STACK_FRAME_FUNC_OFF)->vval.v_number;
542 ectx->ec_outer = (void *)STACK_TV(ectx->ec_frame_idx 538 ectx->ec_outer = (void *)STACK_TV(ectx->ec_frame_idx
543 + STACK_FRAME_OUTER_OFF)->vval.v_string; 539 + STACK_FRAME_OUTER_OFF)->vval.v_string;
544 // restoring ec_frame_idx must be last 540 // restoring ec_frame_idx must be last
545 ectx->ec_frame_idx = STACK_TV(ectx->ec_frame_idx 541 ectx->ec_frame_idx = STACK_TV(ectx->ec_frame_idx
546 + STACK_FRAME_IDX_OFF)->vval.v_number; 542 + STACK_FRAME_IDX_OFF)->vval.v_number;
547 if (ectx->ec_outer != NULL)
548 printf("here");
549 dfunc = ((dfunc_T *)def_functions.ga_data) + ectx->ec_dfunc_idx; 543 dfunc = ((dfunc_T *)def_functions.ga_data) + ectx->ec_dfunc_idx;
550 ectx->ec_instr = dfunc->df_instr; 544 ectx->ec_instr = dfunc->df_instr;
551 545
552 if (ret_idx > 0) 546 if (ret_idx > 0)
553 { 547 {