0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4488: build error with +eval but without +channel or +job

Problem:    Build error with +eval but without +channel or +job.
Solution:   Add #ifdef. (John Marriott)
This commit is contained in:
Bram Moolenaar
2022-03-01 19:52:48 +00:00
parent 7a22224875
commit f6b0c79742
2 changed files with 6 additions and 0 deletions

View File

@@ -1394,10 +1394,14 @@ typval_compare_null(typval_T *tv1, typval_T *tv2)
switch (tv->v_type) switch (tv->v_type)
{ {
case VAR_BLOB: return tv->vval.v_blob == NULL; case VAR_BLOB: return tv->vval.v_blob == NULL;
#ifdef FEAT_JOB_CHANNEL
case VAR_CHANNEL: return tv->vval.v_channel == NULL; case VAR_CHANNEL: return tv->vval.v_channel == NULL;
#endif
case VAR_DICT: return tv->vval.v_dict == NULL; case VAR_DICT: return tv->vval.v_dict == NULL;
case VAR_FUNC: return tv->vval.v_string == NULL; case VAR_FUNC: return tv->vval.v_string == NULL;
#ifdef FEAT_JOB_CHANNEL
case VAR_JOB: return tv->vval.v_job == NULL; case VAR_JOB: return tv->vval.v_job == NULL;
#endif
case VAR_LIST: return tv->vval.v_list == NULL; case VAR_LIST: return tv->vval.v_list == NULL;
case VAR_PARTIAL: return tv->vval.v_partial == NULL; case VAR_PARTIAL: return tv->vval.v_partial == NULL;
case VAR_STRING: return tv->vval.v_string == NULL; case VAR_STRING: return tv->vval.v_string == NULL;

View File

@@ -754,6 +754,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 */
/**/
4488,
/**/ /**/
4487, 4487,
/**/ /**/