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