diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 18:19:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 18:19:11 +0000 |
commit | 2c7a763832663d5878ff37a58c81fbe95527084a (patch) | |
tree | de001b1fcec1cf19bd23211eaa6dde7a0701c13b /src | |
parent | 720c710091ba23dcbfca46766d87b4bb57dbc892 (diff) | |
download | vim-git-2c7a763832663d5878ff37a58c81fbe95527084a.tar.gz |
updated for version 7.1b
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_w32.c | 52 | ||||
-rw-r--r-- | src/gui_xmdlg.c | 4 | ||||
-rw-r--r-- | src/screen.c | 6 |
3 files changed, 35 insertions, 27 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 11330a971..c8f409c46 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -1,4 +1,4 @@ -/* vi:set ts=8 sts=4 sw=4: +s, if any./* vi:set ts=8 sts=4 sw=4: * * VIM - Vi IMproved by Bram Moolenaar * GUI support by Robert Webb @@ -232,7 +232,29 @@ typedef struct tagNMTTDISPINFO_NEW LPARAM lParam; } NMTTDISPINFO_NEW; -#ifndef LPNMTTDISPINFO +#include <poppack.h> + +typedef HRESULT (WINAPI* DLLGETVERSIONPROC)(DLLVERSIONINFO *); +#ifndef TTM_SETMAXTIPWIDTH +# define TTM_SETMAXTIPWIDTH (WM_USER+24) +#endif + +#ifndef TTF_DI_SETITEM +# define TTF_DI_SETITEM 0x8000 +#endif + +#ifndef TTN_GETDISPINFO +# define TTN_GETDISPINFO (TTN_FIRST - 0) +#endif + +#endif /* defined(FEAT_BEVAL) */ + +#if defined(FEAT_TOOLBAR) || defined(FEAT_GUI_TABLINE) +/* Older MSVC compilers don't have LPNMTTDISPINFO[AW] thus we need to define + * it here if LPNMTTDISPINFO isn't defined. + * MingW doesn't define LPNMTTDISPINFO but typedefs it. Thus we need to check + * _MSC_VER. */ +# if !defined(LPNMTTDISPINFO) && defined(_MSC_VER) typedef struct tagNMTTDISPINFOA { NMHDR hdr; LPSTR lpszText; @@ -241,8 +263,9 @@ typedef struct tagNMTTDISPINFOA { UINT uFlags; LPARAM lParam; } NMTTDISPINFOA, *LPNMTTDISPINFOA; -# define LPNMTTDISPINFO LPNMTTDISPINFOA +# define LPNMTTDISPINFO LPNMTTDISPINFOA +# ifdef FEAT_MBYTE typedef struct tagNMTTDISPINFOW { NMHDR hdr; LPWSTR lpszText; @@ -251,25 +274,10 @@ typedef struct tagNMTTDISPINFOW { UINT uFlags; LPARAM lParam; } NMTTDISPINFOW, *LPNMTTDISPINFOW; +# endif +# endif #endif -#include <poppack.h> - -typedef HRESULT (WINAPI* DLLGETVERSIONPROC)(DLLVERSIONINFO *); -#ifndef TTM_SETMAXTIPWIDTH -# define TTM_SETMAXTIPWIDTH (WM_USER+24) -#endif - -#ifndef TTF_DI_SETITEM -# define TTF_DI_SETITEM 0x8000 -#endif - -#ifndef TTN_GETDISPINFO -# define TTN_GETDISPINFO (TTN_FIRST - 0) -#endif - -#endif /* defined(FEAT_BEVAL) */ - #ifndef TTN_GETDISPINFOW # define TTN_GETDISPINFOW (TTN_FIRST - 10) #endif @@ -3326,7 +3334,7 @@ gui_mch_dialog( * he/she can use arrow keys. * * new NOTE: BS_DEFPUSHBUTTON is required to be able to select the - * right buttun when hitting <Enter>. E.g., for the ":confirm quit" + * right button when hitting <Enter>. E.g., for the ":confirm quit" * dialog. Also needed for when the textfield is the default control. * It appears to work now (perhaps not on Win95?). */ @@ -4048,7 +4056,7 @@ initialise_toolbar(void) s_hwnd, WS_CHILD | TBSTYLE_TOOLTIPS | TBSTYLE_FLAT, 4000, //any old big number - 31, //number of images in inital bitmap + 31, //number of images in initial bitmap s_hinst, IDR_TOOLBAR1, // id of initial bitmap NULL, diff --git a/src/gui_xmdlg.c b/src/gui_xmdlg.c index dff867292..a7470580c 100644 --- a/src/gui_xmdlg.c +++ b/src/gui_xmdlg.c @@ -12,7 +12,7 @@ * * Implementation of dialogue functions for the Motif GUI variant. * - * Note about Lesstif: Apparenty lesstif doesn't get the widget layout right, + * Note about Lesstif: Apparently lesstif doesn't get the widget layout right, * when using a dynamic scrollbar policy. */ @@ -479,7 +479,7 @@ fill_lists(enum ListSpecifier fix, SharedFontSelData *data) XtFree(list[ENCODING][i]); } - /* Destroy all the outstandig menu items. + /* Destroy all the outstanding menu items. */ for (i = count[ENCODING]; i < n_items; ++i) { diff --git a/src/screen.c b/src/screen.c index eb7a63ae2..3e54ba677 100644 --- a/src/screen.c +++ b/src/screen.c @@ -37,7 +37,7 @@ * * update_screen() is the function that updates all windows and status lines. * It is called form the main loop when must_redraw is non-zero. It may be - * called from other places when an immediated screen update is needed. + * called from other places when an immediate screen update is needed. * * The part of the buffer that is displayed in a window is set with: * - w_topline (first buffer line in window) @@ -7614,7 +7614,7 @@ windgoto(row, col) int goto_cost; int attr; -#define GOTO_COST 7 /* asssume a term_windgoto() takes about 7 chars */ +#define GOTO_COST 7 /* assume a term_windgoto() takes about 7 chars */ #define HIGHL_COST 5 /* assume unhighlight takes 5 chars */ #define PLAN_LE 1 @@ -7652,7 +7652,7 @@ windgoto(row, col) * Don't do this if the cursor went beyond the last column, the cursor * position is unknown then (some terminals wrap, some don't ) * - * First check if the highlighting attibutes allow us to write + * First check if the highlighting attributes allow us to write * characters to move the cursor to the right. */ if (row >= screen_cur_row && screen_cur_col < Columns) |