annotate src/proto/evalfunc.pro @ 25479:fbdfa533001c v8.2.3276

patch 8.2.3276: Vim9: exists() can only be evaluated at runtime Commit: https://github.com/vim/vim/commit/bb7ee7abe1ea1e60b8a5dadd2bed8cdbe4f3e8fb Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 2 20:06:50 2021 +0200 patch 8.2.3276: Vim9: exists() can only be evaluated at runtime Problem: Vim9: exists() can only be evaluated at runtime. Solution: Evaluate at compile time for option name literals. (closes https://github.com/vim/vim/issues/8437)
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Aug 2021 20:15:03 +0200
parents dc66d0284518
children d5e9c05b4811
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 /* evalfunc.c */
24770
e75971b83263 patch 8.2.2923: EBCDIC build is broken
Bram Moolenaar <Bram@vim.org>
parents: 23853
diff changeset
2 void sortFunctions(void);
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 char_u *get_function_name(expand_T *xp, int idx);
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 char_u *get_expr_name(expand_T *xp, int idx);
19181
94eda51ba9ba patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents: 18104
diff changeset
5 int find_internal_func(char_u *name);
17612
e259d11e2900 patch 8.1.1803: all builtin functions are global
Bram Moolenaar <Bram@vim.org>
parents: 17472
diff changeset
6 int has_internal_func(char_u *name);
19181
94eda51ba9ba patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents: 18104
diff changeset
7 char *internal_func_name(int idx);
23640
8dcb2255ff9a patch 8.2.2362: Vim9: check of builtin function argument type is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 23565
diff changeset
8 int internal_func_check_arg_types(type_T **types, int idx, int argcount, cctx_T *cctx);
25126
b825efff9790 patch 8.2.3100: Vim9: no error when using type with unknown number of args
Bram Moolenaar <Bram@vim.org>
parents: 24770
diff changeset
9 void internal_func_get_argcount(int idx, int *argcount, int *min_argcount);
19564
06f29b6ea04a patch 8.2.0339: Vim9: function return type may depend on arguments
Bram Moolenaar <Bram@vim.org>
parents: 19253
diff changeset
10 type_T *internal_func_ret_type(int idx, int argcount, type_T **argtypes);
23565
34aa2907082a patch 8.2.2325: Vim9: crash if map() changes the item type
Bram Moolenaar <Bram@vim.org>
parents: 22842
diff changeset
11 int internal_func_is_map(int idx);
19181
94eda51ba9ba patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents: 18104
diff changeset
12 int check_internal_func(int idx, int argcount);
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 int call_internal_func(char_u *name, int argcount, typval_T *argvars, typval_T *rettv);
19181
94eda51ba9ba patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents: 18104
diff changeset
14 void call_internal_func_by_idx(int idx, typval_T *argvars, typval_T *rettv);
17612
e259d11e2900 patch 8.1.1803: all builtin functions are global
Bram Moolenaar <Bram@vim.org>
parents: 17472
diff changeset
15 int call_internal_method(char_u *name, int argcount, typval_T *argvars, typval_T *rettv, typval_T *basetv);
18104
e59ff7b5d7a7 patch 8.1.2047: cannot check the current state
Bram Moolenaar <Bram@vim.org>
parents: 18010
diff changeset
16 int non_zero_arg(typval_T *argvars);
16638
4790302965fc patch 8.1.1321: no docs or tests for listener functions
Bram Moolenaar <Bram@vim.org>
parents: 15355
diff changeset
17 buf_T *get_buf_arg(typval_T *arg);
17472
dfd87ef822aa patch 8.1.1734: the evalfunc.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 17218
diff changeset
18 win_T *get_optional_window(typval_T *argvars, int idx);
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 void execute_redir_str(char_u *value, int value_len);
18010
cf8e0c7e0cb9 patch 8.1.2001: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents: 17986
diff changeset
20 void execute_common(typval_T *argvars, typval_T *rettv, int arg_off);
25479
fbdfa533001c patch 8.2.3276: Vim9: exists() can only be evaluated at runtime
Bram Moolenaar <Bram@vim.org>
parents: 25206
diff changeset
21 void f_exists(typval_T *argvars, typval_T *rettv);
19253
a8d2d3c8f0b3 patch 8.2.0185: Vim9 script: cannot use "if has()" to skip lines
Bram Moolenaar <Bram@vim.org>
parents: 19181
diff changeset
22 void f_has(typval_T *argvars, typval_T *rettv);
22842
f2fbbb72ff28 patch 8.2.1968: Vim9: has() assumes a feature does not change dynamically
Bram Moolenaar <Bram@vim.org>
parents: 22661
diff changeset
23 int dynamic_feature(char_u *feature);
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv);
19181
94eda51ba9ba patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents: 18104
diff changeset
25 void range_list_materialize(list_T *list);
12722
7749260f261c patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()
Christian Brabandt <cb@256bit.org>
parents: 11846
diff changeset
26 long do_searchpair(char_u *spat, char_u *mpat, char_u *epat, int dir, typval_T *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit);
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 /* vim: set ft=c : */