Patch 9.0.0503 (after 9.0.0502)
Problem:    Build failure.
Solution:   Add missing changes.
Files:      src/vim9compile.c


*** ../vim-9.0.0502/src/vim9compile.c   2022-09-17 21:07:52.103993150 +0100
--- src/vim9compile.c   2022-09-19 13:08:55.331984438 +0100
***************
*** 54,60 ****
            {
                *lvar = *lvp;
                lvar->lv_from_outer = 0;
!               lvar->lv_loop_idx = get_loop_var_idx(cctx);
            }
            return OK;
        }
--- 54,62 ----
            {
                *lvar = *lvp;
                lvar->lv_from_outer = 0;
!               // If the variable was declared inside a loop set
!               // lvar->lv_loop_idx and lvar->lv_loop_depth.
!               get_loop_var_idx(cctx, idx, lvar);
            }
            return OK;
        }
***************
*** 955,962 ****
      // recursive call.
      if (is_global)
      {
!       // TODO: loop variable index and count
!       r = generate_NEWFUNC(cctx, lambda_name, func_name, 0, 0);
        func_name = NULL;
        lambda_name = NULL;
      }
--- 957,963 ----
      // recursive call.
      if (is_global)
      {
!       r = generate_NEWFUNC(cctx, lambda_name, func_name);
        func_name = NULL;
        lambda_name = NULL;
      }
***************
*** 1195,1201 ****
            {
                if (lvar->lv_from_outer > 0)
                    generate_LOADOUTER(cctx, lvar->lv_idx, lvar->lv_from_outer,
!                                                     lvar->lv_loop_idx, type);
                else
                    generate_LOAD(cctx, ISN_LOAD, lvar->lv_idx, NULL, type);
            }
--- 1196,1202 ----
            {
                if (lvar->lv_from_outer > 0)
                    generate_LOADOUTER(cctx, lvar->lv_idx, lvar->lv_from_outer,
!                                lvar->lv_loop_depth, lvar->lv_loop_idx, type);
                else
                    generate_LOAD(cctx, ISN_LOAD, lvar->lv_idx, NULL, type);
            }
*** ../vim-9.0.0502/src/version.c       2022-09-19 15:54:29.543117874 +0100
--- src/version.c       2022-09-19 16:02:20.770508689 +0100
***************
*** 701,702 ****
--- 701,704 ----
  {   /* Add new patch number below this line */
+ /**/
+     503,
  /**/

-- 
>From "know your smileys":
 <|-) Chinese
 <|-( Chinese and doesn't like these kind of jokes

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220919150310.3FF981C0846%40moolenaar.net.

Raspunde prin e-mail lui