0
0
mirror of https://github.com/vim/vim.git synced 2025-10-23 08:44:20 -04:00

patch 9.0.1330: handling new value of an option has a long "else if" chain

Problem:    Handling new value of an option has a long "else if" chain.
Solution:   Use a function pointer. (Yegappan Lakshmanan, closes #12015)
This commit is contained in:
Yegappan Lakshmanan
2023-02-20 12:16:39 +00:00
committed by Bram Moolenaar
parent 997b8a015c
commit af93691b53
37 changed files with 1517 additions and 1509 deletions

View File

@@ -144,7 +144,7 @@ static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T
* Returns an error message or NULL;
*/
char *
parse_printoptions(void)
parse_printoptions(optset_T *args UNUSED)
{
return parse_list_options(p_popt, printer_opts, OPT_PRINT_NUM_OPTIONS);
}
@@ -155,7 +155,7 @@ parse_printoptions(void)
* Returns an error message or NULL;
*/
char *
parse_printmbfont(void)
parse_printmbfont(optset_T *args UNUSED)
{
return parse_list_options(p_pmfn, mbfont_opts, OPT_MBFONT_NUM_OPTIONS);
}