Bram Moolenaar | a9b579f | 2016-07-17 18:29:19 +0200 | [diff] [blame] | 1 | /* userfunc.c */ |
| 2 | void func_init(void); |
| 3 | int get_lambda_tv(char_u **arg, typval_T *rettv, int evaluate); |
| 4 | char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, int no_autoload); |
| 5 | int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict); |
| 6 | void free_all_functions(void); |
| 7 | int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv); |
Bram Moolenaar | df48fb4 | 2016-07-22 21:50:18 +0200 | [diff] [blame] | 8 | int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, int (*argv_func)(int, typval_T *, int), linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict_in); |
Bram Moolenaar | a9b579f | 2016-07-17 18:29:19 +0200 | [diff] [blame] | 9 | void ex_function(exarg_T *eap); |
| 10 | int eval_fname_script(char_u *p); |
| 11 | int translated_function_exists(char_u *name); |
| 12 | int function_exists(char_u *name); |
| 13 | char_u *get_expanded_name(char_u *name, int check); |
| 14 | void func_dump_profile(FILE *fd); |
| 15 | void prof_child_enter(proftime_T *tm); |
| 16 | void prof_child_exit(proftime_T *tm); |
| 17 | char_u *get_user_func_name(expand_T *xp, int idx); |
| 18 | void ex_delfunction(exarg_T *eap); |
| 19 | void func_unref(char_u *name); |
| 20 | void func_ref(char_u *name); |
| 21 | void ex_return(exarg_T *eap); |
| 22 | void ex_call(exarg_T *eap); |
| 23 | int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); |
| 24 | void discard_pending_return(void *rettv); |
| 25 | char_u *get_return_cmd(void *rettv); |
| 26 | char_u *get_func_line(int c, void *cookie, int indent); |
| 27 | void func_line_start(void *cookie); |
| 28 | void func_line_exec(void *cookie); |
| 29 | void func_line_end(void *cookie); |
| 30 | int func_has_ended(void *cookie); |
| 31 | int func_has_abort(void *cookie); |
| 32 | dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv); |
| 33 | char_u *func_name(void *cookie); |
| 34 | linenr_T *func_breakpoint(void *cookie); |
| 35 | int *func_dbg_tick(void *cookie); |
| 36 | int func_level(void *cookie); |
| 37 | int current_func_returned(void); |
| 38 | void *save_funccal(void); |
| 39 | void restore_funccal(void *vfc); |
| 40 | int free_unref_funccal(int copyID, int testing); |
| 41 | hashtab_T *get_funccal_local_ht(void); |
| 42 | dictitem_T *get_funccal_local_var(void); |
| 43 | hashtab_T *get_funccal_args_ht(void); |
| 44 | dictitem_T *get_funccal_args_var(void); |
| 45 | void *clear_current_funccal(void); |
| 46 | void restore_current_funccal(void *f); |
| 47 | void list_func_vars(int *first); |
| 48 | dict_T *get_current_funccal_dict(hashtab_T *ht); |
Bram Moolenaar | 10ce39a | 2016-07-29 22:37:06 +0200 | [diff] [blame] | 49 | hashitem_T *find_hi_in_scoped_ht(char_u *name, char_u **varname, hashtab_T **pht); |
Bram Moolenaar | 1e96d9b | 2016-07-29 22:15:09 +0200 | [diff] [blame] | 50 | dictitem_T *find_var_in_scoped_ht(char_u *name, char_u **varname, int no_autoload); |
Bram Moolenaar | a9b579f | 2016-07-17 18:29:19 +0200 | [diff] [blame] | 51 | int set_ref_in_previous_funccal(int copyID); |
| 52 | int set_ref_in_call_stack(int copyID); |
| 53 | int set_ref_in_func_args(int copyID); |
Bram Moolenaar | 1e96d9b | 2016-07-29 22:15:09 +0200 | [diff] [blame] | 54 | int set_ref_in_func(char_u *name, int copyID); |
Bram Moolenaar | a9b579f | 2016-07-17 18:29:19 +0200 | [diff] [blame] | 55 | /* vim: set ft=c : */ |