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 -- [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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui