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