To: vim_dev@googlegroups.com Subject: Patch 9.0.1131 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1131 (after 9.0.1130) Problem: Build failure without the +eval feature. Solution: Move code inside #ifdef. Files: src/scriptfile.c *** ../vim-9.0.1130/src/scriptfile.c 2023-01-02 13:06:22.825633043 +0000 --- src/scriptfile.c 2023-01-02 13:39:25.304390719 +0000 *************** *** 1538,1546 **** current_sctx.sc_version = SCRIPT_VERSION_VIM9; else current_sctx.sc_version = 1; // default script version - current_sctx.sc_lnum = 0; #ifdef FEAT_EVAL # ifdef FEAT_PROFILE if (do_profiling == PROF_YES) prof_child_enter(&wait_start); // entering a child now --- 1538,1547 ---- current_sctx.sc_version = SCRIPT_VERSION_VIM9; else current_sctx.sc_version = 1; // default script version #ifdef FEAT_EVAL + current_sctx.sc_lnum = 0; + # ifdef FEAT_PROFILE if (do_profiling == PROF_YES) prof_child_enter(&wait_start); // entering a child now *************** *** 1767,1775 **** if (do_profiling == PROF_YES) prof_child_exit(&wait_start); // leaving a child now # endif #endif current_sctx = save_current_sctx; - KeyTyped = save_KeyTyped; if (cookie.fp != NULL) fclose(cookie.fp); --- 1768,1777 ---- if (do_profiling == PROF_YES) prof_child_exit(&wait_start); // leaving a child now # endif + + KeyTyped = save_KeyTyped; #endif current_sctx = save_current_sctx; if (cookie.fp != NULL) fclose(cookie.fp); *** ../vim-9.0.1130/src/version.c 2023-01-02 13:06:22.825633043 +0000 --- src/version.c 2023-01-02 13:09:25.377426475 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1131, /**/ -- MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///