blob: feffc8fb023f78588745ca40d2aad4e51e359104 [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);
Yee Cheng Chin2051af12025-01-09 22:14:34 +010014void finish_exception(except_T *excp);
Yegappan Lakshmananc59c1e02023-10-19 10:52:34 +020015void exception_state_save(exception_state_T *estate);
16void exception_state_restore(exception_state_T *estate);
17void exception_state_clear(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010018void report_make_pending(int pending, void *value);
Bram Moolenaar4799cef2021-08-25 22:37:36 +020019int cmd_is_name_only(char_u *arg);
Bram Moolenaar25e42232019-08-04 15:04:10 +020020void ex_eval(exarg_T *eap);
Bram Moolenaaref269542016-01-19 13:22:12 +010021void ex_if(exarg_T *eap);
22void ex_endif(exarg_T *eap);
23void ex_else(exarg_T *eap);
24void ex_while(exarg_T *eap);
25void ex_continue(exarg_T *eap);
26void ex_break(exarg_T *eap);
27void ex_endwhile(exarg_T *eap);
Bram Moolenaar9becdf22020-10-10 21:33:48 +020028void ex_block(exarg_T *eap);
29void ex_endblock(exarg_T *eap);
Bram Moolenaar63b91732021-08-05 20:40:03 +020030int inside_block(exarg_T *eap);
Bram Moolenaaref269542016-01-19 13:22:12 +010031void ex_throw(exarg_T *eap);
Bram Moolenaarddef1292019-12-16 17:10:33 +010032void do_throw(cstack_T *cstack);
Bram Moolenaaref269542016-01-19 13:22:12 +010033void ex_try(exarg_T *eap);
34void ex_catch(exarg_T *eap);
35void ex_finally(exarg_T *eap);
36void ex_endtry(exarg_T *eap);
37void enter_cleanup(cleanup_T *csp);
38void leave_cleanup(cleanup_T *csp);
Bram Moolenaarddef1292019-12-16 17:10:33 +010039int cleanup_conditionals(cstack_T *cstack, int searched_cond, int inclusive);
40void rewind_conditionals(cstack_T *cstack, int idx, int cond_type, int *cond_level);
Bram Moolenaaref269542016-01-19 13:22:12 +010041void ex_endfunction(exarg_T *eap);
42int has_loop_cmd(char_u *p);
Bram Moolenaar071d4272004-06-13 20:20:40 +000043/* vim: set ft=c : */