vim-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: vim/vim#17068

adcfb6caeb

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
This commit is contained in:
zeertzjq
2025-04-08 12:06:58 +08:00
parent 00eff4b196
commit 454abde1aa
3 changed files with 24 additions and 20 deletions

View File

@@ -239,8 +239,8 @@ void early_init(mparm_T *paramp)
set_lang_var(); // set v:lang and v:ctype
// initialize global quickfix list
qf_init_quickfix_stack();
// initialize quickfix list
qf_init_stack();
}
#ifdef MAKE_LIB