To: vim_dev@googlegroups.com Subject: Patch 8.2.3976 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3976 Problem: FEARG_LAST is never used. (Dominique Pellé) Solution: Remove FEARG_LAST and the related code. Files: src/evalfunc.c *** ../vim-8.2.3975/src/evalfunc.c 2022-01-01 16:20:56.900401501 +0000 --- src/evalfunc.c 2022-01-01 19:40:27.872698504 +0000 *************** *** 1202,1208 **** #define FEARG_2 2 // base is the second argument #define FEARG_3 3 // base is the third argument #define FEARG_4 4 // base is the fourth argument - #define FEARG_LAST 9 // base is the last argument #ifdef FEAT_FLOAT # define FLOAT_FUNC(name) name --- 1202,1207 ---- *************** *** 2718,2731 **** if (argcount + 1 > global_functions[fi].f_max_argc) return FCERR_TOOMANY; ! if (global_functions[fi].f_argtype == FEARG_LAST) ! { ! // base value goes last ! for (i = 0; i < argcount; ++i) ! argv[i] = argvars[i]; ! argv[argcount] = *basetv; ! } ! else if (global_functions[fi].f_argtype == FEARG_2) { // base value goes second argv[0] = argvars[0]; --- 2717,2723 ---- if (argcount + 1 > global_functions[fi].f_max_argc) return FCERR_TOOMANY; ! if (global_functions[fi].f_argtype == FEARG_2) { // base value goes second argv[0] = argvars[0]; *** ../vim-8.2.3975/src/version.c 2022-01-01 19:33:46.773076795 +0000 --- src/version.c 2022-01-01 19:40:47.168680246 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3976, /**/ -- hundred-and-one symptoms of being an internet addict: 181. You still remember the "happy tune" your modem made while dialing your ISP. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///