1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1102
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.1102
Problem: Win32 exe file contains unused code.
Solution: Remove unused #ifdefs and code. (Ken Takata, closes #4198)
Files: src/os_w32exe.c
*** ../vim-8.1.1101/src/os_w32exe.c 2019-03-28 22:43:12.103997449 +0100
--- src/os_w32exe.c 2019-04-02 22:01:29.722718578 +0200
***************
*** 10,16 ****
/*
* Windows GUI: main program (EXE) entry point:
*
! * Ron Aaron <ronaharon@yahoo.com> wrote this and the DLL support code.
*/
#include "vim.h"
--- 10,17 ----
/*
* Windows GUI: main program (EXE) entry point:
*
! * Ron Aaron <ronaharon@yahoo.com> wrote this and the (now deleted) DLL support
! * code.
*/
#include "vim.h"
***************
*** 20,73 ****
# endif
#endif
! /* cproto doesn't create a prototype for main() */
! int _cdecl
! #if defined(FEAT_GUI_MSWIN)
! VimMain
! #else
! main
! #endif
! (int argc, char **argv);
! static int (_cdecl *pmain)(int, char **);
!
! #ifndef PROTO
#ifdef FEAT_GUI
void _cdecl SaveInst(HINSTANCE hInst);
- static void (_cdecl *pSaveInst)(HINSTANCE);
#endif
int WINAPI
WinMain(
! HINSTANCE hInstance UNUSED,
HINSTANCE hPrevInst UNUSED,
LPSTR lpszCmdLine UNUSED,
int nCmdShow UNUSED)
{
int argc = 0;
char **argv = NULL;
- #ifdef FEAT_GUI
- pSaveInst = SaveInst;
- #endif
- pmain =
- #if defined(FEAT_GUI_MSWIN)
- //&& defined(__MINGW32__)
- VimMain
- #else
- main
- #endif
- ;
- #ifdef FEAT_GUI
- pSaveInst(
- #ifdef __MINGW32__
- GetModuleHandle(NULL)
- #else
- hInstance
- #endif
- );
- #endif
- pmain(argc, argv);
! free_cmd_argsW();
return 0;
}
--- 21,47 ----
# endif
#endif
! // cproto doesn't create a prototype for VimMain()
! int _cdecl VimMain(int argc, char **argv);
#ifdef FEAT_GUI
void _cdecl SaveInst(HINSTANCE hInst);
#endif
+ #ifndef PROTO
int WINAPI
WinMain(
! HINSTANCE hInstance,
HINSTANCE hPrevInst UNUSED,
LPSTR lpszCmdLine UNUSED,
int nCmdShow UNUSED)
{
int argc = 0;
char **argv = NULL;
! # ifdef FEAT_GUI
! SaveInst(hInstance);
! # endif
! VimMain(argc, argv);
return 0;
}
*** ../vim-8.1.1101/src/version.c 2019-04-02 21:45:38.260326643 +0200
--- src/version.c 2019-04-02 22:00:18.847163631 +0200
***************
*** 773,774 ****
--- 773,776 ----
{ /* Add new patch number below this line */
+ /**/
+ 1102,
/**/
--
hundred-and-one symptoms of being an internet addict:
182. You may not know what is happening in the world, but you know
every bit of net-gossip there is.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|