diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-16 16:57:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 16:57:25 +0800 |
commit | 42e55ba009ecc14afa1b519c8de02cb30c0d1671 (patch) | |
tree | 7d937655803f94f2a71af62902fa40b36759c94a /src/nvim/profile.c | |
parent | 0b855f7c07b5424bfb68352532b03bc4eb21b94a (diff) | |
download | rneovim-42e55ba009ecc14afa1b519c8de02cb30c0d1671.tar.gz rneovim-42e55ba009ecc14afa1b519c8de02cb30c0d1671.tar.bz2 rneovim-42e55ba009ecc14afa1b519c8de02cb30c0d1671.zip |
vim-patch:9.0.0398: members of funccall_T are inconsistently named (#23123)
Problem: Members of funccall_T are inconsistently named.
Solution: Use the "fc_" prefix for all members.
https://github.com/vim/vim/commit/ca16c60f337ed33d5dd66a6e90aaf95b619c5e47
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/profile.c')
-rw-r--r-- | src/nvim/profile.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/nvim/profile.c b/src/nvim/profile.c index 6b841bd961..d8ba4741bc 100644 --- a/src/nvim/profile.c +++ b/src/nvim/profile.c @@ -513,8 +513,8 @@ void prof_child_enter(proftime_T *tm) { funccall_T *fc = get_current_funccal(); - if (fc != NULL && fc->func->uf_profiling) { - fc->prof_child = profile_start(); + if (fc != NULL && fc->fc_func->uf_profiling) { + fc->fc_prof_child = profile_start(); } script_prof_save(tm); @@ -528,14 +528,14 @@ void prof_child_exit(proftime_T *tm) { funccall_T *fc = get_current_funccal(); - if (fc != NULL && fc->func->uf_profiling) { - fc->prof_child = profile_end(fc->prof_child); + if (fc != NULL && fc->fc_func->uf_profiling) { + fc->fc_prof_child = profile_end(fc->fc_prof_child); // don't count waiting time - fc->prof_child = profile_sub_wait(*tm, fc->prof_child); - fc->func->uf_tm_children = - profile_add(fc->func->uf_tm_children, fc->prof_child); - fc->func->uf_tml_children = - profile_add(fc->func->uf_tml_children, fc->prof_child); + fc->fc_prof_child = profile_sub_wait(*tm, fc->fc_prof_child); + fc->fc_func->uf_tm_children = + profile_add(fc->fc_func->uf_tm_children, fc->fc_prof_child); + fc->fc_func->uf_tml_children = + profile_add(fc->fc_func->uf_tml_children, fc->fc_prof_child); } script_prof_restore(tm); } @@ -547,7 +547,7 @@ void prof_child_exit(proftime_T *tm) void func_line_start(void *cookie) { funccall_T *fcp = (funccall_T *)cookie; - ufunc_T *fp = fcp->func; + ufunc_T *fp = fcp->fc_func; if (fp->uf_profiling && SOURCING_LNUM >= 1 && SOURCING_LNUM <= fp->uf_lines.ga_len) { fp->uf_tml_idx = SOURCING_LNUM - 1; @@ -566,7 +566,7 @@ void func_line_start(void *cookie) void 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; @@ -577,7 +577,7 @@ void func_line_exec(void *cookie) void 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) { if (fp->uf_tml_execed) { |