Mercurial > vim
comparison src/vim.h @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | dfb8254aa735 |
children | b0fc1cdec2da |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
857 /* Flags for find_file_*() functions. */ | 857 /* Flags for find_file_*() functions. */ |
858 #define FINDFILE_FILE 0 /* only files */ | 858 #define FINDFILE_FILE 0 /* only files */ |
859 #define FINDFILE_DIR 1 /* only directories */ | 859 #define FINDFILE_DIR 1 /* only directories */ |
860 #define FINDFILE_BOTH 2 /* files and directories */ | 860 #define FINDFILE_BOTH 2 /* files and directories */ |
861 | 861 |
862 #ifdef FEAT_WINDOWS | 862 #define W_WINCOL(wp) (wp->w_wincol) |
863 # define W_WINCOL(wp) (wp->w_wincol) | 863 #define W_WIDTH(wp) (wp->w_width) |
864 # define W_WIDTH(wp) (wp->w_width) | 864 #define W_ENDCOL(wp) (wp->w_wincol + wp->w_width) |
865 # define W_ENDCOL(wp) (wp->w_wincol + wp->w_width) | 865 #define W_VSEP_WIDTH(wp) (wp->w_vsep_width) |
866 # define W_VSEP_WIDTH(wp) (wp->w_vsep_width) | 866 #define W_STATUS_HEIGHT(wp) (wp->w_status_height) |
867 #else | 867 #define W_WINROW(wp) (wp->w_winrow) |
868 # define W_WINCOL(wp) 0 | |
869 # define W_WIDTH(wp) Columns | |
870 # define W_ENDCOL(wp) Columns | |
871 # define W_VSEP_WIDTH(wp) 0 | |
872 #endif | |
873 #ifdef FEAT_WINDOWS | |
874 # define W_STATUS_HEIGHT(wp) (wp->w_status_height) | |
875 # define W_WINROW(wp) (wp->w_winrow) | |
876 #else | |
877 # define W_STATUS_HEIGHT(wp) 0 | |
878 # define W_WINROW(wp) 0 | |
879 #endif | |
880 | 868 |
881 #ifdef NO_EXPANDPATH | 869 #ifdef NO_EXPANDPATH |
882 # define gen_expand_wildcards mch_expand_wildcards | 870 # define gen_expand_wildcards mch_expand_wildcards |
883 #endif | 871 #endif |
884 | 872 |