0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 9.1.1793: Link error when build without channel feature

Problem:  Link error when build without channel feature
          (lindhobe, after v9.1.1774)
Solution: Remove ifdef FEAT_JOB_CHANNEL around
          check_for_string_or_blob_arg()

fixes: #18396

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-09-26 16:18:55 +00:00
parent 35a89ce9db
commit 1e009b0634
3 changed files with 2 additions and 4 deletions

View File

@@ -3136,10 +3136,8 @@ EXTERN char e_float_or_number_required_for_argument_nr[]
INIT(= N_("E1219: Float or Number required for argument %d"));
EXTERN char e_string_or_number_required_for_argument_nr[]
INIT(= N_("E1220: String or Number required for argument %d"));
# ifdef FEAT_JOB_CHANNEL
EXTERN char e_string_or_blob_required_for_argument_nr[]
INIT(= N_("E1221: String or Blob required for argument %d"));
# endif
EXTERN char e_string_or_list_required_for_argument_nr[]
INIT(= N_("E1222: String or List required for argument %d"));
EXTERN char e_string_or_dict_required_for_argument_nr[]

View File

@@ -823,7 +823,6 @@ check_for_opt_lnum_arg(typval_T *args, int idx)
|| check_for_lnum_arg(args, idx) != FAIL) ? OK : FAIL;
}
#if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
/*
* Give an error and return FAIL unless "args[idx]" is a string or a blob.
*/
@@ -837,7 +836,6 @@ check_for_string_or_blob_arg(typval_T *args, int idx)
}
return OK;
}
#endif
/*
* Give an error and return FAIL unless "args[idx]" is a string or a list.

View File

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