Mercurial > vim
comparison src/os_w32dll.c @ 16451:7ae2396cef62 v8.1.1230
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
commit https://github.com/vim/vim/commit/afde13b62b8fa25dac4635d5caee8d088b937ee0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 28 19:46:49 2019 +0200
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Problem: A lot of code is shared between vim.exe and gvim.exe.
Solution: Optionally put the shared code in vim.dll. (Ken Takata,
closes #4287)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Apr 2019 20:00:10 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
16450:bf74bce807e8 | 16451:7ae2396cef62 |
---|---|
1 /* vi:set ts=8 sts=4 sw=4 noet: | |
2 * | |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 * See README.txt for an overview of the Vim source code. | |
8 */ | |
9 /* | |
10 * Windows GUI: main program (DLL) entry point: | |
11 * | |
12 * Ron Aaron <ronaharon@yahoo.com> wrote this and the DLL support code. | |
13 * Adapted by Ken Takata. | |
14 */ | |
15 #ifndef WIN32_LEAN_AND_MEAN | |
16 # define WIN32_LEAN_AND_MEAN | |
17 #endif | |
18 #include <windows.h> | |
19 | |
20 void SaveInst(HINSTANCE hInst); | |
21 | |
22 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) | |
23 { | |
24 if (fdwReason == DLL_PROCESS_ATTACH) | |
25 SaveInst(hinstDLL); | |
26 return TRUE; | |
27 } |