mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1066: VIMDLL isn't actually used
Problem: VIMDLL isn't actually used. Solution: Remove VIMDLL support.
This commit is contained in:
@@ -72,7 +72,6 @@
|
|||||||
# 3 for 386, 4 for 486, 5 for pentium, 6 for pentium pro.
|
# 3 for 386, 4 for 486, 5 for pentium, 6 for pentium pro.
|
||||||
# USEDLL no or yes: set to yes to use the Runtime library DLL (no)
|
# USEDLL no or yes: set to yes to use the Runtime library DLL (no)
|
||||||
# For USEDLL=yes the cc3250.dll is required to run Vim.
|
# For USEDLL=yes the cc3250.dll is required to run Vim.
|
||||||
# VIMDLL no or yes: create vim32.dll, and stub (g)vim.exe (no)
|
|
||||||
# ALIGN 1, 2 or 4: Alignment to use (4 for Win32)
|
# ALIGN 1, 2 or 4: Alignment to use (4 for Win32)
|
||||||
# FASTCALL no or yes: set to yes to use register-based function protocol (yes)
|
# FASTCALL no or yes: set to yes to use register-based function protocol (yes)
|
||||||
# OPTIMIZE SPACE, SPEED, or MAXSPEED: type of optimization (MAXSPEED)
|
# OPTIMIZE SPACE, SPEED, or MAXSPEED: type of optimization (MAXSPEED)
|
||||||
@@ -187,9 +186,6 @@ HEADERS = -H -H=vim.csm -Hc
|
|||||||
USEDLL = no
|
USEDLL = no
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
### VIMDLL: yes for a DLL version of VIM (NOT RECOMMENDED), no otherwise
|
|
||||||
#VIMDLL = yes
|
|
||||||
|
|
||||||
### ALIGN: alignment you desire: (1,2 or 4: s/b 4 for Win32)
|
### ALIGN: alignment you desire: (1,2 or 4: s/b 4 for Win32)
|
||||||
!if ("$(ALIGN)"=="")
|
!if ("$(ALIGN)"=="")
|
||||||
ALIGN = 4
|
ALIGN = 4
|
||||||
@@ -411,12 +407,7 @@ TARGET = gvimd.exe
|
|||||||
!else
|
!else
|
||||||
TARGET = gvim.exe
|
TARGET = gvim.exe
|
||||||
!endif
|
!endif
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
EXETYPE=-WD
|
|
||||||
DEFINES = $(DEFINES) -DVIMDLL
|
|
||||||
!else
|
|
||||||
EXETYPE=-W
|
EXETYPE=-W
|
||||||
!endif
|
|
||||||
STARTUPOBJ = c0w32.obj
|
STARTUPOBJ = c0w32.obj
|
||||||
LINK2 = -aa
|
LINK2 = -aa
|
||||||
RESFILE = vim.res
|
RESFILE = vim.res
|
||||||
@@ -424,7 +415,6 @@ RESFILE = vim.res
|
|||||||
!undef NETBEANS
|
!undef NETBEANS
|
||||||
!undef CHANNEL
|
!undef CHANNEL
|
||||||
!undef XPM
|
!undef XPM
|
||||||
!undef VIMDLL
|
|
||||||
!if ("$(DEBUG)"=="yes")
|
!if ("$(DEBUG)"=="yes")
|
||||||
TARGET = vimd.exe
|
TARGET = vimd.exe
|
||||||
!else
|
!else
|
||||||
@@ -515,13 +505,8 @@ CCARG = +$(OBJDIR)\bcc.cfg
|
|||||||
|
|
||||||
vimmain = \
|
vimmain = \
|
||||||
$(OBJDIR)\os_w32exe.obj
|
$(OBJDIR)\os_w32exe.obj
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
vimwinmain = \
|
|
||||||
$(OBJDIR)\os_w32dll.obj
|
|
||||||
!else
|
|
||||||
vimwinmain = \
|
vimwinmain = \
|
||||||
$(OBJDIR)\os_w32exe.obj
|
$(OBJDIR)\os_w32exe.obj
|
||||||
!endif
|
|
||||||
|
|
||||||
vimobj = \
|
vimobj = \
|
||||||
$(OBJDIR)\arabic.obj \
|
$(OBJDIR)\arabic.obj \
|
||||||
@@ -638,17 +623,6 @@ vimobj = $(vimobj) \
|
|||||||
$(OBJDIR)\xpm_w32.obj
|
$(OBJDIR)\xpm_w32.obj
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
vimdllobj = $(vimobj)
|
|
||||||
!if ("$(DEBUG)"=="yes")
|
|
||||||
DLLTARGET = vim32d.dll
|
|
||||||
!else
|
|
||||||
DLLTARGET = vim32.dll
|
|
||||||
!endif
|
|
||||||
!else
|
|
||||||
DLLTARGET = joebob
|
|
||||||
!endif
|
|
||||||
|
|
||||||
!if ("$(GUI)"=="yes")
|
!if ("$(GUI)"=="yes")
|
||||||
vimobj = $(vimobj) \
|
vimobj = $(vimobj) \
|
||||||
$(vimwinmain) \
|
$(vimwinmain) \
|
||||||
@@ -670,9 +644,6 @@ MSG = $(MSG) OLE
|
|||||||
!if ("$(USEDLL)"=="yes")
|
!if ("$(USEDLL)"=="yes")
|
||||||
MSG = $(MSG) USEDLL
|
MSG = $(MSG) USEDLL
|
||||||
!endif
|
!endif
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
MSG = $(MSG) VIMDLL
|
|
||||||
!endif
|
|
||||||
!if ("$(FASTCALL)"=="yes")
|
!if ("$(FASTCALL)"=="yes")
|
||||||
MSG = $(MSG) FASTCALL
|
MSG = $(MSG) FASTCALL
|
||||||
!endif
|
!endif
|
||||||
@@ -747,9 +718,6 @@ MSG = $(MSG) Align=$(ALIGNARG)
|
|||||||
|
|
||||||
!message $(MSG)
|
!message $(MSG)
|
||||||
|
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
TARGETS = $(DLLTARGET)
|
|
||||||
!endif
|
|
||||||
TARGETS = $(TARGETS) $(TARGET)
|
TARGETS = $(TARGETS) $(TARGET)
|
||||||
|
|
||||||
# Targets:
|
# Targets:
|
||||||
@@ -832,60 +800,12 @@ clean:
|
|||||||
$(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean
|
$(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
$(DLLTARGET): $(OBJDIR) $(vimdllobj)
|
|
||||||
$(LINK) @&&|
|
|
||||||
$(LFLAGSDLL) +
|
|
||||||
c0d32.obj +
|
|
||||||
$(vimdllobj)
|
|
||||||
$<,$*
|
|
||||||
!if ("$(CODEGUARD)"=="yes")
|
|
||||||
cg32.lib+
|
|
||||||
!endif
|
|
||||||
# $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE
|
|
||||||
ole2w32.lib +
|
|
||||||
import32.lib+
|
|
||||||
!ifdef LUA
|
|
||||||
$(LUA_LIB_FLAG)lua.lib+
|
|
||||||
!endif
|
|
||||||
!ifdef PERL
|
|
||||||
$(PERL_LIB_FLAG)perl.lib+
|
|
||||||
!endif
|
|
||||||
!ifdef PYTHON
|
|
||||||
$(PYTHON_LIB_FLAG)python.lib+
|
|
||||||
!endif
|
|
||||||
!ifdef PYTHON3
|
|
||||||
$(PYTHON3_LIB_FLAG)python3.lib+
|
|
||||||
!endif
|
|
||||||
!ifdef RUBY
|
|
||||||
$(RUBY_LIB_FLAG)ruby.lib+
|
|
||||||
!endif
|
|
||||||
!ifdef TCL
|
|
||||||
$(TCL_LIB_FLAG)tcl.lib+
|
|
||||||
!endif
|
|
||||||
!ifdef XPM
|
|
||||||
xpm.lib+
|
|
||||||
!endif
|
|
||||||
!if ("$(USEDLL)"=="yes")
|
|
||||||
cw32i.lib
|
|
||||||
!else
|
|
||||||
cw32.lib
|
|
||||||
!endif
|
|
||||||
vim.def
|
|
||||||
|
|
|
||||||
|
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
$(TARGET): $(OBJDIR) $(DLLTARGET) $(vimmain) $(OBJDIR)\$(RESFILE)
|
|
||||||
!else
|
|
||||||
$(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE)
|
$(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE)
|
||||||
!endif
|
|
||||||
$(LINK) @&&|
|
$(LINK) @&&|
|
||||||
$(LFLAGS) +
|
$(LFLAGS) +
|
||||||
$(STARTUPOBJ) +
|
$(STARTUPOBJ) +
|
||||||
!if ("$(VIMDLL)"=="yes")
|
|
||||||
$(vimmain)
|
|
||||||
!else
|
|
||||||
$(vimobj)
|
$(vimobj)
|
||||||
!endif
|
|
||||||
$<,$*
|
$<,$*
|
||||||
!if ("$(CODEGUARD)"=="yes")
|
!if ("$(CODEGUARD)"=="yes")
|
||||||
cg32.lib+
|
cg32.lib+
|
||||||
|
@@ -2280,9 +2280,6 @@ gui_mch_draw_menubar(void)
|
|||||||
|
|
||||||
#ifndef PROTO
|
#ifndef PROTO
|
||||||
void
|
void
|
||||||
#ifdef VIMDLL
|
|
||||||
_export
|
|
||||||
#endif
|
|
||||||
_cdecl
|
_cdecl
|
||||||
SaveInst(HINSTANCE hInst)
|
SaveInst(HINSTANCE hInst)
|
||||||
{
|
{
|
||||||
|
@@ -96,9 +96,6 @@ static char_u *start_dir = NULL; /* current working dir on startup */
|
|||||||
static int has_dash_c_arg = FALSE;
|
static int has_dash_c_arg = FALSE;
|
||||||
|
|
||||||
int
|
int
|
||||||
# ifdef VIMDLL
|
|
||||||
_export
|
|
||||||
# endif
|
|
||||||
# ifdef FEAT_GUI_MSWIN
|
# ifdef FEAT_GUI_MSWIN
|
||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
_cdecl
|
_cdecl
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
/* vi:set ts=8 sts=4 sw=4 noet:
|
|
||||||
*
|
|
||||||
* VIM - Vi IMproved by Bram Moolenaar
|
|
||||||
* GUI support by Robert Webb
|
|
||||||
*
|
|
||||||
* Do ":help uganda" in Vim to read copying and usage conditions.
|
|
||||||
* Do ":help credits" in Vim to see a list of people who contributed.
|
|
||||||
* See README.txt for an overview of the Vim source code.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Windows GUI: main program (DLL) entry point:
|
|
||||||
*
|
|
||||||
* Ron Aaron <ronaharon@yahoo.com> wrote this and the DLL support code.
|
|
||||||
*/
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
||||||
{
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
@@ -32,9 +32,7 @@ static int (_cdecl *pmain)(int, char **);
|
|||||||
|
|
||||||
#ifndef PROTO
|
#ifndef PROTO
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
#ifndef VIMDLL
|
|
||||||
void _cdecl SaveInst(HINSTANCE hInst);
|
void _cdecl SaveInst(HINSTANCE hInst);
|
||||||
#endif
|
|
||||||
static void (_cdecl *pSaveInst)(HINSTANCE);
|
static void (_cdecl *pSaveInst)(HINSTANCE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -47,60 +45,17 @@ WinMain(
|
|||||||
{
|
{
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
char **argv = NULL;
|
char **argv = NULL;
|
||||||
#ifdef VIMDLL
|
#ifdef FEAT_GUI
|
||||||
char prog[256];
|
|
||||||
char *p;
|
|
||||||
HANDLE hLib;
|
|
||||||
|
|
||||||
/* Ron: added full path name so that the $VIM variable will get set to our
|
|
||||||
* startup path (so the .vimrc file can be found w/o a VIM env. var.) */
|
|
||||||
GetModuleFileName(NULL, prog, 255);
|
|
||||||
|
|
||||||
# ifdef DYNAMIC_GETTEXT
|
|
||||||
/* Initialize gettext library */
|
|
||||||
dyn_libintl_init();
|
|
||||||
# endif
|
|
||||||
|
|
||||||
// LoadLibrary - get name of dll to load in here:
|
|
||||||
p = strrchr(prog, '\\');
|
|
||||||
if (p != NULL)
|
|
||||||
{
|
|
||||||
# ifdef DEBUG
|
|
||||||
strcpy(p+1, "vim32d.dll");
|
|
||||||
# else
|
|
||||||
strcpy(p+1, "vim32.dll");
|
|
||||||
# endif
|
|
||||||
}
|
|
||||||
hLib = LoadLibrary(prog);
|
|
||||||
if (hLib == NULL)
|
|
||||||
{
|
|
||||||
MessageBox(0, _("Could not load vim32.dll!"), _("VIM Error"), 0);
|
|
||||||
goto errout;
|
|
||||||
}
|
|
||||||
// fix up the function pointers
|
|
||||||
# ifdef FEAT_GUI
|
|
||||||
pSaveInst = GetProcAddress(hLib, (LPCSTR)2);
|
|
||||||
# endif
|
|
||||||
pmain = GetProcAddress(hLib, (LPCSTR)1);
|
|
||||||
if (pmain == NULL)
|
|
||||||
{
|
|
||||||
MessageBox(0, _("Could not fix up function pointers to the DLL!"),
|
|
||||||
_("VIM Error"),0);
|
|
||||||
goto errout;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
# ifdef FEAT_GUI
|
|
||||||
pSaveInst = SaveInst;
|
pSaveInst = SaveInst;
|
||||||
# endif
|
#endif
|
||||||
pmain =
|
pmain =
|
||||||
# if defined(FEAT_GUI_MSWIN)
|
#if defined(FEAT_GUI_MSWIN)
|
||||||
//&& defined(__MINGW32__)
|
//&& defined(__MINGW32__)
|
||||||
VimMain
|
VimMain
|
||||||
# else
|
#else
|
||||||
main
|
main
|
||||||
# endif
|
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
;
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
pSaveInst(
|
pSaveInst(
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
@@ -112,10 +67,6 @@ WinMain(
|
|||||||
#endif
|
#endif
|
||||||
pmain(argc, argv);
|
pmain(argc, argv);
|
||||||
|
|
||||||
#ifdef VIMDLL
|
|
||||||
FreeLibrary(hLib);
|
|
||||||
errout:
|
|
||||||
#endif
|
|
||||||
free_cmd_argsW();
|
free_cmd_argsW();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -775,6 +775,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1066,
|
||||||
/**/
|
/**/
|
||||||
1065,
|
1065,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user