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