Mercurial > vim
annotate src/proto/ex_eval.pro @ 25164:0e08e34fa0b8 v8.2.3118
patch 8.2.3118: Vim9: "any" type not handled correctly in for loop
Commit: https://github.com/vim/vim/commit/5ede5b231eb2269b0ef335f3cd24e4c4b1d4395b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 7 21:55:25 2021 +0200
patch 8.2.3118: Vim9: "any" type not handled correctly in for loop
Problem: Vim9: "any" type not handled correctly in for loop.
Solution: Change compile time check into runtime check. (closes https://github.com/vim/vim/issues/8516)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Jul 2021 22:00:04 +0200 |
parents | 7d25264c246c |
children | 2063b858cad9 |
rev | line source |
---|---|
7 | 1 /* ex_eval.c */ |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
2 int aborting(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
3 void update_force_abort(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
4 int should_abort(int retcode); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
5 int aborted_in_try(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
6 int cause_errthrow(char_u *mesg, int severe, int *ignore); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
7 void free_global_msglist(void); |
18904
2bdc2e1f6e1f
patch 8.2.0013: not using a typedef for condstack
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
8 void do_errthrow(cstack_T *cstack, char_u *cmdname); |
2bdc2e1f6e1f
patch 8.2.0013: not using a typedef for condstack
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
9 int do_intthrow(cstack_T *cstack); |
15470
55ccc2d353bd
patch 8.1.0743: giving error messages is not flexible
Bram Moolenaar <Bram@vim.org>
parents:
10361
diff
changeset
|
10 char *get_exception_string(void *value, except_type_T type, char_u *cmdname, int *should_free); |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
18904
diff
changeset
|
11 int throw_exception(void *value, except_type_T type, char_u *cmdname); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
12 void discard_current_exception(void); |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
18904
diff
changeset
|
13 void catch_exception(except_T *excp); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
14 void report_make_pending(int pending, void *value); |
17620
072efa9ca875
patch 8.1.1807: more functions can be used as a method
Bram Moolenaar <Bram@vim.org>
parents:
15470
diff
changeset
|
15 void ex_eval(exarg_T *eap); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
16 void ex_if(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
17 void ex_endif(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
18 void ex_else(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
19 void ex_while(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
20 void ex_continue(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
21 void ex_break(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
22 void ex_endwhile(exarg_T *eap); |
22555
7d25264c246c
patch 8.2.1826: Vim9: cannot use a {} block at script level
Bram Moolenaar <Bram@vim.org>
parents:
19181
diff
changeset
|
23 void ex_block(exarg_T *eap); |
7d25264c246c
patch 8.2.1826: Vim9: cannot use a {} block at script level
Bram Moolenaar <Bram@vim.org>
parents:
19181
diff
changeset
|
24 void ex_endblock(exarg_T *eap); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
25 void ex_throw(exarg_T *eap); |
18904
2bdc2e1f6e1f
patch 8.2.0013: not using a typedef for condstack
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
26 void do_throw(cstack_T *cstack); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
27 void ex_try(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
28 void ex_catch(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
29 void ex_finally(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
30 void ex_endtry(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
31 void enter_cleanup(cleanup_T *csp); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
32 void leave_cleanup(cleanup_T *csp); |
18904
2bdc2e1f6e1f
patch 8.2.0013: not using a typedef for condstack
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
33 int cleanup_conditionals(cstack_T *cstack, int searched_cond, int inclusive); |
2bdc2e1f6e1f
patch 8.2.0013: not using a typedef for condstack
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
34 void rewind_conditionals(cstack_T *cstack, int idx, int cond_type, int *cond_level); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
35 void ex_endfunction(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
36 int has_loop_cmd(char_u *p); |
7 | 37 /* vim: set ft=c : */ |