comparison src/proto/vim9instr.pro @ 28217:662d2d5db9a6

patch 8.2.4634: Vim9: cannot initialize a variable to null_list Commit: https://github.com/vim/vim/commit/ec15b1cfdc5faadb529dedda58adf7fc98c839ed Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 27 16:29:53 2022 +0100 patch 8.2.4634: Vim9: cannot initialize a variable to null_list Problem: Vim9: cannot initialize a variable to null_list. Solution: Give negative count to NEWLIST. (closes https://github.com/vim/vim/issues/10027) Also fix inconsistencies in comparing with null values.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Mar 2022 17:30:04 +0200
parents b0c885507de4
children 4b322951ebac
comparison
equal deleted inserted replaced
28216:b6a02697f304 28217:662d2d5db9a6
34 int generate_LOADV(cctx_T *cctx, char_u *name, int error); 34 int generate_LOADV(cctx_T *cctx, char_u *name, int error);
35 int generate_UNLET(cctx_T *cctx, isntype_T isn_type, char_u *name, int forceit); 35 int generate_UNLET(cctx_T *cctx, isntype_T isn_type, char_u *name, int forceit);
36 int generate_LOCKCONST(cctx_T *cctx); 36 int generate_LOCKCONST(cctx_T *cctx);
37 int generate_OLDSCRIPT(cctx_T *cctx, isntype_T isn_type, char_u *name, int sid, type_T *type); 37 int generate_OLDSCRIPT(cctx_T *cctx, isntype_T isn_type, char_u *name, int sid, type_T *type);
38 int generate_VIM9SCRIPT(cctx_T *cctx, isntype_T isn_type, int sid, int idx, type_T *type); 38 int generate_VIM9SCRIPT(cctx_T *cctx, isntype_T isn_type, int sid, int idx, type_T *type);
39 int generate_NEWLIST(cctx_T *cctx, int count); 39 int generate_NEWLIST(cctx_T *cctx, int count, int use_null);
40 int generate_NEWDICT(cctx_T *cctx, int count); 40 int generate_NEWDICT(cctx_T *cctx, int count, int use_null);
41 int generate_FUNCREF(cctx_T *cctx, ufunc_T *ufunc, isn_T **isnp); 41 int generate_FUNCREF(cctx_T *cctx, ufunc_T *ufunc, isn_T **isnp);
42 int generate_NEWFUNC(cctx_T *cctx, char_u *lambda_name, char_u *func_name); 42 int generate_NEWFUNC(cctx_T *cctx, char_u *lambda_name, char_u *func_name);
43 int generate_DEF(cctx_T *cctx, char_u *name, size_t len); 43 int generate_DEF(cctx_T *cctx, char_u *name, size_t len);
44 int generate_JUMP(cctx_T *cctx, jumpwhen_T when, int where); 44 int generate_JUMP(cctx_T *cctx, jumpwhen_T when, int where);
45 int generate_JUMP_IF_ARG_SET(cctx_T *cctx, int arg_off); 45 int generate_JUMP_IF_ARG_SET(cctx_T *cctx, int arg_off);