]> granicus.if.org Git - vim/commitdiff
patch 8.2.2327: debugging code included v8.2.2327
authorBram Moolenaar <Bram@vim.org>
Sun, 10 Jan 2021 22:58:28 +0000 (23:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 10 Jan 2021 22:58:28 +0000 (23:58 +0100)
Problem:    Debugging code included.
Solution:   Remove the debugging code.

src/version.c
src/vim9execute.c

index 63549a2ebca00845f4c144bc068accc362cc7bc4..e64265fb2715104578ad07244243a9f85cd0e490 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2327,
 /**/
     2326,
 /**/
index 957988e65859af2f0304d3be560d2c1539743010..378b10443a7e0181cb648aa4492a5d2781d59d4d 100644 (file)
@@ -247,8 +247,6 @@ call_dfunc(int cdf_idx, partial_T *pt, int argcount_arg, ectx_T *ectx)
     // Store current execution state in stack frame for ISN_RETURN.
     STACK_TV_BOT(STACK_FRAME_FUNC_OFF)->vval.v_number = ectx->ec_dfunc_idx;
     STACK_TV_BOT(STACK_FRAME_IIDX_OFF)->vval.v_number = ectx->ec_iidx;
-    if (ectx->ec_outer != NULL)
-       printf("here");
     STACK_TV_BOT(STACK_FRAME_OUTER_OFF)->vval.v_string = (void *)ectx->ec_outer;
     STACK_TV_BOT(STACK_FRAME_IDX_OFF)->vval.v_number = ectx->ec_frame_idx;
     ectx->ec_frame_idx = ectx->ec_stack.ga_len;
@@ -530,8 +528,6 @@ func_return(ectx_T *ectx)
     if (ret_idx == ectx->ec_frame_idx + STACK_FRAME_IDX_OFF)
        ret_idx = 0;
 
-    if (ectx->ec_outer != NULL)
-       printf("here");
     vim_free(ectx->ec_outer);
 
     // Restore the previous frame.
@@ -544,8 +540,6 @@ func_return(ectx_T *ectx)
     // restoring ec_frame_idx must be last
     ectx->ec_frame_idx = STACK_TV(ectx->ec_frame_idx
                                       + STACK_FRAME_IDX_OFF)->vval.v_number;
-    if (ectx->ec_outer != NULL)
-       printf("here");
     dfunc = ((dfunc_T *)def_functions.ga_data) + ectx->ec_dfunc_idx;
     ectx->ec_instr = dfunc->df_instr;