Mercurial > vim
annotate src/os_w32exe.c @ 16123:a246b020984c v8.1.1066
patch 8.1.1066: VIMDLL isn't actually used
commit https://github.com/vim/vim/commit/89828e9fe6de4d70e0e2ccd3c711bd26632c26a9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 28 22:43:16 2019 +0100
patch 8.1.1066: VIMDLL isn't actually used
Problem: VIMDLL isn't actually used.
Solution: Remove VIMDLL support.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Mar 2019 22:45:04 +0100 |
parents | c0961d9ac269 |
children | 3a5114768cfa |
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 * | |
16111
c0961d9ac269
patch 8.1.1060: MS-Windows: get_cmd_args() is no longer needed
Bram Moolenaar <Bram@vim.org>
parents:
15868
diff
changeset
|
13 * Ron Aaron <ronaharon@yahoo.com> wrote this and the DLL support code. |
7 | 14 */ |
15 #include "vim.h" | |
16 | |
17 #ifdef __MINGW32__ | |
18 # ifndef _cdecl | |
19 # define _cdecl | |
20 # endif | |
21 #endif | |
22 | |
23 /* cproto doesn't create a prototype for main() */ | |
24 int _cdecl | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15603
diff
changeset
|
25 #if defined(FEAT_GUI_MSWIN) |
7 | 26 VimMain |
27 #else | |
28 main | |
29 #endif | |
7805
0b6c37dd858d
commit https://github.com/vim/vim/commit/baaa7e9ec7398a813e21285c272fa99792642077
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
30 (int argc, char **argv); |
379 | 31 static int (_cdecl *pmain)(int, char **); |
7 | 32 |
33 #ifndef PROTO | |
34 #ifdef FEAT_GUI | |
35 void _cdecl SaveInst(HINSTANCE hInst); | |
379 | 36 static void (_cdecl *pSaveInst)(HINSTANCE); |
7 | 37 #endif |
38 | |
39 int WINAPI | |
40 WinMain( | |
10783
04eb70c77cf4
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
Christian Brabandt <cb@256bit.org>
parents:
10042
diff
changeset
|
41 HINSTANCE hInstance UNUSED, |
04eb70c77cf4
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
Christian Brabandt <cb@256bit.org>
parents:
10042
diff
changeset
|
42 HINSTANCE hPrevInst UNUSED, |
16111
c0961d9ac269
patch 8.1.1060: MS-Windows: get_cmd_args() is no longer needed
Bram Moolenaar <Bram@vim.org>
parents:
15868
diff
changeset
|
43 LPSTR 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
|
44 int nCmdShow UNUSED) |
7 | 45 { |
23 | 46 int argc = 0; |
16111
c0961d9ac269
patch 8.1.1060: MS-Windows: get_cmd_args() is no longer needed
Bram Moolenaar <Bram@vim.org>
parents:
15868
diff
changeset
|
47 char **argv = NULL; |
16123
a246b020984c
patch 8.1.1066: VIMDLL isn't actually used
Bram Moolenaar <Bram@vim.org>
parents:
16111
diff
changeset
|
48 #ifdef FEAT_GUI |
7 | 49 pSaveInst = SaveInst; |
16123
a246b020984c
patch 8.1.1066: VIMDLL isn't actually used
Bram Moolenaar <Bram@vim.org>
parents:
16111
diff
changeset
|
50 #endif |
7 | 51 pmain = |
16123
a246b020984c
patch 8.1.1066: VIMDLL isn't actually used
Bram Moolenaar <Bram@vim.org>
parents:
16111
diff
changeset
|
52 #if defined(FEAT_GUI_MSWIN) |
7 | 53 //&& defined(__MINGW32__) |
54 VimMain | |
16123
a246b020984c
patch 8.1.1066: VIMDLL isn't actually used
Bram Moolenaar <Bram@vim.org>
parents:
16111
diff
changeset
|
55 #else |
7 | 56 main |
16123
a246b020984c
patch 8.1.1066: VIMDLL isn't actually used
Bram Moolenaar <Bram@vim.org>
parents:
16111
diff
changeset
|
57 #endif |
7 | 58 ; |
59 #ifdef FEAT_GUI | |
60 pSaveInst( | |
61 #ifdef __MINGW32__ | |
62 GetModuleHandle(NULL) | |
63 #else | |
64 hInstance | |
65 #endif | |
66 ); | |
67 #endif | |
68 pmain(argc, argv); | |
69 | |
26 | 70 free_cmd_argsW(); |
7 | 71 |
72 return 0; | |
73 } | |
74 #endif |