Mercurial > vim
changeset 8043:167e22951df4 v7.4.1316
commit https://github.com/vim/vim/commit/fa4bce7dd23e62d5a2fd79c7719969e11d5597aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 13 23:50:08 2016 +0100
patch 7.4.1316
Problem: Can't build MS-Windows console version. (Tux)
Solution: Add #ifdefs.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 14 Feb 2016 00:00:05 +0100 |
parents | 34bbac68276e |
children | 0468a9228c99 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -627,7 +627,9 @@ static void f_isdirectory(typval_T *argv static void f_islocked(typval_T *argvars, typval_T *rettv); static void f_items(typval_T *argvars, typval_T *rettv); #ifdef FEAT_JOB +# ifdef FEAT_CHANNEL static void f_job_getchannel(typval_T *argvars, typval_T *rettv); +# endif static void f_job_start(typval_T *argvars, typval_T *rettv); static void f_job_stop(typval_T *argvars, typval_T *rettv); static void f_job_status(typval_T *argvars, typval_T *rettv); @@ -7741,6 +7743,7 @@ channel_unref(channel_T *channel) static void job_free(job_T *job) { +# ifdef FEAT_CHANNEL if (job->jv_channel != NULL) { /* The channel doesn't count as a references for the job, we need to @@ -7748,6 +7751,7 @@ job_free(job_T *job) job->jv_channel->ch_job = NULL; channel_unref(job->jv_channel); } +# endif mch_clear_job(job); vim_free(job); } @@ -8238,7 +8242,9 @@ static struct fst {"islocked", 1, 1, f_islocked}, {"items", 1, 1, f_items}, #ifdef FEAT_JOB +# ifdef FEAT_CHANNEL {"job_getchannel", 1, 1, f_job_getchannel}, +# endif {"job_start", 1, 2, f_job_start}, {"job_status", 1, 1, f_job_status}, {"job_stop", 1, 2, f_job_stop}, @@ -10747,7 +10753,7 @@ f_empty(typval_T *argvars, typval_T *ret break; #endif case VAR_CHANNEL: -#ifdef FEAT_CMDWIN +#ifdef FEAT_CHANNEL n = argvars[0].vval.v_channel == NULL || !channel_is_open(argvars[0].vval.v_channel); break; @@ -14395,6 +14401,8 @@ f_items(typval_T *argvars, typval_T *ret } #ifdef FEAT_JOB + +# ifdef FEAT_CHANNEL /* * "job_getchannel()" function */ @@ -14413,6 +14421,7 @@ f_job_getchannel(typval_T *argvars, typv ++job->jv_channel->ch_refcount; } } +# endif /* * "job_start()" function