xref: /vim-8.2.3635/src/proto/userfunc.pro (revision bb76f24a)
1/* userfunc.c */
2void func_init(void);
3int get_lambda_tv(char_u **arg, typval_T *rettv, int evaluate);
4char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, int no_autoload);
5int 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);
6ufunc_T *find_func(char_u *name);
7void free_all_functions(void);
8int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv);
9int 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);
10char_u *trans_function_name(char_u **pp, int skip, int flags, funcdict_T *fdp, partial_T **partial);
11void ex_function(exarg_T *eap);
12int eval_fname_script(char_u *p);
13int translated_function_exists(char_u *name);
14int function_exists(char_u *name, int no_deref);
15char_u *get_expanded_name(char_u *name, int check);
16void func_dump_profile(FILE *fd);
17void prof_child_enter(proftime_T *tm);
18void prof_child_exit(proftime_T *tm);
19char_u *get_user_func_name(expand_T *xp, int idx);
20void ex_delfunction(exarg_T *eap);
21void func_unref(char_u *name);
22void func_ptr_unref(ufunc_T *fp);
23void func_ref(char_u *name);
24void func_ptr_ref(ufunc_T *fp);
25void ex_return(exarg_T *eap);
26void ex_call(exarg_T *eap);
27int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv);
28void discard_pending_return(void *rettv);
29char_u *get_return_cmd(void *rettv);
30char_u *get_func_line(int c, void *cookie, int indent);
31void func_line_start(void *cookie);
32void func_line_exec(void *cookie);
33void func_line_end(void *cookie);
34int func_has_ended(void *cookie);
35int func_has_abort(void *cookie);
36dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv);
37char_u *func_name(void *cookie);
38linenr_T *func_breakpoint(void *cookie);
39int *func_dbg_tick(void *cookie);
40int func_level(void *cookie);
41int current_func_returned(void);
42void *save_funccal(void);
43void restore_funccal(void *vfc);
44int free_unref_funccal(int copyID, int testing);
45hashtab_T *get_funccal_local_ht(void);
46dictitem_T *get_funccal_local_var(void);
47hashtab_T *get_funccal_args_ht(void);
48dictitem_T *get_funccal_args_var(void);
49void *clear_current_funccal(void);
50void restore_current_funccal(void *f);
51void list_func_vars(int *first);
52dict_T *get_current_funccal_dict(hashtab_T *ht);
53hashitem_T *find_hi_in_scoped_ht(char_u *name, hashtab_T **pht);
54dictitem_T *find_var_in_scoped_ht(char_u *name, int no_autoload);
55int set_ref_in_previous_funccal(int copyID);
56int set_ref_in_call_stack(int copyID);
57int set_ref_in_functions(int copyID);
58int set_ref_in_func_args(int copyID);
59int set_ref_in_func(char_u *name, ufunc_T *fp_in, int copyID);
60/* vim: set ft=c : */
61