patch 9.0.0398: members of funccall_T are inconsistently named
Problem: Members of funccall_T are inconsistently named.
Solution: Use the "fc_" prefix for all members.
diff --git a/src/profiler.c b/src/profiler.c
index 8b6b810..9c9fa9d 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -718,8 +718,8 @@
{
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 @@
{
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 @@
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_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_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)
{