• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

K.Takata's patch queue for Vim


Commit MetaInfo

Revision3536a11092ad980b29ee9d7577ebee0f468c2c7d (tree)
Zeit2022-02-04 20:03:22
AutorK.Takata <kentkt@csc....>
CommiterK.Takata

Log Message

Update for 8.2.4294

Remove a merged patch.

Ändern Zusammenfassung

  • modified: series (diff)
  • delete: adjust-cygwin-preproc.patch

Diff

diff -r 511bdd8a6542 -r 3536a11092ad adjust-cygwin-preproc.patch
--- a/adjust-cygwin-preproc.patch Fri Feb 04 12:09:47 2022 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,170 +0,0 @@
1-# HG changeset patch
2-# Parent 40f427c198ca043f9ef19f4fe5ebca4b974d4302
3-
4-diff --git a/src/evalfunc.c b/src/evalfunc.c
5---- a/src/evalfunc.c
6-+++ b/src/evalfunc.c
7-@@ -5196,7 +5196,7 @@ f_has(typval_T *argvars, typval_T *rettv
8- #endif
9- },
10- {"win32unix",
11--#if defined(UNIX) && defined(__CYGWIN__)
12-+#ifdef WIN32UNIX
13- 1
14- #else
15- 0
16-diff --git a/src/main.c b/src/main.c
17---- a/src/main.c
18-+++ b/src/main.c
19-@@ -11,11 +11,9 @@
20- #include "vim.h"
21-
22- #ifdef __CYGWIN__
23--# ifndef MSWIN
24--# include <cygwin/version.h>
25--# include <sys/cygwin.h> // for cygwin_conv_to_posix_path() and/or
26-+# include <cygwin/version.h>
27-+# include <sys/cygwin.h> // for cygwin_conv_to_posix_path() and/or
28- // cygwin_conv_path()
29--# endif
30- # include <limits.h>
31- #endif
32-
33-@@ -2576,7 +2574,7 @@ scripterror:
34- }
35- }
36- #endif
37--#if defined(__CYGWIN32__) && !defined(MSWIN)
38-+#ifdef __CYGWIN32__
39- /*
40- * If vim is invoked by non-Cygwin tools, convert away any
41- * DOS paths, so things like .swp files are created correctly.
42-diff --git a/src/os_unix.c b/src/os_unix.c
43---- a/src/os_unix.c
44-+++ b/src/os_unix.c
45-@@ -44,15 +44,13 @@ static int selinux_enabled = -1;
46- #endif
47-
48- #ifdef __CYGWIN__
49--# ifndef MSWIN
50--# include <cygwin/version.h>
51--# include <sys/cygwin.h> // for cygwin_conv_to_posix_path() and/or
52-+# include <cygwin/version.h>
53-+# include <sys/cygwin.h> // for cygwin_conv_to_posix_path() and/or
54- // for cygwin_conv_path()
55--# ifdef FEAT_CYGWIN_WIN32_CLIPBOARD
56--# define WIN32_LEAN_AND_MEAN
57--# include <windows.h>
58--# include "winclip.pro"
59--# endif
60-+# ifdef FEAT_CYGWIN_WIN32_CLIPBOARD
61-+# define WIN32_LEAN_AND_MEAN
62-+# include <windows.h>
63-+# include "winclip.pro"
64- # endif
65- #endif
66-
67-diff --git a/src/os_win32.c b/src/os_win32.c
68---- a/src/os_win32.c
69-+++ b/src/os_win32.c
70-@@ -241,12 +241,6 @@ static WCHAR *exe_pathw = NULL;
71-
72- static BOOL win8_or_later = FALSE;
73-
74--#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
75--# define UChar UnicodeChar
76--#else
77--# define UChar uChar.UnicodeChar
78--#endif
79--
80- /*
81- * Get version number including build number
82- */
83-@@ -285,7 +279,7 @@ is_ambiwidth_event(
84- && ir->Event.KeyEvent.wRepeatCount == 1
85- && ir->Event.KeyEvent.wVirtualKeyCode == 0x12
86- && ir->Event.KeyEvent.wVirtualScanCode == 0x38
87-- && ir->Event.KeyEvent.UChar == 0
88-+ && ir->Event.KeyEvent.uChar.UnicodeChar == 0
89- && ir->Event.KeyEvent.dwControlKeyState == 2;
90- }
91-
92-@@ -296,7 +290,8 @@ make_ambiwidth_event(
93- {
94- down->Event.KeyEvent.wVirtualKeyCode = 0;
95- down->Event.KeyEvent.wVirtualScanCode = 0;
96-- down->Event.KeyEvent.UChar = up->Event.KeyEvent.UChar;
97-+ down->Event.KeyEvent.uChar.UnicodeChar
98-+ = up->Event.KeyEvent.uChar.UnicodeChar;
99- down->Event.KeyEvent.dwControlKeyState = 0;
100- }
101-
102-@@ -1006,12 +1001,12 @@ win32_kbd_patch_key(
103-
104- if (s_iIsDead == 2)
105- {
106-- pker->UChar = (WCHAR) awAnsiCode[1];
107-+ pker->uChar.UnicodeChar = (WCHAR) awAnsiCode[1];
108- s_iIsDead = 0;
109- return 1;
110- }
111-
112-- if (pker->UChar != 0)
113-+ if (pker->uChar.UnicodeChar != 0)
114- return 1;
115-
116- CLEAR_FIELD(abKeystate);
117-@@ -1034,7 +1029,7 @@ win32_kbd_patch_key(
118- abKeystate, awAnsiCode, 2, 0);
119-
120- if (s_iIsDead > 0)
121-- pker->UChar = (WCHAR) awAnsiCode[0];
122-+ pker->uChar.UnicodeChar = (WCHAR) awAnsiCode[0];
123-
124- return s_iIsDead;
125- }
126-@@ -1076,7 +1071,8 @@ decode_key_event(
127- }
128-
129- // special cases
130-- if ((nModifs & CTRL) != 0 && (nModifs & ~CTRL) == 0 && pker->UChar == NUL)
131-+ if ((nModifs & CTRL) != 0 && (nModifs & ~CTRL) == 0
132-+ && pker->uChar.UnicodeChar == NUL)
133- {
134- // Ctrl-6 is Ctrl-^
135- if (pker->wVirtualKeyCode == '6')
136-@@ -1138,7 +1134,7 @@ decode_key_event(
137- *pch = NUL;
138- else
139- {
140-- *pch = (i > 0) ? pker->UChar : NUL;
141-+ *pch = (i > 0) ? pker->uChar.UnicodeChar : NUL;
142-
143- if (pmodifiers != NULL)
144- {
145-@@ -1684,7 +1680,7 @@ WaitForChar(long msec, int ignore_input)
146- # ifdef FEAT_MBYTE_IME
147- // Windows IME sends two '\n's with only one 'ENTER'. First:
148- // wVirtualKeyCode == 13. second: wVirtualKeyCode == 0
149-- if (ir.Event.KeyEvent.UChar == 0
150-+ if (ir.Event.KeyEvent.uChar.UnicodeChar == 0
151- && ir.Event.KeyEvent.wVirtualKeyCode == 13)
152- {
153- read_console_input(g_hConIn, &ir, 1, &cRecords);
154-diff --git a/src/os_win32.h b/src/os_win32.h
155---- a/src/os_win32.h
156-+++ b/src/os_win32.h
157-@@ -11,11 +11,9 @@
158- */
159-
160- #include "os_dos.h" // common MS-DOS and Win32 stuff
161--#ifndef __CYGWIN__
162- // cproto fails on missing include files
163--# ifndef PROTO
164--# include <direct.h> // for _mkdir()
165--# endif
166-+#ifndef PROTO
167-+# include <direct.h> // for _mkdir()
168- #endif
169-
170- #define BINARY_FILE_IO
diff -r 511bdd8a6542 -r 3536a11092ad series
--- a/series Fri Feb 04 12:09:47 2022 +0900
+++ b/series Fri Feb 04 20:03:22 2022 +0900
@@ -30,5 +30,4 @@
3030 wip-win32-vimdir-encoding.patch #+wip
3131 win32-directwrite-ambiwidth-auto.patch
3232 suppress-warnings.patch
33-adjust-cygwin-preproc.patch
3433 fix-config_cache-removal.patch #+rejected