Skip to content

Commit

Permalink
patch 8.2.0251: a couple of function return types can be more specific
Browse files Browse the repository at this point in the history
Problem:    A couple of function return types can be more specific.
Solution:   Use a better return type. (Ken Takata, closes vim#5629)
  • Loading branch information
brammool committed Feb 12, 2020
1 parent 4f5776c commit 7306d6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/evalfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ static funcentry_T global_functions[] =
{"matcharg", 1, 1, FEARG_1, &t_list_string, f_matcharg},
{"matchdelete", 1, 2, FEARG_1, &t_number, f_matchdelete},
{"matchend", 2, 4, FEARG_1, &t_number, f_matchend},
{"matchlist", 2, 4, FEARG_1, &t_list_any, f_matchlist},
{"matchlist", 2, 4, FEARG_1, &t_list_string, f_matchlist},
{"matchstr", 2, 4, FEARG_1, &t_string, f_matchstr},
{"matchstrpos", 2, 4, FEARG_1, &t_list_any, f_matchstrpos},
{"max", 1, 1, FEARG_1, &t_any, f_max},
Expand Down Expand Up @@ -622,7 +622,7 @@ static funcentry_T global_functions[] =
{"prop_add", 3, 3, FEARG_1, &t_void, f_prop_add},
{"prop_clear", 1, 3, FEARG_1, &t_void, f_prop_clear},
{"prop_find", 1, 2, FEARG_1, &t_dict_any, f_prop_find},
{"prop_list", 1, 2, FEARG_1, &t_list_any, f_prop_list},
{"prop_list", 1, 2, FEARG_1, &t_list_dict_any, f_prop_list},
{"prop_remove", 1, 3, FEARG_1, &t_number, f_prop_remove},
{"prop_type_add", 2, 2, FEARG_1, &t_void, f_prop_type_add},
{"prop_type_change", 2, 2, FEARG_1, &t_void, f_prop_type_change},
Expand Down
4 changes: 2 additions & 2 deletions src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ EXTERN type_T t_void INIT4(VAR_VOID, 0, NULL, NULL);
EXTERN type_T t_bool INIT4(VAR_BOOL, 0, NULL, NULL);
EXTERN type_T t_special INIT4(VAR_SPECIAL, 0, NULL, NULL);
EXTERN type_T t_number INIT4(VAR_NUMBER, 0, NULL, NULL);
#ifdef FEAT_FLOAT
# ifdef FEAT_FLOAT
EXTERN type_T t_float INIT4(VAR_FLOAT, 0, NULL, NULL);
#endif
# endif
EXTERN type_T t_string INIT4(VAR_STRING, 0, NULL, NULL);
EXTERN type_T t_blob INIT4(VAR_BLOB, 0, NULL, NULL);
EXTERN type_T t_job INIT4(VAR_JOB, 0, NULL, NULL);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
251,
/**/
250,
/**/
Expand Down

0 comments on commit 7306d6b

Please sign in to comment.