Mercurial > vim
annotate src/os_w32exe.c @ 16566:72afc10bf322 v8.1.1286
patch 8.1.1286: running tests leaves XTest_tabpage_cmdheight file behind
commit https://github.com/vim/vim/commit/4fa06870e5d347c30fe55290dab87e494c8aa06a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 6 22:03:39 2019 +0200
patch 8.1.1286: running tests leaves XTest_tabpage_cmdheight file behind
Problem: Running tests leaves XTest_tabpage_cmdheight file behind.
Solution: Delete the right file. (closes https://github.com/vim/vim/issues/4350)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 May 2019 22:15:06 +0200 |
parents | 7ae2396cef62 |
children | 7e733046db1d |
rev | line source |
---|---|
10042
4aead6a9b7a9
commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents:
7805
diff
changeset
|
1 /* vi:set ts=8 sts=4 sw=4 noet: |
7 | 2 * |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * GUI support by Robert Webb | |
5 * | |
6 * Do ":help uganda" in Vim to read copying and usage conditions. | |
7 * Do ":help credits" in Vim to see a list of people who contributed. | |
8 * See README.txt for an overview of the Vim source code. | |
9 */ | |
10 /* | |
11 * Windows GUI: main program (EXE) entry point: | |
12 * | |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
13 * Ron Aaron <ronaharon@yahoo.com> wrote this and the (now deleted) DLL support |
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
14 * code. |
7 | 15 */ |
16 #include "vim.h" | |
17 | |
18 #ifdef __MINGW32__ | |
19 # ifndef _cdecl | |
20 # define _cdecl | |
21 # endif | |
22 #endif | |
23 | |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
24 // cproto doesn't create a prototype for VimMain() |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
25 #ifdef VIMDLL |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
26 __declspec(dllimport) |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
27 #endif |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
28 int _cdecl VimMain(int argc, char **argv); |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
29 #ifndef VIMDLL |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
30 void _cdecl SaveInst(HINSTANCE hInst); |
7 | 31 #endif |
32 | |
33 #ifndef PROTO | |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
34 # ifdef FEAT_GUI |
7 | 35 int WINAPI |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
36 wWinMain( |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
37 HINSTANCE hInstance, |
10783
04eb70c77cf4
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
Christian Brabandt <cb@256bit.org>
parents:
10042
diff
changeset
|
38 HINSTANCE hPrevInst UNUSED, |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
39 LPWSTR lpszCmdLine UNUSED, |
10783
04eb70c77cf4
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
Christian Brabandt <cb@256bit.org>
parents:
10042
diff
changeset
|
40 int nCmdShow UNUSED) |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
41 # else |
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
42 int |
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
43 wmain(int argc UNUSED, wchar_t **argv UNUSED) |
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
44 # endif |
7 | 45 { |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
46 # ifndef VIMDLL |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
47 # ifdef FEAT_GUI |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
48 SaveInst(hInstance); |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
49 # else |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
50 SaveInst(GetModuleHandleW(NULL)); |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16198
diff
changeset
|
51 # endif |
16194
3a5114768cfa
patch 8.1.1102: Win32 exe file contains unused code
Bram Moolenaar <Bram@vim.org>
parents:
16123
diff
changeset
|
52 # endif |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16194
diff
changeset
|
53 VimMain(0, NULL); |
7 | 54 |
55 return 0; | |
56 } | |
57 #endif |