Mercurial > vim
annotate src/proto/ex_eval.pro @ 19261:a20c66f13a6e v8.2.0189
patch 8.2.0189: cd() with NULL argument crashes
Commit: https://github.com/vim/vim/commit/7cc96923c44bbcc541cbd211b6308d87a965f0c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 31 22:41:38 2020 +0100
patch 8.2.0189: cd() with NULL argument crashes
Problem: cd() with NULL argument crashes.
Solution: Check for NULL. (Ken Takata, closes https://github.com/vim/vim/issues/5558)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 Jan 2020 22:45:04 +0100 |
parents | 94eda51ba9ba |
children | 7d25264c246c |
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); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
23 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
|
24 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
|
25 void ex_try(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
26 void ex_catch(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
27 void ex_finally(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
28 void ex_endtry(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
29 void enter_cleanup(cleanup_T *csp); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
30 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
|
31 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
|
32 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
|
33 void ex_endfunction(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
5517
diff
changeset
|
34 int has_loop_cmd(char_u *p); |
7 | 35 /* vim: set ft=c : */ |