Karsten Hopp a26ff9
To: vim_dev@googlegroups.com
Karsten Hopp a26ff9
Subject: Patch 7.3.1311
Karsten Hopp a26ff9
Fcc: outbox
Karsten Hopp a26ff9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a26ff9
Mime-Version: 1.0
Karsten Hopp a26ff9
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a26ff9
Content-Transfer-Encoding: 8bit
Karsten Hopp a26ff9
------------
Karsten Hopp a26ff9
Karsten Hopp a26ff9
Patch 7.3.1311
Karsten Hopp a26ff9
Problem:    Compiler warnings on Cygwin.
Karsten Hopp a26ff9
Solution:   Add type casts. Add windows include files. (Ken Takata)
Karsten Hopp a26ff9
Files:	    src/mbyte.c, src/ui.c
Karsten Hopp a26ff9
Karsten Hopp a26ff9
Karsten Hopp a26ff9
*** ../vim-7.3.1310/src/mbyte.c	2013-06-28 20:16:50.000000000 +0200
Karsten Hopp a26ff9
--- src/mbyte.c	2013-07-05 20:07:21.000000000 +0200
Karsten Hopp a26ff9
***************
Karsten Hopp a26ff9
*** 4108,4114 ****
Karsten Hopp a26ff9
  	p += 6;
Karsten Hopp a26ff9
  
Karsten Hopp a26ff9
      if (p[0] == 'c' && p[1] == 'p')
Karsten Hopp a26ff9
! 	cp = atoi(p + 2);
Karsten Hopp a26ff9
      else if ((idx = enc_canon_search(p)) >= 0)
Karsten Hopp a26ff9
  	cp = enc_canon_table[idx].codepage;
Karsten Hopp a26ff9
      else
Karsten Hopp a26ff9
--- 4108,4114 ----
Karsten Hopp a26ff9
  	p += 6;
Karsten Hopp a26ff9
  
Karsten Hopp a26ff9
      if (p[0] == 'c' && p[1] == 'p')
Karsten Hopp a26ff9
! 	cp = atoi((char *)p + 2);
Karsten Hopp a26ff9
      else if ((idx = enc_canon_search(p)) >= 0)
Karsten Hopp a26ff9
  	cp = enc_canon_table[idx].codepage;
Karsten Hopp a26ff9
      else
Karsten Hopp a26ff9
*** ../vim-7.3.1310/src/ui.c	2013-07-03 16:58:40.000000000 +0200
Karsten Hopp a26ff9
--- src/ui.c	2013-07-05 20:07:21.000000000 +0200
Karsten Hopp a26ff9
***************
Karsten Hopp a26ff9
*** 18,23 ****
Karsten Hopp a26ff9
--- 18,29 ----
Karsten Hopp a26ff9
  
Karsten Hopp a26ff9
  #include "vim.h"
Karsten Hopp a26ff9
  
Karsten Hopp a26ff9
+ #ifdef FEAT_CYGWIN_WIN32_CLIPBOARD
Karsten Hopp a26ff9
+ # define WIN32_LEAN_AND_MEAN
Karsten Hopp a26ff9
+ # include <windows.h>
Karsten Hopp a26ff9
+ # include "winclip.pro"
Karsten Hopp a26ff9
+ #endif
Karsten Hopp a26ff9
+ 
Karsten Hopp a26ff9
      void
Karsten Hopp a26ff9
  ui_write(s, len)
Karsten Hopp a26ff9
      char_u  *s;
Karsten Hopp a26ff9
*** ../vim-7.3.1310/src/version.c	2013-07-05 20:01:26.000000000 +0200
Karsten Hopp a26ff9
--- src/version.c	2013-07-05 20:05:39.000000000 +0200
Karsten Hopp a26ff9
***************
Karsten Hopp a26ff9
*** 730,731 ****
Karsten Hopp a26ff9
--- 730,733 ----
Karsten Hopp a26ff9
  {   /* Add new patch number below this line */
Karsten Hopp a26ff9
+ /**/
Karsten Hopp a26ff9
+     1311,
Karsten Hopp a26ff9
  /**/
Karsten Hopp a26ff9
Karsten Hopp a26ff9
-- 
Karsten Hopp a26ff9
ARTHUR:          But if he was dying, he wouldn't bother to carve
Karsten Hopp a26ff9
                 "Aaaaarrrrrrggghhh".  He'd just say it.
Karsten Hopp a26ff9
BROTHER MAYNARD: It's down there carved in stone.
Karsten Hopp a26ff9
GALAHAD:         Perhaps he was dictating.
Karsten Hopp a26ff9
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp a26ff9
Karsten Hopp a26ff9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a26ff9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a26ff9
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a26ff9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///