Karsten Hopp d0f1c7
To: vim_dev@googlegroups.com
Karsten Hopp d0f1c7
Subject: Patch 7.4.826
Karsten Hopp d0f1c7
Fcc: outbox
Karsten Hopp d0f1c7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d0f1c7
Mime-Version: 1.0
Karsten Hopp d0f1c7
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d0f1c7
Content-Transfer-Encoding: 8bit
Karsten Hopp d0f1c7
------------
Karsten Hopp d0f1c7
Karsten Hopp d0f1c7
Patch 7.4.826
Karsten Hopp d0f1c7
Problem:    Compiler warnings and errors.
Karsten Hopp d0f1c7
Solution:   Make it build properly without the multi-byte feature.
Karsten Hopp d0f1c7
Files:      src/eval.c, src/search.c
Karsten Hopp d0f1c7
Karsten Hopp d0f1c7
Karsten Hopp d0f1c7
*** ../vim-7.4.825/src/eval.c	2015-08-12 22:56:53.577637469 +0200
Karsten Hopp d0f1c7
--- src/eval.c	2015-08-13 23:23:22.978663934 +0200
Karsten Hopp d0f1c7
***************
Karsten Hopp d0f1c7
*** 17056,17063 ****
Karsten Hopp d0f1c7
  	    }
Karsten Hopp d0f1c7
  	    else
Karsten Hopp d0f1c7
  #endif
Karsten Hopp d0f1c7
! 		set_last_csearch(mb_ptr2char(csearch),
Karsten Hopp d0f1c7
! 						csearch, mb_ptr2len(csearch));
Karsten Hopp d0f1c7
  	}
Karsten Hopp d0f1c7
  
Karsten Hopp d0f1c7
  	di = dict_find(d, (char_u *)"forward", -1);
Karsten Hopp d0f1c7
--- 17056,17063 ----
Karsten Hopp d0f1c7
  	    }
Karsten Hopp d0f1c7
  	    else
Karsten Hopp d0f1c7
  #endif
Karsten Hopp d0f1c7
! 		set_last_csearch(PTR2CHAR(csearch),
Karsten Hopp d0f1c7
! 						csearch, MB_PTR2LEN(csearch));
Karsten Hopp d0f1c7
  	}
Karsten Hopp d0f1c7
  
Karsten Hopp d0f1c7
  	di = dict_find(d, (char_u *)"forward", -1);
Karsten Hopp d0f1c7
*** ../vim-7.4.825/src/search.c	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp d0f1c7
--- src/search.c	2015-08-13 23:25:44.708957357 +0200
Karsten Hopp d0f1c7
***************
Karsten Hopp d0f1c7
*** 451,458 ****
Karsten Hopp d0f1c7
      void
Karsten Hopp d0f1c7
  set_last_csearch(c, s, len)
Karsten Hopp d0f1c7
      int		c;
Karsten Hopp d0f1c7
!     char_u	*s;
Karsten Hopp d0f1c7
!     int		len;
Karsten Hopp d0f1c7
  {
Karsten Hopp d0f1c7
      *lastc = c;
Karsten Hopp d0f1c7
  #ifdef FEAT_MBYTE
Karsten Hopp d0f1c7
--- 451,458 ----
Karsten Hopp d0f1c7
      void
Karsten Hopp d0f1c7
  set_last_csearch(c, s, len)
Karsten Hopp d0f1c7
      int		c;
Karsten Hopp d0f1c7
!     char_u	*s UNUSED;
Karsten Hopp d0f1c7
!     int		len UNUSED;
Karsten Hopp d0f1c7
  {
Karsten Hopp d0f1c7
      *lastc = c;
Karsten Hopp d0f1c7
  #ifdef FEAT_MBYTE
Karsten Hopp d0f1c7
*** ../vim-7.4.825/src/version.c	2015-08-13 22:53:20.188768573 +0200
Karsten Hopp d0f1c7
--- src/version.c	2015-08-13 23:25:32.377105007 +0200
Karsten Hopp d0f1c7
***************
Karsten Hopp d0f1c7
*** 743,744 ****
Karsten Hopp d0f1c7
--- 743,746 ----
Karsten Hopp d0f1c7
  {   /* Add new patch number below this line */
Karsten Hopp d0f1c7
+ /**/
Karsten Hopp d0f1c7
+     826,
Karsten Hopp d0f1c7
  /**/
Karsten Hopp d0f1c7
Karsten Hopp d0f1c7
-- 
Karsten Hopp d0f1c7
The early bird gets the worm. The second mouse gets the cheese.
Karsten Hopp d0f1c7
Karsten Hopp d0f1c7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d0f1c7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d0f1c7
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d0f1c7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///