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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220101194250.B93621C0CF0%40moolenaar.net.