comparison src/hardcopy.c @ 31996:ca6bc7c04163 v9.0.1330

patch 9.0.1330: handling new value of an option has a long "else if" chain Commit: https://github.com/vim/vim/commit/af93691b53f38784efce0b93fe7644c44a7e382e Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Feb 20 12:16:39 2023 +0000 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 https://github.com/vim/vim/issues/12015)
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Feb 2023 13:30:05 +0100
parents b89cfd86e18e
children 97255d909654
comparison
equal deleted inserted replaced
31995:95971aa5e525 31996:ca6bc7c04163
142 /* 142 /*
143 * Parse 'printoptions' and set the flags in "printer_opts". 143 * Parse 'printoptions' and set the flags in "printer_opts".
144 * Returns an error message or NULL; 144 * Returns an error message or NULL;
145 */ 145 */
146 char * 146 char *
147 parse_printoptions(void) 147 parse_printoptions(optset_T *args UNUSED)
148 { 148 {
149 return parse_list_options(p_popt, printer_opts, OPT_PRINT_NUM_OPTIONS); 149 return parse_list_options(p_popt, printer_opts, OPT_PRINT_NUM_OPTIONS);
150 } 150 }
151 151
152 #if defined(FEAT_POSTSCRIPT) || defined(PROTO) 152 #if defined(FEAT_POSTSCRIPT) || defined(PROTO)
153 /* 153 /*
154 * Parse 'printmbfont' and set the flags in "mbfont_opts". 154 * Parse 'printmbfont' and set the flags in "mbfont_opts".
155 * Returns an error message or NULL; 155 * Returns an error message or NULL;
156 */ 156 */
157 char * 157 char *
158 parse_printmbfont(void) 158 parse_printmbfont(optset_T *args UNUSED)
159 { 159 {
160 return parse_list_options(p_pmfn, mbfont_opts, OPT_MBFONT_NUM_OPTIONS); 160 return parse_list_options(p_pmfn, mbfont_opts, OPT_MBFONT_NUM_OPTIONS);
161 } 161 }
162 #endif 162 #endif
163 163