mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.3.287
Problem: Can't compile with MSVC and tiny options. Solution: Move variables and #ifdefs. (Sergey Khorev)
This commit is contained in:
@@ -3419,8 +3419,6 @@ dump_pipe(int options,
|
|||||||
{
|
{
|
||||||
DWORD availableBytes = 0;
|
DWORD availableBytes = 0;
|
||||||
DWORD i;
|
DWORD i;
|
||||||
int c;
|
|
||||||
char_u *p;
|
|
||||||
int ret;
|
int ret;
|
||||||
DWORD len;
|
DWORD len;
|
||||||
DWORD toRead;
|
DWORD toRead;
|
||||||
@@ -3479,6 +3477,8 @@ dump_pipe(int options,
|
|||||||
else if (has_mbyte)
|
else if (has_mbyte)
|
||||||
{
|
{
|
||||||
int l;
|
int l;
|
||||||
|
int c;
|
||||||
|
char_u *p;
|
||||||
|
|
||||||
len += *buffer_off;
|
len += *buffer_off;
|
||||||
buffer[len] = NUL;
|
buffer[len] = NUL;
|
||||||
@@ -3558,9 +3558,7 @@ mch_system_piped(char *cmd, int options)
|
|||||||
int noread_cnt = 0;
|
int noread_cnt = 0;
|
||||||
garray_T ga;
|
garray_T ga;
|
||||||
int delay = 1;
|
int delay = 1;
|
||||||
# ifdef FEAT_MBYTE
|
|
||||||
DWORD buffer_off = 0; /* valid bytes in buffer[] */
|
DWORD buffer_off = 0; /* valid bytes in buffer[] */
|
||||||
# endif
|
|
||||||
|
|
||||||
SECURITY_ATTRIBUTES saAttr;
|
SECURITY_ATTRIBUTES saAttr;
|
||||||
|
|
||||||
@@ -3777,14 +3775,12 @@ mch_system_piped(char *cmd, int options)
|
|||||||
|
|
||||||
if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
|
if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
|
||||||
{
|
{
|
||||||
dump_pipe(options, g_hChildStd_OUT_Rd,
|
dump_pipe(options, g_hChildStd_OUT_Rd, &ga, buffer, &buffer_off);
|
||||||
&ga, buffer, &buffer_off);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
++noread_cnt;
|
++noread_cnt;
|
||||||
dump_pipe(options, g_hChildStd_OUT_Rd,
|
dump_pipe(options, g_hChildStd_OUT_Rd, &ga, buffer, &buffer_off);
|
||||||
&ga, buffer, &buffer_off);
|
|
||||||
|
|
||||||
/* We start waiting for a very short time and then increase it, so
|
/* We start waiting for a very short time and then increase it, so
|
||||||
* that we respond quickly when the process is quick, and don't
|
* that we respond quickly when the process is quick, and don't
|
||||||
|
@@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
287,
|
||||||
/**/
|
/**/
|
||||||
286,
|
286,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user