diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-06 18:57:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-06 18:57:08 +0100 |
commit | ca16c60f337ed33d5dd66a6e90aaf95b619c5e47 (patch) | |
tree | 4c552c6a030970a050e9ab9aeea33fa222d717aa /src/profiler.c | |
parent | 58779858fb5a82a3233af5d4237a3cece88c10d4 (diff) | |
download | vim-git-ca16c60f337ed33d5dd66a6e90aaf95b619c5e47.tar.gz |
patch 9.0.0398: members of funccall_T are inconsistently namedv9.0.0398
Problem: Members of funccall_T are inconsistently named.
Solution: Use the "fc_" prefix for all members.
Diffstat (limited to 'src/profiler.c')
-rw-r--r-- | src/profiler.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/profiler.c b/src/profiler.c index 8b6b810e7..9c9fa9dbc 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -718,8 +718,8 @@ prof_child_enter( { funccall_T *fc = get_current_funccal(); - if (fc != NULL && fc->func->uf_profiling) - profile_start(&fc->prof_child); + if (fc != NULL && fc->fc_func->uf_profiling) + profile_start(&fc->fc_prof_child); script_prof_save(tm); } @@ -733,12 +733,12 @@ prof_child_exit( { funccall_T *fc = get_current_funccal(); - if (fc != NULL && fc->func->uf_profiling) + if (fc != NULL && fc->fc_func->uf_profiling) { - profile_end(&fc->prof_child); - profile_sub_wait(tm, &fc->prof_child); // don't count waiting time - profile_add(&fc->func->uf_tm_children, &fc->prof_child); - profile_add(&fc->func->uf_tml_children, &fc->prof_child); + profile_end(&fc->fc_prof_child); + profile_sub_wait(tm, &fc->fc_prof_child); // don't count waiting time + profile_add(&fc->fc_func->uf_tm_children, &fc->fc_prof_child); + profile_add(&fc->fc_func->uf_tml_children, &fc->fc_prof_child); } script_prof_restore(tm); } @@ -753,7 +753,7 @@ prof_child_exit( func_line_start(void *cookie, long lnum) { funccall_T *fcp = (funccall_T *)cookie; - ufunc_T *fp = fcp->func; + ufunc_T *fp = fcp->fc_func; if (fp->uf_profiling && lnum >= 1 && lnum <= fp->uf_lines.ga_len) { @@ -775,7 +775,7 @@ func_line_start(void *cookie, long lnum) func_line_exec(void *cookie) { funccall_T *fcp = (funccall_T *)cookie; - ufunc_T *fp = fcp->func; + ufunc_T *fp = fcp->fc_func; if (fp->uf_profiling && fp->uf_tml_idx >= 0) fp->uf_tml_execed = TRUE; @@ -788,7 +788,7 @@ func_line_exec(void *cookie) func_line_end(void *cookie) { funccall_T *fcp = (funccall_T *)cookie; - ufunc_T *fp = fcp->func; + ufunc_T *fp = fcp->fc_func; if (fp->uf_profiling && fp->uf_tml_idx >= 0) { |