• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

K.Takata's patch queue for Vim


コミットメタ情報

リビジョン7e817eac1f6322a627a4093160f79ad68d5922da (tree)
日時2022-01-27 21:04:45
作者K.Takata <kentkt@csc....>
コミッターK.Takata

ログメッセージ

Add a new patch

変更サマリ

差分

diff -r 050c65f4d054 -r 7e817eac1f63 series
--- a/series Thu Jan 27 20:47:03 2022 +0900
+++ b/series Thu Jan 27 21:04:45 2022 +0900
@@ -30,4 +30,5 @@
3030 wip-win32-vimdir-encoding.patch #+wip
3131 win32-directwrite-ambiwidth-auto.patch
3232 dont-use-set_guifontwide-on-windows.patch
33+suppress-warnings.patch
3334 fix-config_cache-removal.patch #+rejected
diff -r 050c65f4d054 -r 7e817eac1f63 suppress-warnings.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/suppress-warnings.patch Thu Jan 27 21:04:45 2022 +0900
@@ -0,0 +1,80 @@
1+# HG changeset patch
2+# Parent 5bf0dff700532f48b95a277278f707b7038523c5
3+
4+diff --git a/src/gui_w32.c b/src/gui_w32.c
5+--- a/src/gui_w32.c
6++++ b/src/gui_w32.c
7+@@ -5852,7 +5852,7 @@ latin9_to_ucs(char_u *text, int len, WCH
8+ * noticeably so.
9+ */
10+ static void
11+-RevOut( HDC s_hdc,
12++RevOut( HDC hdc,
13+ int col,
14+ int row,
15+ UINT foptions,
16+@@ -5864,7 +5864,7 @@ RevOut( HDC s_hdc,
17+ int ix;
18+
19+ for (ix = 0; ix < (int)len; ++ix)
20+- ExtTextOut(s_hdc, col + TEXT_X(ix), row, foptions,
21++ ExtTextOut(hdc, col + TEXT_X(ix), row, foptions,
22+ pcliprect, text + ix, 1, padding);
23+ }
24+ #endif
25+@@ -5940,7 +5940,6 @@ gui_mch_draw_string(
26+ {
27+ static int *padding = NULL;
28+ static int pad_size = 0;
29+- int i;
30+ const RECT *pcliprect = NULL;
31+ UINT foptions = 0;
32+ static WCHAR *unicodebuf = NULL;
33+@@ -6031,6 +6030,8 @@ gui_mch_draw_string(
34+
35+ if (pad_size != Columns || padding == NULL || padding[0] != gui.char_width)
36+ {
37++ int i;
38++
39+ vim_free(padding);
40+ pad_size = Columns;
41+
42+diff --git a/src/os_win32.c b/src/os_win32.c
43+--- a/src/os_win32.c
44++++ b/src/os_win32.c
45+@@ -406,7 +406,7 @@ peek_console_input(
46+ DWORD nLength UNUSED,
47+ LPDWORD lpEvents)
48+ {
49+- return read_console_input(hInput, lpBuffer, -1, lpEvents);
50++ return read_console_input(hInput, lpBuffer, (DWORD)-1, lpEvents);
51+ }
52+
53+ # ifdef FEAT_CLIENTSERVER
54+@@ -418,7 +418,7 @@ msg_wait_for_multiple_objects(
55+ DWORD dwMilliseconds,
56+ DWORD dwWakeMask)
57+ {
58+- if (read_console_input(NULL, NULL, -2, NULL))
59++ if (read_console_input(NULL, NULL, (DWORD)-2, NULL))
60+ return WAIT_OBJECT_0;
61+ return MsgWaitForMultipleObjects(nCount, pHandles, fWaitAll,
62+ dwMilliseconds, dwWakeMask);
63+@@ -5538,7 +5538,7 @@ mch_signal_job(job_T *job, char_u *how)
64+ {
65+ if (job->jv_channel != NULL && job->jv_channel->ch_anonymous_pipe)
66+ job->jv_channel->ch_killing = TRUE;
67+- return TerminateJobObject(job->jv_job_object, -1) ? OK : FAIL;
68++ return TerminateJobObject(job->jv_job_object, (UINT)-1) ? OK : FAIL;
69+ }
70+ return terminate_all(job->jv_proc_info.hProcess, -1) ? OK : FAIL;
71+ }
72+@@ -6271,7 +6271,7 @@ write_chars(
73+ cchwritten = 1;
74+ }
75+
76+- if (cchwritten == length)
77++ if (cchwritten == (DWORD)length)
78+ {
79+ written = cbToWrite;
80+ g_coord.X += (SHORT)cells;