Dominique wrote:

> I see a few lines of code not covered with tests in
> call_internal_method() at evalfunc.c:2723.  This "if"
> block is never entered:
> 
> 2721     if (global_functions[fi].f_argtype == FEARG_LAST)
> 2722     {
> 2723         // base value goes last
> 2724         for (i = 0; i < argcount; ++i)
> 2725             argv[i] = argvars[i];
> 2726         argv[argcount] = *basetv;
> 2727     }
> 
> It seems to be dead code since I don't see where we
> assign the value FEARG_LAST:
> 
> $ cd vim
> $ grep -rn FEARG_LAST .
> ./evalfunc.c:1205:#define FEARG_LAST 9        // base is the last argument
> ./evalfunc.c:2721:    if (global_functions[fi].f_argtype == FEARG_LAST)
> 
> Or am I missing something here?

Looks like it was planned to be used, but ended up being unused.
I'll remove it.

-- 
hundred-and-one symptoms of being an internet addict:
180. You maintain more than six e-mail addresses.

 /// 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.B4A081C0A5B%40moolenaar.net.

Raspunde prin e-mail lui