0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1302

Problem:    Typo in struct field name. (Ken Takata)
Solution:   Rename jf_pi to jv_pi.
This commit is contained in:
Bram Moolenaar
2016-02-11 12:48:36 +01:00
parent 39b21272d5
commit 6119e6156e
4 changed files with 10 additions and 8 deletions

View File

@@ -21622,7 +21622,7 @@ get_tv_string_buf_chk(typval_T *varp, char_u *buf)
"process %ld %s", (long)job->jv_pid, status);
# elif defined(WIN32)
vim_snprintf((char *)buf, NUMBUFLEN,
"process %ld %s", (long)job->jf_pi.dwProcessId,
"process %ld %s", (long)job->jv_pi.dwProcessId,
status);
# else
/* fall-back */

View File

@@ -5050,7 +5050,7 @@ mch_start_job(char *cmd, job_T *job)
job->jv_status = JOB_FAILED;
else
{
job->jf_pi = pi;
job->jv_pi = pi;
job->jv_status = JOB_STARTED;
}
}
@@ -5060,12 +5060,12 @@ mch_job_status(job_T *job)
{
DWORD dwExitCode = 0;
if (!GetExitCodeProcess(job->jf_pi.hProcess, &dwExitCode))
if (!GetExitCodeProcess(job->jv_pi.hProcess, &dwExitCode))
return "dead";
if (dwExitCode != STILL_ACTIVE)
{
CloseHandle(job->jf_pi.hProcess);
CloseHandle(job->jf_pi.hThread);
CloseHandle(job->jv_pi.hProcess);
CloseHandle(job->jv_pi.hThread);
return "dead";
}
return "run";
@@ -5075,12 +5075,12 @@ mch_job_status(job_T *job)
mch_stop_job(job_T *job, char_u *how)
{
if (STRCMP(how, "kill") == 0)
TerminateProcess(job->jf_pi.hProcess, 0);
TerminateProcess(job->jv_pi.hProcess, 0);
else
return GenerateConsoleCtrlEvent(
STRCMP(how, "hup") == 0 ?
CTRL_BREAK_EVENT : CTRL_C_EVENT,
job->jf_pi.dwProcessId) ? OK : FAIL;
job->jv_pi.dwProcessId) ? OK : FAIL;
return OK;
}
#endif

View File

@@ -1249,7 +1249,7 @@ struct jobvar_S
int jv_exitval;
#endif
#ifdef WIN32
PROCESS_INFORMATION jf_pi;
PROCESS_INFORMATION jv_pi;
#endif
jobstatus_T jv_status;

View File

@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1302,
/**/
1301,
/**/