comparison src/eval.c @ 8001:e5dbeb923ce6 v7.4.1295

commit https://github.com/vim/vim/commit/4d8747cdfc13843a5680dc8340fbeb6d32e7b626 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 9 20:39:26 2016 +0100 patch 7.4.1295 Problem: string(job) doesn't work well on MS-Windows. Solution: Use the process ID. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Tue, 09 Feb 2016 20:45:05 +0100
parents d244f2e46d69
children 26f555e9aab1
comparison
equal deleted inserted replaced
8000:870d9baa0314 8001:e5dbeb923ce6
21604 : job->jv_status == JOB_ENDED ? "dead" 21604 : job->jv_status == JOB_ENDED ? "dead"
21605 : "run"; 21605 : "run";
21606 # ifdef UNIX 21606 # ifdef UNIX
21607 vim_snprintf((char *)buf, NUMBUFLEN, 21607 vim_snprintf((char *)buf, NUMBUFLEN,
21608 "process %ld %s", (long)job->jv_pid, status); 21608 "process %ld %s", (long)job->jv_pid, status);
21609 # elif defined(WIN32)
21610 vim_snprintf((char *)buf, NUMBUFLEN,
21611 "process %ld %s", (long)job->jf_pi.dwProcessId,
21612 status);
21609 # else 21613 # else
21610 /* TODO */ 21614 /* fall-back */
21611 vim_snprintf((char *)buf, NUMBUFLEN, "process ? %s", status); 21615 vim_snprintf((char *)buf, NUMBUFLEN, "process ? %s", status);
21612 # endif 21616 # endif
21613 return buf; 21617 return buf;
21614 } 21618 }
21615 #endif 21619 #endif