diff options
author | Bram Moolenaar <bram@vim.org> | 2012-11-28 15:33:14 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2012-11-28 15:33:14 +0100 |
commit | d555ba081c59c8370f2002e99664775276945cb8 (patch) | |
tree | 81abffdded21254fe1d91242502edfc63413abbb | |
parent | d74531ccbb73d9c8da24579a5209a5eeaf81f3f9 (diff) | |
download | vim-d555ba081c59c8370f2002e99664775276945cb8.tar.gz |
Problem: Py3Init_vim() is exported uneccessarily.
Solution: Make it static. (Ken Takata)
-rw-r--r-- | src/if_python3.c | 7 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/if_python3.c b/src/if_python3.c index f8dafd2f..4067517a 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -657,7 +657,7 @@ static Py_ssize_t RangeEnd; static PyObject *globals; static int PythonIO_Init(void); -PyMODINIT_FUNC Py3Init_vim(void); +static PyObject *Py3Init_vim(void); /****************************************************** * 1. Python interpreter main program. @@ -1773,8 +1773,8 @@ PyDoc_STRVAR(vim_module_doc,"vim python interface\n"); static struct PyModuleDef vimmodule; -#ifndef PROTO -PyMODINIT_FUNC Py3Init_vim(void) + static PyObject * +Py3Init_vim(void) { PyObject *mod; PyObject *tmp; @@ -1824,7 +1824,6 @@ PyMODINIT_FUNC Py3Init_vim(void) return mod; } -#endif /************************************************************************* * 4. Utility functions for handling the interface between Vim and Python. diff --git a/src/version.c b/src/version.c index 8163dbe0..c060e1ae 100644 --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 731, +/**/ 730, /**/ 729, |