comparison src/evalfunc.c @ 19386:764caba332cf v8.2.0251

patch 8.2.0251: a couple of function return types can be more specific Commit: https://github.com/vim/vim/commit/7306d6b1c9528dcfe89eb77aa7ef354ffa9605a8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 12 22:25:56 2020 +0100 patch 8.2.0251: a couple of function return types can be more specific Problem: A couple of function return types can be more specific. Solution: Use a better return type. (Ken Takata, closes https://github.com/vim/vim/issues/5629)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Feb 2020 22:30:04 +0100
parents 6c944fee0d7e
children a961efb326e5
comparison
equal deleted inserted replaced
19385:1dab34fee1ad 19386:764caba332cf
567 {"matchadd", 2, 5, FEARG_1, &t_number, f_matchadd}, 567 {"matchadd", 2, 5, FEARG_1, &t_number, f_matchadd},
568 {"matchaddpos", 2, 5, FEARG_1, &t_number, f_matchaddpos}, 568 {"matchaddpos", 2, 5, FEARG_1, &t_number, f_matchaddpos},
569 {"matcharg", 1, 1, FEARG_1, &t_list_string, f_matcharg}, 569 {"matcharg", 1, 1, FEARG_1, &t_list_string, f_matcharg},
570 {"matchdelete", 1, 2, FEARG_1, &t_number, f_matchdelete}, 570 {"matchdelete", 1, 2, FEARG_1, &t_number, f_matchdelete},
571 {"matchend", 2, 4, FEARG_1, &t_number, f_matchend}, 571 {"matchend", 2, 4, FEARG_1, &t_number, f_matchend},
572 {"matchlist", 2, 4, FEARG_1, &t_list_any, f_matchlist}, 572 {"matchlist", 2, 4, FEARG_1, &t_list_string, f_matchlist},
573 {"matchstr", 2, 4, FEARG_1, &t_string, f_matchstr}, 573 {"matchstr", 2, 4, FEARG_1, &t_string, f_matchstr},
574 {"matchstrpos", 2, 4, FEARG_1, &t_list_any, f_matchstrpos}, 574 {"matchstrpos", 2, 4, FEARG_1, &t_list_any, f_matchstrpos},
575 {"max", 1, 1, FEARG_1, &t_any, f_max}, 575 {"max", 1, 1, FEARG_1, &t_any, f_max},
576 {"min", 1, 1, FEARG_1, &t_any, f_min}, 576 {"min", 1, 1, FEARG_1, &t_any, f_min},
577 {"mkdir", 1, 3, FEARG_1, &t_number, f_mkdir}, 577 {"mkdir", 1, 3, FEARG_1, &t_number, f_mkdir},
620 #endif 620 #endif
621 #ifdef FEAT_PROP_POPUP 621 #ifdef FEAT_PROP_POPUP
622 {"prop_add", 3, 3, FEARG_1, &t_void, f_prop_add}, 622 {"prop_add", 3, 3, FEARG_1, &t_void, f_prop_add},
623 {"prop_clear", 1, 3, FEARG_1, &t_void, f_prop_clear}, 623 {"prop_clear", 1, 3, FEARG_1, &t_void, f_prop_clear},
624 {"prop_find", 1, 2, FEARG_1, &t_dict_any, f_prop_find}, 624 {"prop_find", 1, 2, FEARG_1, &t_dict_any, f_prop_find},
625 {"prop_list", 1, 2, FEARG_1, &t_list_any, f_prop_list}, 625 {"prop_list", 1, 2, FEARG_1, &t_list_dict_any, f_prop_list},
626 {"prop_remove", 1, 3, FEARG_1, &t_number, f_prop_remove}, 626 {"prop_remove", 1, 3, FEARG_1, &t_number, f_prop_remove},
627 {"prop_type_add", 2, 2, FEARG_1, &t_void, f_prop_type_add}, 627 {"prop_type_add", 2, 2, FEARG_1, &t_void, f_prop_type_add},
628 {"prop_type_change", 2, 2, FEARG_1, &t_void, f_prop_type_change}, 628 {"prop_type_change", 2, 2, FEARG_1, &t_void, f_prop_type_change},
629 {"prop_type_delete", 1, 2, FEARG_1, &t_void, f_prop_type_delete}, 629 {"prop_type_delete", 1, 2, FEARG_1, &t_void, f_prop_type_delete},
630 {"prop_type_get", 1, 2, FEARG_1, &t_dict_any, f_prop_type_get}, 630 {"prop_type_get", 1, 2, FEARG_1, &t_dict_any, f_prop_type_get},