diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-17 21:19:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-17 21:19:38 +0200 |
commit | bd5e15fd5c7e42505d6b0e20f4198d24fc7e219d (patch) | |
tree | 70e3f86ae76494fc094bbe25c58ba2befbcf4872 /src/eval.c | |
parent | 02c707a87da1b0f78d10a689cc03941a2e8acbc6 (diff) | |
download | vim-git-bd5e15fd5c7e42505d6b0e20f4198d24fc7e219d.tar.gz |
Added support for Python 3. (Roland Puntaier)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index e10b453d6..295512e34 100644 --- a/src/eval.c +++ b/src/eval.c @@ -5911,8 +5911,8 @@ list_equal(l1, l2, ic) return item1 == NULL && item2 == NULL; } -#if defined(FEAT_RUBY) || defined(FEAT_PYTHON) || defined(FEAT_MZSCHEME) \ - || defined(FEAT_LUA) || defined(PROTO) +#if defined(FEAT_RUBY) || defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \ + || defined(FEAT_MZSCHEME) || defined(FEAT_LUA) || defined(PROTO) /* * Return the dictitem that an entry in a hashtable points to. */ @@ -11991,6 +11991,11 @@ f_has(argvars, rettv) "python", #endif #endif +#ifdef FEAT_PYTHON3 +#ifndef DYNAMIC_PYTHON3 + "python3", +#endif +#endif #ifdef FEAT_POSTSCRIPT "postscript", #endif @@ -12184,10 +12189,18 @@ f_has(argvars, rettv) else if (STRICMP(name, "ruby") == 0) n = ruby_enabled(FALSE); #endif +#ifdef FEAT_PYTHON #ifdef DYNAMIC_PYTHON else if (STRICMP(name, "python") == 0) n = python_enabled(FALSE); #endif +#endif +#ifdef FEAT_PYTHON3 +#ifdef DYNAMIC_PYTHON3 + else if (STRICMP(name, "python3") == 0) + n = python3_enabled(FALSE); +#endif +#endif #ifdef DYNAMIC_PERL else if (STRICMP(name, "perl") == 0) n = perl_enabled(FALSE); |