summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-15 21:44:44 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-15 21:44:44 +0000
commit38ecd9722664049d636f4fba759b3ebbfd34e97d (patch)
tree9c21a2fbb6312962d1531bc721fa5253eedbd7ca /src/proto
parent857c8bb1bbe754cf2c5b709703d2eb848c800285 (diff)
downloadvim-git-38ecd9722664049d636f4fba759b3ebbfd34e97d.tar.gz
patch 8.2.4103: Vim9: variable declared in for loop not initialzedv8.2.4103
Problem: Vim9: variable declared in for loop not initialzed. Solution: Always initialze the variable. (closes #9535)
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/vim9instr.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/vim9instr.pro b/src/proto/vim9instr.pro
index c9455003e..04ac89c7a 100644
--- a/src/proto/vim9instr.pro
+++ b/src/proto/vim9instr.pro
@@ -63,6 +63,7 @@ int generate_UNPACK(cctx_T *cctx, int var_count, int semicolon);
int generate_cmdmods(cctx_T *cctx, cmdmod_T *cmod);
int generate_undo_cmdmods(cctx_T *cctx);
int generate_store_var(cctx_T *cctx, assign_dest_T dest, int opt_flags, int vimvaridx, int scriptvar_idx, int scriptvar_sid, type_T *type, char_u *name);
+int inside_loop_scope(cctx_T *cctx);
int generate_store_lhs(cctx_T *cctx, lhs_T *lhs, int instr_count, int is_decl);
void may_generate_prof_end(cctx_T *cctx, int prof_lnum);
void delete_instr(isn_T *isn);