Mercurial > vim
comparison src/proto/hardcopy.pro @ 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 | 55ccc2d353bd |
children |
comparison
equal
deleted
inserted
replaced
31995:95971aa5e525 | 31996:ca6bc7c04163 |
---|---|
1 /* hardcopy.c */ | 1 /* hardcopy.c */ |
2 char *parse_printoptions(void); | 2 char *parse_printoptions(optset_T *args); |
3 char *parse_printmbfont(void); | 3 char *parse_printmbfont(optset_T *args); |
4 int prt_header_height(void); | 4 int prt_header_height(void); |
5 int prt_use_number(void); | 5 int prt_use_number(void); |
6 int prt_get_unit(int idx); | 6 int prt_get_unit(int idx); |
7 void ex_hardcopy(exarg_T *eap); | 7 void ex_hardcopy(exarg_T *eap); |
8 void mch_print_cleanup(void); | 8 void mch_print_cleanup(void); |