xref: /vim-8.2.3635/src/proto/userfunc.pro (revision fcfe1a9b)
1/* userfunc.c */
2void func_init(void);
3hashtab_T *func_tbl_get(void);
4int get_lambda_tv(char_u **arg, typval_T *rettv, int evaluate);
5char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, int no_autoload);
6int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, funcexe_T *funcexe);
7ufunc_T *find_func(char_u *name);
8void save_funccal(funccal_entry_T *entry);
9void restore_funccal(void);
10funccall_T *get_current_funccal(void);
11void free_all_functions(void);
12int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv);
13int call_callback(callback_T *callback, int len, typval_T *rettv, int argcount, typval_T *argvars);
14int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, funcexe_T *funcexe);
15char_u *trans_function_name(char_u **pp, int skip, int flags, funcdict_T *fdp, partial_T **partial);
16void ex_function(exarg_T *eap);
17int eval_fname_script(char_u *p);
18int translated_function_exists(char_u *name);
19int function_exists(char_u *name, int no_deref);
20char_u *get_expanded_name(char_u *name, int check);
21char_u *get_user_func_name(expand_T *xp, int idx);
22void ex_delfunction(exarg_T *eap);
23void func_unref(char_u *name);
24void func_ptr_unref(ufunc_T *fp);
25void func_ref(char_u *name);
26void func_ptr_ref(ufunc_T *fp);
27void ex_return(exarg_T *eap);
28void ex_call(exarg_T *eap);
29int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv);
30void discard_pending_return(void *rettv);
31char_u *get_return_cmd(void *rettv);
32char_u *get_func_line(int c, void *cookie, int indent, int do_concat);
33int func_has_ended(void *cookie);
34int func_has_abort(void *cookie);
35dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv);
36char_u *func_name(void *cookie);
37linenr_T *func_breakpoint(void *cookie);
38int *func_dbg_tick(void *cookie);
39int func_level(void *cookie);
40int current_func_returned(void);
41int free_unref_funccal(int copyID, int testing);
42hashtab_T *get_funccal_local_ht(void);
43dictitem_T *get_funccal_local_var(void);
44hashtab_T *get_funccal_args_ht(void);
45dictitem_T *get_funccal_args_var(void);
46void list_func_vars(int *first);
47dict_T *get_current_funccal_dict(hashtab_T *ht);
48hashitem_T *find_hi_in_scoped_ht(char_u *name, hashtab_T **pht);
49dictitem_T *find_var_in_scoped_ht(char_u *name, int no_autoload);
50int set_ref_in_previous_funccal(int copyID);
51int set_ref_in_call_stack(int copyID);
52int set_ref_in_functions(int copyID);
53int set_ref_in_func_args(int copyID);
54int set_ref_in_func(char_u *name, ufunc_T *fp_in, int copyID);
55/* vim: set ft=c : */
56