Mercurial > vim
comparison src/proto/eval.pro @ 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 | ab27db64f1fb |
children | 3af71cbcfdbe |
comparison
equal
deleted
inserted
replaced
20991:cf7644c0a791 | 20992:7ee565134d4a |
---|---|
24 void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip); | 24 void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip); |
25 int next_for_item(void *fi_void, char_u *arg); | 25 int next_for_item(void *fi_void, char_u *arg); |
26 void free_for_info(void *fi_void); | 26 void free_for_info(void *fi_void); |
27 void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx); | 27 void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx); |
28 int pattern_match(char_u *pat, char_u *text, int ic); | 28 int pattern_match(char_u *pat, char_u *text, int ic); |
29 int eval0(char_u *arg, typval_T *rettv, char_u **nextcmd, int flags); | 29 int eval0(char_u *arg, typval_T *rettv, char_u **nextcmd, evalarg_T *evalarg); |
30 int eval1(char_u **arg, typval_T *rettv, int flags); | 30 int eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg_in); |
31 void eval_addblob(typval_T *tv1, typval_T *tv2); | 31 void eval_addblob(typval_T *tv1, typval_T *tv2); |
32 int eval_addlist(typval_T *tv1, typval_T *tv2); | 32 int eval_addlist(typval_T *tv1, typval_T *tv2); |
33 char_u *partial_name(partial_T *pt); | 33 char_u *partial_name(partial_T *pt); |
34 void partial_unref(partial_T *pt); | 34 void partial_unref(partial_T *pt); |
35 int get_copyID(void); | 35 int get_copyID(void); |