Mercurial > vim
comparison src/proto/userfunc.pro @ 17381:8f44c630c366 v8.1.1689
patch 8.1.1689: profiling code is spread out
commit https://github.com/vim/vim/commit/660a10ad41c14363326f83451c3c425201923119
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 14 15:48:38 2019 +0200
patch 8.1.1689: profiling code is spread out
Problem: Profiling code is spread out.
Solution: Move more profiling code to profiler.c. (Yegappan Lakshmanan,
closes #4668)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jul 2019 16:00:06 +0200 |
parents | ba06a1c42274 |
children | ff097edaae89 |
comparison
equal
deleted
inserted
replaced
17380:9edf684600d7 | 17381:8f44c630c366 |
---|---|
1 /* userfunc.c */ | 1 /* userfunc.c */ |
2 void func_init(void); | 2 void func_init(void); |
3 hashtab_T *func_tbl_get(void); | |
3 int get_lambda_tv(char_u **arg, typval_T *rettv, int evaluate); | 4 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 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 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 ufunc_T *find_func(char_u *name); | 7 ufunc_T *find_func(char_u *name); |
7 void save_funccal(funccal_entry_T *entry); | 8 void save_funccal(funccal_entry_T *entry); |
8 void restore_funccal(void); | 9 void restore_funccal(void); |
9 funccall_T * get_current_funccal(void); | 10 funccall_T *get_current_funccal(void); |
10 void free_all_functions(void); | 11 void free_all_functions(void); |
11 int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv); | 12 int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv); |
12 int call_callback(callback_T *callback, int len, typval_T *rettv, int argcount, typval_T *argvars, int (*argv_func)(int, typval_T *, int), linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, dict_T *selfdict); | 13 int call_callback(callback_T *callback, int len, typval_T *rettv, int argcount, typval_T *argvars, int (*argv_func)(int, typval_T *, int), linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, dict_T *selfdict); |
13 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); | 14 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); |
14 char_u *trans_function_name(char_u **pp, int skip, int flags, funcdict_T *fdp, partial_T **partial); | 15 char_u *trans_function_name(char_u **pp, int skip, int flags, funcdict_T *fdp, partial_T **partial); |
15 void ex_function(exarg_T *eap); | 16 void ex_function(exarg_T *eap); |
16 int eval_fname_script(char_u *p); | 17 int eval_fname_script(char_u *p); |
17 int translated_function_exists(char_u *name); | 18 int translated_function_exists(char_u *name); |
18 int function_exists(char_u *name, int no_deref); | 19 int function_exists(char_u *name, int no_deref); |
19 char_u *get_expanded_name(char_u *name, int check); | 20 char_u *get_expanded_name(char_u *name, int check); |
20 void func_dump_profile(FILE *fd); | |
21 char_u *get_user_func_name(expand_T *xp, int idx); | 21 char_u *get_user_func_name(expand_T *xp, int idx); |
22 void ex_delfunction(exarg_T *eap); | 22 void ex_delfunction(exarg_T *eap); |
23 void func_unref(char_u *name); | 23 void func_unref(char_u *name); |
24 void func_ptr_unref(ufunc_T *fp); | 24 void func_ptr_unref(ufunc_T *fp); |
25 void func_ref(char_u *name); | 25 void func_ref(char_u *name); |
28 void ex_call(exarg_T *eap); | 28 void ex_call(exarg_T *eap); |
29 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); | 29 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); |
30 void discard_pending_return(void *rettv); | 30 void discard_pending_return(void *rettv); |
31 char_u *get_return_cmd(void *rettv); | 31 char_u *get_return_cmd(void *rettv); |
32 char_u *get_func_line(int c, void *cookie, int indent, int do_concat); | 32 char_u *get_func_line(int c, void *cookie, int indent, int do_concat); |
33 void func_line_start(void *cookie); | |
34 void func_line_exec(void *cookie); | |
35 void func_line_end(void *cookie); | |
36 int func_has_ended(void *cookie); | 33 int func_has_ended(void *cookie); |
37 int func_has_abort(void *cookie); | 34 int func_has_abort(void *cookie); |
38 dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv); | 35 dict_T *make_partial(dict_T *selfdict_in, typval_T *rettv); |
39 char_u *func_name(void *cookie); | 36 char_u *func_name(void *cookie); |
40 linenr_T *func_breakpoint(void *cookie); | 37 linenr_T *func_breakpoint(void *cookie); |