blob: 979d6fb8f499c337600b4454d404bc11718c8940 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* ex_eval.c */
Bram Moolenaaref269542016-01-19 13:22:12 +01002int aborting(void);
3void update_force_abort(void);
4int should_abort(int retcode);
5int aborted_in_try(void);
6int cause_errthrow(char_u *mesg, int severe, int *ignore);
7void free_global_msglist(void);
Bram Moolenaarddef1292019-12-16 17:10:33 +01008void do_errthrow(cstack_T *cstack, char_u *cmdname);
9int do_intthrow(cstack_T *cstack);
Bram Moolenaarf9e3e092019-01-13 23:38:42 +010010char *get_exception_string(void *value, except_type_T type, char_u *cmdname, int *should_free);
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010011int throw_exception(void *value, except_type_T type, char_u *cmdname);
Bram Moolenaaref269542016-01-19 13:22:12 +010012void discard_current_exception(void);
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010013void catch_exception(except_T *excp);
Yegappan Lakshmananc59c1e02023-10-19 10:52:34 +020014void exception_state_save(exception_state_T *estate);
15void exception_state_restore(exception_state_T *estate);
16void exception_state_clear(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010017void report_make_pending(int pending, void *value);
Bram Moolenaar4799cef2021-08-25 22:37:36 +020018int cmd_is_name_only(char_u *arg);
Bram Moolenaar25e42232019-08-04 15:04:10 +020019void ex_eval(exarg_T *eap);
Bram Moolenaaref269542016-01-19 13:22:12 +010020void ex_if(exarg_T *eap);
21void ex_endif(exarg_T *eap);
22void ex_else(exarg_T *eap);
23void ex_while(exarg_T *eap);
24void ex_continue(exarg_T *eap);
25void ex_break(exarg_T *eap);
26void ex_endwhile(exarg_T *eap);
Bram Moolenaar9becdf22020-10-10 21:33:48 +020027void ex_block(exarg_T *eap);
28void ex_endblock(exarg_T *eap);
Bram Moolenaar63b91732021-08-05 20:40:03 +020029int inside_block(exarg_T *eap);
Bram Moolenaaref269542016-01-19 13:22:12 +010030void ex_throw(exarg_T *eap);
Bram Moolenaarddef1292019-12-16 17:10:33 +010031void do_throw(cstack_T *cstack);
Bram Moolenaaref269542016-01-19 13:22:12 +010032void ex_try(exarg_T *eap);
33void ex_catch(exarg_T *eap);
34void ex_finally(exarg_T *eap);
35void ex_endtry(exarg_T *eap);
36void enter_cleanup(cleanup_T *csp);
37void leave_cleanup(cleanup_T *csp);
Bram Moolenaarddef1292019-12-16 17:10:33 +010038int cleanup_conditionals(cstack_T *cstack, int searched_cond, int inclusive);
39void rewind_conditionals(cstack_T *cstack, int idx, int cond_type, int *cond_level);
Bram Moolenaaref269542016-01-19 13:22:12 +010040void ex_endfunction(exarg_T *eap);
41int has_loop_cmd(char_u *p);
Bram Moolenaar071d4272004-06-13 20:20:40 +000042/* vim: set ft=c : */