# HG changeset patch # User Bram Moolenaar # Date 1389374167 -3600 # Node ID 2ca470c6096e3ec7cbbedeb1d0281056b088812b # Parent 3fd0adcb6941a6256b93b25b5f72a98e96191187 updated for version 7.4.141 Problem: Problems when building with Borland: st_mode is signed short; can't build with Python; temp files not ignored by Mercurial; building with DEBUG doesn't define _DEBUG. Solution: Fix the problems. (Ken Takata) diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -38,6 +38,15 @@ src/Obj*/pathdef.c gvimext.dll gvimext.lib +# Borland C++ +bcc.cfg +*.ilc +*.ild +*.ilf +*.ils +*.map +*.tds + # Mac OSX src/xxd/xxd.dSYM diff --git a/src/Make_bc5.mak b/src/Make_bc5.mak --- a/src/Make_bc5.mak +++ b/src/Make_bc5.mak @@ -419,7 +419,7 @@ CPUARG = -$(CPUNR) ALIGNARG = -a$(ALIGN) # !if ("$(DEBUG)"=="yes") -DEFINES=$(DEFINES) -DDEBUG +DEFINES=$(DEFINES) -DDEBUG -D_DEBUG !endif # !if ("$(OLE)"=="yes") diff --git a/src/if_py_both.h b/src/if_py_both.h --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -13,6 +13,11 @@ * Common code for if_python.c and if_python3.c. */ +#ifdef __BORLANDC__ +/* Disable Warning W8060: Possibly incorrect assignment in function ... */ +# pragma warn -8060 +#endif + static char_u e_py_systemexit[] = "E880: Can't handle SystemExit of %s exception in vim"; #if PY_VERSION_HEX < 0x02050000 diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -2960,7 +2960,7 @@ mch_getperm(char_u *name) int n; n = mch_stat(name, &st); - return n == 0 ? (long)st.st_mode : -1L; + return n == 0 ? (long)(unsigned short)st.st_mode : -1L; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 141, +/**/ 140, /**/ 139,