comparison src/vim.h @ 28273:fff70771d4bb v8.2.4662

patch 8.2.4662: no error for using out of range list index Commit: https://github.com/vim/vim/commit/22ebd172e48ba060c8a7bae3dbf6480b7596d937 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 1 15:26:58 2022 +0100 patch 8.2.4662: no error for using out of range list index Problem: No error for using out of range list index. Solution: Check list index at script level like in compiled function. (closes #10051)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Apr 2022 16:30:03 +0200
parents 4b322951ebac
children 9849df834f1d
comparison
equal deleted inserted replaced
28272:bb583103b95b 28273:fff70771d4bb
2630 #define TFN_NO_DEREF 0x08 // do not dereference a Funcref 2630 #define TFN_NO_DEREF 0x08 // do not dereference a Funcref
2631 #define TFN_READ_ONLY 0x10 // will not change the var 2631 #define TFN_READ_ONLY 0x10 // will not change the var
2632 #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL 2632 #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL
2633 #define TFN_COMPILING 0x40 // only used for GLV_COMPILING 2633 #define TFN_COMPILING 0x40 // only used for GLV_COMPILING
2634 #define TFN_NEW_FUNC 0x80 // defining a new function 2634 #define TFN_NEW_FUNC 0x80 // defining a new function
2635 #define TFN_ASSIGN_WITH_OP 0x100 // only for GLV_ASSIGN_WITH_OP
2635 2636
2636 // Values for get_lval() flags argument: 2637 // Values for get_lval() flags argument:
2637 #define GLV_QUIET TFN_QUIET // no error messages 2638 #define GLV_QUIET TFN_QUIET // no error messages
2638 #define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading 2639 #define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading
2639 #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var 2640 #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var
2640 #define GLV_NO_DECL TFN_NO_DECL // assignment without :var or :let 2641 #define GLV_NO_DECL TFN_NO_DECL // assignment without :var or :let
2641 #define GLV_COMPILING TFN_COMPILING // variable may be defined later 2642 #define GLV_COMPILING TFN_COMPILING // variable may be defined later
2643 #define GLV_ASSIGN_WITH_OP TFN_ASSIGN_WITH_OP // assignment with operator
2642 2644
2643 #define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not 2645 #define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not
2644 // be freed. 2646 // be freed.
2645 2647
2646 // errors for when calling a function 2648 // errors for when calling a function