comparison src/structs.h @ 20992:7ee565134d4a v8.2.1047

patch 8.2.1047: Vim9: script cannot use line continuation like :def function Commit: https://github.com/vim/vim/commit/5409f5d8c95007216ae1190565a7a8ee9ebd7100 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 24 18:37:35 2020 +0200 patch 8.2.1047: Vim9: script cannot use line continuation like :def function Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators.
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Jun 2020 18:45:04 +0200
parents 0653b9b72091
children 15ef156a6e75
comparison
equal deleted inserted replaced
20991:cf7644c0a791 20992:7ee565134d4a
1744 int sn_prl_idx; // index of line being timed; -1 if none 1744 int sn_prl_idx; // index of line being timed; -1 if none
1745 int sn_prl_execed; // line being timed was executed 1745 int sn_prl_execed; // line being timed was executed
1746 # endif 1746 # endif
1747 } scriptitem_T; 1747 } scriptitem_T;
1748 1748
1749 // Struct passed through eval() functions.
1750 // See EVALARG_EVALUATE for a fixed value with eval_flags set to EVAL_EVALUATE.
1751 typedef struct {
1752 int eval_flags; // EVAL_ flag values below
1753
1754 // copied from exarg_T when "getline" is "getsourceline". Can be NULL.
1755 void *eval_cookie; // argument for getline()
1756 } evalarg_T;
1757
1758 // Flags for expression evaluation.
1759 #define EVAL_EVALUATE 1 // when missing don't actually evaluate
1760 #define EVAL_CONSTANT 2 // when not a constant return FAIL
1761
1749 # ifdef FEAT_PROFILE 1762 # ifdef FEAT_PROFILE
1750 /* 1763 /*
1751 * Struct used in sn_prl_ga for every line of a script. 1764 * Struct used in sn_prl_ga for every line of a script.
1752 */ 1765 */
1753 typedef struct sn_prl_S 1766 typedef struct sn_prl_S