To: vim_dev@googlegroups.com Subject: Patch 9.0.0503 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///