summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-13 23:50:08 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-13 23:50:08 +0100
commitfa4bce7dd23e62d5a2fd79c7719969e11d5597aa (patch)
tree78cfdedbc960f9b17584944f5652e6d8bac1abb4
parent7707344ddec9069b495b2a5ed41f2104466fc88b (diff)
downloadvim-git-fa4bce7dd23e62d5a2fd79c7719969e11d5597aa.tar.gz
patch 7.4.1316v7.4.1316
Problem: Can't build MS-Windows console version. (Tux) Solution: Add #ifdefs.
-rw-r--r--src/eval.c11
-rw-r--r--src/version.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index b79bb02f9..75f5e54b5 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -627,7 +627,9 @@ static void f_isdirectory(typval_T *argvars, typval_T *rettv);
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 *rettv)
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 *rettv)
}
#ifdef FEAT_JOB
+
+# ifdef FEAT_CHANNEL
/*
* "job_getchannel()" function
*/
@@ -14413,6 +14421,7 @@ f_job_getchannel(typval_T *argvars, typval_T *rettv)
++job->jv_channel->ch_refcount;
}
}
+# endif
/*
* "job_start()" function
diff --git a/src/version.c b/src/version.c
index 897bc91f1..5343c377d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -748,6 +748,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1316,
+/**/
1315,
/**/
1314,