Mercurial > vim
comparison src/proto/eval.pro @ 12722:7749260f261c v8.0.1239
patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()
commit https://github.com/vim/vim/commit/48570488f17e397183ea7d5c7ca67d6e4ffb013d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 30 21:48:41 2017 +0100
patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()
Problem: Cannot use a lambda for the skip argument to searchpair().
Solution: Evaluate a partial, funcref and lambda. (LemonBoy, closes https://github.com/vim/vim/issues/1454,
closes #2265)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 30 Oct 2017 22:00:05 +0100 |
parents | 13544aa85dc0 |
children | 6e81a68d63a1 |
comparison
equal
deleted
inserted
replaced
12721:e6b964b3856d | 12722:7749260f261c |
---|---|
8 int eval_charconvert(char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to); | 8 int eval_charconvert(char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to); |
9 int eval_printexpr(char_u *fname, char_u *args); | 9 int eval_printexpr(char_u *fname, char_u *args); |
10 void eval_diff(char_u *origfile, char_u *newfile, char_u *outfile); | 10 void eval_diff(char_u *origfile, char_u *newfile, char_u *outfile); |
11 void eval_patch(char_u *origfile, char_u *difffile, char_u *outfile); | 11 void eval_patch(char_u *origfile, char_u *difffile, char_u *outfile); |
12 int eval_to_bool(char_u *arg, int *error, char_u **nextcmd, int skip); | 12 int eval_to_bool(char_u *arg, int *error, char_u **nextcmd, int skip); |
13 int eval_expr_to_bool(typval_T *expr, int *error); | |
13 char_u *eval_to_string_skip(char_u *arg, char_u **nextcmd, int skip); | 14 char_u *eval_to_string_skip(char_u *arg, char_u **nextcmd, int skip); |
14 int skip_expr(char_u **pp); | 15 int skip_expr(char_u **pp); |
15 char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert); | 16 char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert); |
16 char_u *eval_to_string_safe(char_u *arg, char_u **nextcmd, int use_sandbox); | 17 char_u *eval_to_string_safe(char_u *arg, char_u **nextcmd, int use_sandbox); |
17 varnumber_T eval_to_number(char_u *expr); | 18 varnumber_T eval_to_number(char_u *expr); |
45 int get_copyID(void); | 46 int get_copyID(void); |
46 int garbage_collect(int testing); | 47 int garbage_collect(int testing); |
47 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); | 48 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); |
48 int set_ref_in_list(list_T *l, int copyID, ht_stack_T **ht_stack); | 49 int set_ref_in_list(list_T *l, int copyID, ht_stack_T **ht_stack); |
49 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack); | 50 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack); |
50 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int dict_val); | 51 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int composite_val); |
51 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); | 52 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); |
52 char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); | 53 char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); |
53 char_u *string_quote(char_u *str, int function); | 54 char_u *string_quote(char_u *str, int function); |
54 int string2float(char_u *text, float_T *value); | 55 int string2float(char_u *text, float_T *value); |
55 pos_T *var2fpos(typval_T *varp, int dollar_lnum, int *fnum); | 56 pos_T *var2fpos(typval_T *varp, int dollar_lnum, int *fnum); |