Skip to content

Commit 3e1de2e

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 4f2707d + 89b1042 commit 3e1de2e

File tree

10 files changed

+86
-36
lines changed

10 files changed

+86
-36
lines changed

src/Make_cyg_ming.mak

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ DIRECTX=no
4242
FEATURES=HUGE
4343
# Set to one of i386, i486, i586, i686 as the minimum target processor.
4444
# For amd64/x64 architecture set ARCH=x86-64 .
45-
ARCH=i686
45+
# If not set, it will be automatically detected. (Normally i686 or x86-64.)
46+
#ARCH=i686
4647
# Set to yes to cross-compile from unix; no=native Windows (and Cygwin).
4748
CROSS=no
4849
# Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
@@ -112,6 +113,46 @@ INTLLIB=gnu_gettext
112113
#INTLPATH=$(GETTEXT)/lib
113114
#INTLLIB=intl
114115

116+
117+
# Command definitions (depends on cross-compiling and shell)
118+
ifeq ($(CROSS),yes)
119+
# cross-compiler prefix:
120+
ifndef CROSS_COMPILE
121+
CROSS_COMPILE = i586-pc-mingw32msvc-
122+
endif
123+
DEL = rm
124+
MKDIR = mkdir -p
125+
DIRSLASH = /
126+
else
127+
# normal (Windows) compilation:
128+
ifndef CROSS_COMPILE
129+
CROSS_COMPILE =
130+
endif
131+
ifneq (sh.exe, $(SHELL))
132+
DEL = rm
133+
MKDIR = mkdir -p
134+
DIRSLASH = /
135+
else
136+
DEL = del
137+
MKDIR = mkdir
138+
DIRSLASH = \\
139+
endif
140+
endif
141+
CC := $(CROSS_COMPILE)gcc
142+
CXX := $(CROSS_COMPILE)g++
143+
ifeq ($(UNDER_CYGWIN),yes)
144+
WINDRES := $(CROSS_COMPILE)windres
145+
else
146+
WINDRES := windres
147+
endif
148+
WINDRES_CC = $(CC)
149+
150+
# Get the default ARCH.
151+
ifndef ARCH
152+
ARCH := $(shell $(CC) -dumpmachine | sed -e 's/-.*//')
153+
endif
154+
155+
115156
# Perl interface:
116157
# PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak)
117158
# DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
@@ -383,37 +424,6 @@ DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
383424
ifeq ($(ARCH),x86-64)
384425
DEFINES+=-DMS_WIN64
385426
endif
386-
ifeq ($(CROSS),yes)
387-
# cross-compiler prefix:
388-
ifndef CROSS_COMPILE
389-
CROSS_COMPILE = i586-pc-mingw32msvc-
390-
endif
391-
DEL = rm
392-
MKDIR = mkdir -p
393-
DIRSLASH = /
394-
else
395-
# normal (Windows) compilation:
396-
ifndef CROSS_COMPILE
397-
CROSS_COMPILE =
398-
endif
399-
ifneq (sh.exe, $(SHELL))
400-
DEL = rm
401-
MKDIR = mkdir -p
402-
DIRSLASH = /
403-
else
404-
DEL = del
405-
MKDIR = mkdir
406-
DIRSLASH = \\
407-
endif
408-
endif
409-
CC := $(CROSS_COMPILE)gcc
410-
CXX := $(CROSS_COMPILE)g++
411-
ifeq ($(UNDER_CYGWIN),yes)
412-
WINDRES := $(CROSS_COMPILE)windres
413-
else
414-
WINDRES := windres
415-
endif
416-
WINDRES_CC = $(CC)
417427

418428
#>>>>> end of choices
419429
###########################################################################

src/message.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4202,6 +4202,15 @@ vim_vsnprintf(
42024202
default: break;
42034203
}
42044204

4205+
# if defined(FEAT_EVAL) && defined(FEAT_NUM64)
4206+
switch (fmt_spec)
4207+
{
4208+
case 'd': case 'u': case 'o': case 'x': case 'X':
4209+
if (tvs != NULL && length_modifier == '\0')
4210+
length_modifier = 'L';
4211+
}
4212+
# endif
4213+
42054214
/* get parameter value, do initial processing */
42064215
switch (fmt_spec)
42074216
{

src/testdir/amiga.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
set shell=csh
33
map! /tmp t:
44
cmap !rm !Delete all
5+
6+
source setup.vim

src/testdir/dos.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ set shell=c:\COMMAND.COM shellquote= shellxquote= shellcmdflag=/c shellredir=>
55
if executable("cmd.exe")
66
set shell=cmd.exe
77
endif
8+
9+
source setup.vim

src/testdir/runtest.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ if &lines < 24 || &columns < 80
4242
cquit
4343
endif
4444

45+
" Common with all tests on all systems.
46+
source setup.vim
47+
4548
" For consistency run all tests with 'nocompatible' set.
4649
" This also enables use of line continuation.
4750
set nocp viminfo+=nviminfo
@@ -55,9 +58,6 @@ lang mess C
5558
" Always use forward slashes.
5659
set shellslash
5760

58-
" Make sure $HOME does not get read or written.
59-
let $HOME = '/does/not/exist'
60-
6161
let s:srcdir = expand('%:p:h:h')
6262

6363
" Prepare for calling test_garbagecollect_now().

src/testdir/setup.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
" Common preparations for running tests.
2+
3+
" Make sure 'runtimepath' does not include $HOME.
4+
set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
5+
6+
" Only when the +eval feature is present.
7+
if 1
8+
" Make sure $HOME does not get read or written.
9+
let $HOME = '/does/not/exist'
10+
endif
11+

src/testdir/test_expr.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,9 @@ func Test_option_value()
129129
call assert_equal("abcdefgi", &cpo)
130130
set cpo&vim
131131
endfunc
132+
133+
function Test_printf_64bit()
134+
if has('num64')
135+
call assert_equal("123456789012345", printf('%d', 123456789012345))
136+
endif
137+
endfunc

src/testdir/unix.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
" Settings for test script execution
22
" Always use "sh", don't use the value of "$SHELL".
33
set shell=sh
4+
5+
source setup.vim

src/testdir/vms.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
" Settings for test script execution under OpenVMS
22

3-
" Do not make any swap files
3+
" Do not use any swap files
44
set noswapfile
5+
6+
source setup.vim

src/version.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,12 @@ static char *(features[]) =
773773

774774
static int included_patches[] =
775775
{ /* Add new patch number below this line */
776+
/**/
777+
2031,
778+
/**/
779+
2030,
780+
/**/
781+
2029,
776782
/**/
777783
2028,
778784
/**/

0 commit comments

Comments
 (0)