To: vim_dev@googlegroups.com Subject: Patch 8.0.1399 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1399 Problem: Warnings and errors when building tiny version. (Tony Mechelynck) Solution: Add #ifdefs. Files: src/ex_getln.c, src/ops.c *** ../vim-8.0.1398/src/ex_getln.c 2017-12-16 19:05:18.246528820 +0100 --- src/ex_getln.c 2017-12-17 14:52:14.772482714 +0100 *************** *** 172,177 **** --- 172,178 ---- redraw_cmdline = TRUE; } + #ifdef FEAT_SEARCH_EXTRA /* * Guess that the pattern matches everything. Only finds specific cases, such * as a trailing \|, which can happen while typing a pattern. *************** *** 187,192 **** --- 188,194 ---- n -= 2; return n == 0 || (n >= 2 && p[n - 2] == '\\' && p[n - 1] == '|'); } + #endif /* * getcmdline() - accept a command line starting with firstc. *** ../vim-8.0.1398/src/ops.c 2017-12-16 18:26:56.622992523 +0100 --- src/ops.c 2017-12-17 14:52:36.116343454 +0100 *************** *** 1645,1650 **** --- 1645,1651 ---- y_regs[1].y_array = NULL; /* set register one to empty */ } + #ifdef FEAT_AUTOCMD static void yank_do_autocmd(oparg_T *oap, yankreg_T *reg) { *************** *** 1701,1706 **** --- 1702,1708 ---- dict_free_contents(v_event); hash_init(&v_event->dv_hashtab); } + #endif /* * Handle a delete operation. *** ../vim-8.0.1398/src/version.c 2017-12-17 14:26:40.818477607 +0100 --- src/version.c 2017-12-17 14:54:48.887477131 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1399, /**/ -- Two percent of zero is almost nothing. /// 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 ///