comparison src/evalfunc.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 8c3a1bd270bb
children 42910f306377
comparison
equal deleted inserted replaced
16450:bf74bce807e8 16451:7ae2396cef62
4199 static void 4199 static void
4200 f_foreground(typval_T *argvars UNUSED, typval_T *rettv UNUSED) 4200 f_foreground(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
4201 { 4201 {
4202 #ifdef FEAT_GUI 4202 #ifdef FEAT_GUI
4203 if (gui.in_use) 4203 if (gui.in_use)
4204 {
4204 gui_mch_set_foreground(); 4205 gui_mch_set_foreground();
4205 #else 4206 return;
4206 # ifdef MSWIN 4207 }
4208 #endif
4209 #if defined(MSWIN) && (!defined(FEAT_GUI) || defined(VIMDLL))
4207 win32_set_foreground(); 4210 win32_set_foreground();
4208 # endif
4209 #endif 4211 #endif
4210 } 4212 }
4211 4213
4212 static void 4214 static void
4213 common_function(typval_T *argvars, typval_T *rettv, int is_funcref) 4215 common_function(typval_T *argvars, typval_T *rettv, int is_funcref)