Karsten Hopp 5f18a4
To: vim_dev@googlegroups.com
Karsten Hopp 5f18a4
Subject: Patch 7.4.141
Karsten Hopp 5f18a4
Fcc: outbox
Karsten Hopp 5f18a4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5f18a4
Mime-Version: 1.0
Karsten Hopp 5f18a4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5f18a4
Content-Transfer-Encoding: 8bit
Karsten Hopp 5f18a4
------------
Karsten Hopp 5f18a4
Karsten Hopp 5f18a4
Patch 7.4.141
Karsten Hopp 5f18a4
Problem:    Problems when building with Borland: st_mode is signed short;
Karsten Hopp 5f18a4
	    can't build with Python; temp files not ignored by Mercurial;
Karsten Hopp 5f18a4
	    building with DEBUG doesn't define _DEBUG.
Karsten Hopp 5f18a4
Solution:   Fix the problems. (Ken Takata)
Karsten Hopp 5f18a4
Files:	    src/Make_bc5.mak, src/if_py_both.h, src/os_win32.c
Karsten Hopp 5f18a4
Karsten Hopp 5f18a4
Karsten Hopp 5f18a4
*** ../vim-7.4.140/src/Make_bc5.mak	2013-06-03 20:09:58.000000000 +0200
Karsten Hopp 5f18a4
--- src/Make_bc5.mak	2014-01-10 18:12:14.000000000 +0100
Karsten Hopp 5f18a4
***************
Karsten Hopp 5f18a4
*** 419,425 ****
Karsten Hopp 5f18a4
  ALIGNARG = -a$(ALIGN)
Karsten Hopp 5f18a4
  #
Karsten Hopp 5f18a4
  !if ("$(DEBUG)"=="yes")
Karsten Hopp 5f18a4
! DEFINES=$(DEFINES) -DDEBUG
Karsten Hopp 5f18a4
  !endif
Karsten Hopp 5f18a4
  #
Karsten Hopp 5f18a4
  !if ("$(OLE)"=="yes")
Karsten Hopp 5f18a4
--- 419,425 ----
Karsten Hopp 5f18a4
  ALIGNARG = -a$(ALIGN)
Karsten Hopp 5f18a4
  #
Karsten Hopp 5f18a4
  !if ("$(DEBUG)"=="yes")
Karsten Hopp 5f18a4
! DEFINES=$(DEFINES) -DDEBUG -D_DEBUG
Karsten Hopp 5f18a4
  !endif
Karsten Hopp 5f18a4
  #
Karsten Hopp 5f18a4
  !if ("$(OLE)"=="yes")
Karsten Hopp 5f18a4
*** ../vim-7.4.140/src/if_py_both.h	2013-12-07 14:28:37.000000000 +0100
Karsten Hopp 5f18a4
--- src/if_py_both.h	2014-01-10 18:12:14.000000000 +0100
Karsten Hopp 5f18a4
***************
Karsten Hopp 5f18a4
*** 13,18 ****
Karsten Hopp 5f18a4
--- 13,23 ----
Karsten Hopp 5f18a4
   * Common code for if_python.c and if_python3.c.
Karsten Hopp 5f18a4
   */
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
+ #ifdef __BORLANDC__
Karsten Hopp 5f18a4
+ /* Disable Warning W8060: Possibly incorrect assignment in function ... */
Karsten Hopp 5f18a4
+ # pragma warn -8060
Karsten Hopp 5f18a4
+ #endif
Karsten Hopp 5f18a4
+ 
Karsten Hopp 5f18a4
  static char_u e_py_systemexit[]	= "E880: Can't handle SystemExit of %s exception in vim";
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
  #if PY_VERSION_HEX < 0x02050000
Karsten Hopp 5f18a4
*** ../vim-7.4.140/src/os_win32.c	2014-01-10 13:51:35.000000000 +0100
Karsten Hopp 5f18a4
--- src/os_win32.c	2014-01-10 18:12:14.000000000 +0100
Karsten Hopp 5f18a4
***************
Karsten Hopp 5f18a4
*** 2960,2966 ****
Karsten Hopp 5f18a4
      int		n;
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
      n = mch_stat(name, &st);
Karsten Hopp 5f18a4
!     return n == 0 ? (long)st.st_mode : -1L;
Karsten Hopp 5f18a4
  }
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
--- 2960,2966 ----
Karsten Hopp 5f18a4
      int		n;
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
      n = mch_stat(name, &st);
Karsten Hopp 5f18a4
!     return n == 0 ? (long)(unsigned short)st.st_mode : -1L;
Karsten Hopp 5f18a4
  }
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
  
Karsten Hopp 5f18a4
*** ../vim-7.4.140/src/version.c	2014-01-10 16:43:09.000000000 +0100
Karsten Hopp 5f18a4
--- src/version.c	2014-01-10 18:14:58.000000000 +0100
Karsten Hopp 5f18a4
***************
Karsten Hopp 5f18a4
*** 740,741 ****
Karsten Hopp 5f18a4
--- 740,743 ----
Karsten Hopp 5f18a4
  {   /* Add new patch number below this line */
Karsten Hopp 5f18a4
+ /**/
Karsten Hopp 5f18a4
+     141,
Karsten Hopp 5f18a4
  /**/
Karsten Hopp 5f18a4
Karsten Hopp 5f18a4
-- 
Karsten Hopp 5f18a4
Never eat yellow snow.
Karsten Hopp 5f18a4
Karsten Hopp 5f18a4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5f18a4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5f18a4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5f18a4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///