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>
diff --git a/src/main.c b/src/main.c
index a3caac8..9a862c4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1026,10 +1026,10 @@
#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
}