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 get_callback_depth(void); 14int call_callback(callback_T *callback, int len, typval_T *rettv, int argcount, typval_T *argvars); 15int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, funcexe_T *funcexe); 16char_u *trans_function_name(char_u **pp, int skip, int flags, funcdict_T *fdp, partial_T **partial); 17void ex_function(exarg_T *eap); 18int eval_fname_script(char_u *p); 19int translated_function_exists(char_u *name); 20int function_exists(char_u *name, int no_deref); 21char_u *get_expanded_name(char_u *name, int check); 22char_u *get_user_func_name(expand_T *xp, int idx); 23void ex_delfunction(exarg_T *eap); 24void func_unref(char_u *name); 25void func_ptr_unref(ufunc_T *fp); 26void func_ref(char_u *name); 27void func_ptr_ref(ufunc_T *fp); 28void ex_return(exarg_T *eap); 29void ex_call(exarg_T *eap); 30int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); 31void discard_pending_return(void *rettv); 32char_u *get_return_cmd(void *rettv); 33char_u *get_func_line(int c, void *cookie, int indent, int do_concat); 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); 42int free_unref_funccal(int copyID, int testing); 43hashtab_T *get_funccal_local_ht(void); 44dictitem_T *get_funccal_local_var(void); 45hashtab_T *get_funccal_args_ht(void); 46dictitem_T *get_funccal_args_var(void); 47void list_func_vars(int *first); 48dict_T *get_current_funccal_dict(hashtab_T *ht); 49hashitem_T *find_hi_in_scoped_ht(char_u *name, hashtab_T **pht); 50dictitem_T *find_var_in_scoped_ht(char_u *name, int no_autoload); 51int set_ref_in_previous_funccal(int copyID); 52int set_ref_in_call_stack(int copyID); 53int set_ref_in_functions(int copyID); 54int set_ref_in_func_args(int copyID); 55int set_ref_in_func(char_u *name, ufunc_T *fp_in, int copyID); 56/* vim: set ft=c : */ 57