Patch 8.2.1643
Problem:    Vim9: :defcompile compiles dead functions.
Solution:   Skip over dead functions.
Files:      src/userfunc.c


*** ../vim-8.2.1642/src/userfunc.c      2020-08-29 17:47:05.013718945 +0200
--- src/userfunc.c      2020-09-09 16:59:04.483300112 +0200
***************
*** 3583,3589 ****
  }
  
  /*
!  * :defcompile - compile all :def functions in the current script.
   */
      void
  ex_defcompile(exarg_T *eap UNUSED)
--- 3583,3590 ----
  }
  
  /*
!  * :defcompile - compile all :def functions in the current script that need to
!  * be compiled.  Except dead functions.
   */
      void
  ex_defcompile(exarg_T *eap UNUSED)
***************
*** 3600,3606 ****
            --todo;
            ufunc = HI2UF(hi);
            if (ufunc->uf_script_ctx.sc_sid == current_sctx.sc_sid
!                   && ufunc->uf_def_status == UF_TO_BE_COMPILED)
            {
                compile_def_function(ufunc, FALSE, NULL);
  
--- 3601,3608 ----
            --todo;
            ufunc = HI2UF(hi);
            if (ufunc->uf_script_ctx.sc_sid == current_sctx.sc_sid
!                   && ufunc->uf_def_status == UF_TO_BE_COMPILED
!                   && (ufunc->uf_flags & FC_DEAD) == 0)
            {
                compile_def_function(ufunc, FALSE, NULL);
  
*** ../vim-8.2.1642/src/version.c       2020-09-09 15:10:48.460213889 +0200
--- src/version.c       2020-09-09 16:58:30.755420407 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1643,
  /**/

-- 
An indication you must be a manager:
You believe you never have any problems in your life, just
"issues" and "improvement opportunities".

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202009091509.089F9S5l356695%40masaka.moolenaar.net.

Raspunde prin e-mail lui