Skip to content

Commit 9acf3e9

Browse files
committed
updated for version 7.3.731
Problem: Py3Init_vim() is exported uneccessarily. Solution: Make it static. (Ken Takata)
1 parent 16d9511 commit 9acf3e9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/if_python3.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static Py_ssize_t RangeEnd;
657657
static PyObject *globals;
658658

659659
static int PythonIO_Init(void);
660-
PyMODINIT_FUNC Py3Init_vim(void);
660+
static PyObject *Py3Init_vim(void);
661661

662662
/******************************************************
663663
* 1. Python interpreter main program.
@@ -1773,8 +1773,8 @@ PyDoc_STRVAR(vim_module_doc,"vim python interface\n");
17731773

17741774
static struct PyModuleDef vimmodule;
17751775

1776-
#ifndef PROTO
1777-
PyMODINIT_FUNC Py3Init_vim(void)
1776+
static PyObject *
1777+
Py3Init_vim(void)
17781778
{
17791779
PyObject *mod;
17801780
PyObject *tmp;
@@ -1824,7 +1824,6 @@ PyMODINIT_FUNC Py3Init_vim(void)
18241824

18251825
return mod;
18261826
}
1827-
#endif
18281827

18291828
/*************************************************************************
18301829
* 4. Utility functions for handling the interface between Vim and Python.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ static char *(features[]) =
725725

726726
static int included_patches[] =
727727
{ /* Add new patch number below this line */
728+
/**/
729+
731,
728730
/**/
729731
730,
730732
/**/

0 commit comments

Comments
 (0)