diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-09 14:57:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-09 14:57:47 +0100 |
commit | 25e4fcde767084d1a79e0926bc301c92987c0cce (patch) | |
tree | 2e2196f2e782cd2bd143b8ed1187697774f4a3ad /src | |
parent | 7b877b360532713dc21a0ff3d55a76ac02eaf573 (diff) | |
download | vim-git-25e4fcde767084d1a79e0926bc301c92987c0cce.tar.gz |
patch 7.4.1065v7.4.1065
Problem: Cannot use the "dll" options on MS-Windows.
Solution: Support the options on all platforms. Use the built-in name as
the default, so that it's clear what Vim is looking for.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/if_lua.c | 7 | ||||
-rw-r--r-- | src/if_perl.xs | 7 | ||||
-rw-r--r-- | src/if_python.c | 7 | ||||
-rw-r--r-- | src/if_python3.c | 7 | ||||
-rw-r--r-- | src/if_ruby.c | 7 | ||||
-rw-r--r-- | src/option.c | 25 | ||||
-rw-r--r-- | src/version.c | 2 |
8 files changed, 23 insertions, 41 deletions
diff --git a/src/Makefile b/src/Makefile index f6b760f44..5cf116d5a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2801,7 +2801,7 @@ objects/ops.o: ops.c $(CCC) -o $@ ops.c objects/option.o: option.c - $(CCC) -o $@ option.c + $(CCC) $(LUA_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(PYTHON3_CFLAGS) $(RUBY_CFLAGS) -o $@ option.c objects/os_beos.o: os_beos.c $(CCC) -o $@ os_beos.c diff --git a/src/if_lua.c b/src/if_lua.c index e94c96dff..46f881a9b 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -402,12 +402,7 @@ lua_link_init(char *libname, int verbose) int lua_enabled(int verbose) { -#ifdef WIN3264 - char *dll = DYNAMIC_LUA_DLL; -#else - char *dll = *p_luadll ? (char *)p_luadll : DYNAMIC_LUA_DLL; -#endif - return lua_link_init(dll, verbose) == OK; + return lua_link_init((char *)p_luadll, verbose) == OK; } #endif /* DYNAMIC_LUA */ diff --git a/src/if_perl.xs b/src/if_perl.xs index b429b4756..098b62e09 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -611,12 +611,7 @@ perl_runtime_link_init(char *libname, int verbose) perl_enabled(verbose) int verbose; { -#ifdef WIN3264 - char *dll = DYNAMIC_PERL_DLL; -#else - char *dll = *p_perldll ? (char *)p_perldll : DYNAMIC_PERL_DLL; -#endif - return perl_runtime_link_init(dll, verbose) == OK; + return perl_runtime_link_init((char *)p_perldll, verbose) == OK; } #endif /* DYNAMIC_PERL */ diff --git a/src/if_python.c b/src/if_python.c index 94b299e11..4f028e53b 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -732,12 +732,7 @@ python_runtime_link_init(char *libname, int verbose) int python_enabled(int verbose) { -#ifdef WIN3264 - char *dll = DYNAMIC_PYTHON_DLL; -#else - char *dll = *p_pydll ? (char *)p_pydll : DYNAMIC_PYTHON_DLL; -#endif - return python_runtime_link_init(dll, verbose) == OK; + return python_runtime_link_init((char *)p_pydll, verbose) == OK; } /* diff --git a/src/if_python3.c b/src/if_python3.c index 387b811f6..a78fa6b58 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -686,12 +686,7 @@ py3_runtime_link_init(char *libname, int verbose) int python3_enabled(int verbose) { -#ifdef WIN3264 - char *dll = DYNAMIC_PYTHON3_DLL; -#else - char *dll = *p_py3dll ? (char *)p_py3dll : DYNAMIC_PYTHON3_DLL; -#endif - return py3_runtime_link_init(dll, verbose) == OK; + return py3_runtime_link_init((char *)p_py3dll, verbose) == OK; } /* Load the standard Python exceptions - don't import the symbols from the diff --git a/src/if_ruby.c b/src/if_ruby.c index fa03359f0..8b1590eb9 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -677,12 +677,7 @@ ruby_runtime_link_init(char *libname, int verbose) ruby_enabled(verbose) int verbose; { -#ifdef WIN3264 - char *dll = DYNAMIC_RUBY_DLL; -#else - char *dll = *p_rubydll ? (char *)p_rubydll : DYNAMIC_RUBY_DLL; -#endif - return ruby_runtime_link_init(dll, verbose) == OK; + return ruby_runtime_link_init((char *)p_rubydll, verbose) == OK; } #endif /* defined(DYNAMIC_RUBY) || defined(PROTO) */ diff --git a/src/option.c b/src/option.c index 357321144..9e7f30327 100644 --- a/src/option.c +++ b/src/option.c @@ -1776,10 +1776,11 @@ static struct vimoption {"loadplugins", "lpl", P_BOOL|P_VI_DEF, (char_u *)&p_lpl, PV_NONE, {(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT}, -#if defined(DYNAMIC_LUA) && !defined(WIN3264) +#if defined(DYNAMIC_LUA) {"luadll", NULL, P_STRING|P_VI_DEF|P_SECURE, (char_u *)&p_luadll, PV_NONE, - {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, + {(char_u *)DYNAMIC_LUA_DLL, (char_u *)0L} + SCRIPTID_INIT}, #endif #ifdef FEAT_GUI_MAC {"macatsui", NULL, P_BOOL|P_VI_DEF|P_RCLR, @@ -2016,10 +2017,11 @@ static struct vimoption # endif #endif (char_u *)0L} SCRIPTID_INIT}, -#if defined(DYNAMIC_PERL) && !defined(WIN3264) +#if defined(DYNAMIC_PERL) {"perldll", NULL, P_STRING|P_VI_DEF|P_SECURE, (char_u *)&p_perldll, PV_NONE, - {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, + {(char_u *)DYNAMIC_PERL_DLL, (char_u *)0L} + SCRIPTID_INIT}, #endif {"preserveindent", "pi", P_BOOL|P_VI_DEF|P_VIM, (char_u *)&p_pi, PV_PI, @@ -2126,15 +2128,17 @@ static struct vimoption (char_u *)NULL, PV_NONE, #endif {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT}, -#if defined(DYNAMIC_PYTHON3) && !defined(WIN3264) +#if defined(DYNAMIC_PYTHON3) {"pythonthreedll", NULL, P_STRING|P_VI_DEF|P_SECURE, (char_u *)&p_py3dll, PV_NONE, - {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, + {(char_u *)DYNAMIC_PYTHON3_DLL, (char_u *)0L} + SCRIPTID_INIT}, #endif -#if defined(DYNAMIC_PYTHON) && !defined(WIN3264) +#if defined(DYNAMIC_PYTHON) {"pythondll", NULL, P_STRING|P_VI_DEF|P_SECURE, (char_u *)&p_pydll, PV_NONE, - {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, + {(char_u *)DYNAMIC_PYTHON_DLL, (char_u *)0L} + SCRIPTID_INIT}, #endif {"quoteescape", "qe", P_STRING|P_ALLOCED|P_VI_DEF, #ifdef FEAT_TEXTOBJ @@ -2209,10 +2213,11 @@ static struct vimoption {(char_u *)NULL, (char_u *)0L} #endif SCRIPTID_INIT}, -#if defined(DYNAMIC_RUBY) && !defined(WIN3264) +#if defined(DYNAMIC_RUBY) {"rubydll", NULL, P_STRING|P_VI_DEF|P_SECURE, (char_u *)&p_rubydll, PV_NONE, - {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, + {(char_u *)DYNAMIC_RUBY_DLL, (char_u *)0L} + SCRIPTID_INIT}, #endif {"ruler", "ru", P_BOOL|P_VI_DEF|P_VIM|P_RSTAT, #ifdef FEAT_CMDL_INFO diff --git a/src/version.c b/src/version.c index 42f96a6e0..4d791d01c 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1065, +/**/ 1064, /**/ 1063, |