Mercurial > vim
diff src/if_python3.c @ 7823:bcef391c101c v7.4.1208
commit https://github.com/vim/vim/commit/68c2f638e65d914dc6e84eb7ce2624f08af525c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 17:24:07 2016 +0100
patch 7.4.1208
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Jan 2016 17:30:04 +0100 |
parents | 37c929c4a073 |
children | 3f7382858d4d |
line wrap: on
line diff
--- a/src/if_python3.c +++ b/src/if_python3.c @@ -695,7 +695,7 @@ python3_enabled(int verbose) static void get_py3_exceptions(void); static void -get_py3_exceptions() +get_py3_exceptions(void) { PyObject *exmod = PyImport_ImportModule("builtins"); PyObject *exdict = PyModule_GetDict(exmod); @@ -800,7 +800,7 @@ static PyObject *Py3Init_vim(void); */ void -python3_end() +python3_end(void) { static int recurse = 0; @@ -830,7 +830,7 @@ python3_end() #if (defined(DYNAMIC_PYTHON3) && defined(DYNAMIC_PYTHON) && defined(FEAT_PYTHON) && defined(UNIX)) || defined(PROTO) int -python3_loaded() +python3_loaded(void) { return (hinstPy3 != 0); }