0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.4694: avoidance of #elif causes more preproc nesting

Problem:    Avoidance of #elif causes more preproc nesting.
Solution:   Use #elif where it is useful. (Ozaki Kiichi, closes #10081)
This commit is contained in:
ichizok
2022-04-05 14:18:44 +01:00
committed by Bram Moolenaar
parent 72bb10df1f
commit 02560424bf
4 changed files with 54 additions and 97 deletions

View File

@@ -949,14 +949,12 @@ ambw_end:
|| check_opt_strings(p_wak, p_wak_values, FALSE) != OK)
errmsg = e_invalid_argument;
# ifdef FEAT_MENU
# ifdef FEAT_GUI_MOTIF
# if defined(FEAT_GUI_MOTIF)
else if (gui.in_use)
gui_motif_set_mnemonics(p_wak[0] == 'y' || p_wak[0] == 'm');
# else
# ifdef FEAT_GUI_GTK
# elif defined(FEAT_GUI_GTK)
else if (gui.in_use)
gui_gtk_set_mnemonics(p_wak[0] == 'y' || p_wak[0] == 'm');
# endif
# endif
# endif
}