Mercurial > vim
comparison src/if_python3.c @ 7528:53163e4d9e4f v7.4.1065
commit https://github.com/vim/vim/commit/25e4fcde767084d1a79e0926bc301c92987c0cce
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 9 14:57:47 2016 +0100
patch 7.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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 09 Jan 2016 15:00:05 +0100 |
parents | cd69647bb839 |
children | 37c929c4a073 |
comparison
equal
deleted
inserted
replaced
7527:3c5d446fb80b | 7528:53163e4d9e4f |
---|---|
684 * TRUE, else FALSE. | 684 * TRUE, else FALSE. |
685 */ | 685 */ |
686 int | 686 int |
687 python3_enabled(int verbose) | 687 python3_enabled(int verbose) |
688 { | 688 { |
689 #ifdef WIN3264 | 689 return py3_runtime_link_init((char *)p_py3dll, verbose) == OK; |
690 char *dll = DYNAMIC_PYTHON3_DLL; | |
691 #else | |
692 char *dll = *p_py3dll ? (char *)p_py3dll : DYNAMIC_PYTHON3_DLL; | |
693 #endif | |
694 return py3_runtime_link_init(dll, verbose) == OK; | |
695 } | 690 } |
696 | 691 |
697 /* Load the standard Python exceptions - don't import the symbols from the | 692 /* Load the standard Python exceptions - don't import the symbols from the |
698 * DLL, as this can cause errors (importing data symbols is not reliable). | 693 * DLL, as this can cause errors (importing data symbols is not reliable). |
699 */ | 694 */ |