To: vim_dev@googlegroups.com Subject: Patch 8.2.1643 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///