Mercurial > vim
comparison src/gui.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 | 2a8890b80923 |
children | 1a450ce6980c |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
178 long max; /* Number of lines in buffer */ | 178 long max; /* Number of lines in buffer */ |
179 | 179 |
180 /* Values measured in characters: */ | 180 /* Values measured in characters: */ |
181 int top; /* Top of scroll bar (chars from row 0) */ | 181 int top; /* Top of scroll bar (chars from row 0) */ |
182 int height; /* Current height of scroll bar in rows */ | 182 int height; /* Current height of scroll bar in rows */ |
183 #ifdef FEAT_WINDOWS | |
184 int width; /* Current width of scroll bar in cols */ | 183 int width; /* Current width of scroll bar in cols */ |
185 #endif | |
186 int status_height; /* Height of status line */ | 184 int status_height; /* Height of status line */ |
187 #ifdef FEAT_GUI_X11 | 185 #ifdef FEAT_GUI_X11 |
188 Widget id; /* Id of real scroll bar */ | 186 Widget id; /* Id of real scroll bar */ |
189 #endif | 187 #endif |
190 #ifdef FEAT_GUI_GTK | 188 #ifdef FEAT_GUI_GTK |