patch 9.1.1287: quickfix code can be further improved

Problem:  quickfix code can be further improved (after v9.1.1283)
Solution: slightly refactor quickfix.c (Hirohito Higashi)

- remove error message output
- adjust comments
- rename functions:
  - qf_init_quickfix_stack() --> qf_init_stack()
  - qf_resize_quickfix_stack() --> qf_resize_stack()
  - qf_resize_stack() --> qf_resize_stack_base()

Now qf_alloc_stack() can handle both quickfix/location lists.

closes: #17068

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-04-07 21:19:07 +02:00
committed by Christian Brabandt
parent e370141bf4
commit adcfb6caeb
5 changed files with 39 additions and 46 deletions

View File

@ -1026,10 +1026,10 @@ common_init_2(mparm_T *paramp)
#endif
#ifdef FEAT_QUICKFIX
// initialize global quickfix list
// initialize quickfix list
// don't send an error message when memory allocation fails
// do it when the user tries to access the quickfix list
qf_init_quickfix_stack();
qf_init_stack();
#endif
}