diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-03-26 18:32:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-03-26 18:32:05 +0100 |
commit | 30fec7bc7fbc9c1b7d45b4616c5187fc63652eb2 (patch) | |
tree | d4d7030246278cc445c1b65fd3e24dd38d95ba39 | |
parent | 21377c8d5ff60a94c76e5fb3b32f462cc2880290 (diff) | |
download | vim-30fec7bc7fbc9c1b7d45b4616c5187fc63652eb2.zip |
updated for version 7.3.145
Problem: Can't build with Python dynamically loading.
Solution: Add dll_PyType_Ready.
-rw-r--r-- | src/if_python.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c index fc493ecaa..d35e9abe6 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -165,6 +165,7 @@ struct PyMethodDef { Py_ssize_t a; }; # define PySys_SetObject dll_PySys_SetObject # define PySys_SetArgv dll_PySys_SetArgv # define PyType_Type (*dll_PyType_Type) +# define PyType_Ready (*dll_PyType_Ready) # define Py_BuildValue dll_Py_BuildValue # define Py_FindMethod dll_Py_FindMethod # define Py_InitModule4 dll_Py_InitModule4 @@ -224,6 +225,7 @@ static PyTypeObject* dll_PyString_Type; static int(*dll_PySys_SetObject)(char *, PyObject *); static int(*dll_PySys_SetArgv)(int, char **); static PyTypeObject* dll_PyType_Type; +static int (*dll_PyType_Ready)(PyTypeObject *type); static PyObject*(*dll_Py_BuildValue)(char *, ...); static PyObject*(*dll_Py_FindMethod)(struct PyMethodDef[], PyObject *, char *); static PyObject*(*dll_Py_InitModule4)(char *, struct PyMethodDef *, char *, PyObject *, int); @@ -305,6 +307,7 @@ static struct {"PySys_SetObject", (PYTHON_PROC*)&dll_PySys_SetObject}, {"PySys_SetArgv", (PYTHON_PROC*)&dll_PySys_SetArgv}, {"PyType_Type", (PYTHON_PROC*)&dll_PyType_Type}, + {"PyType_Ready", (PYTHON_PROC*)&dll_PyType_Ready}, {"Py_BuildValue", (PYTHON_PROC*)&dll_Py_BuildValue}, {"Py_FindMethod", (PYTHON_PROC*)&dll_Py_FindMethod}, # if (PY_VERSION_HEX >= 0x02050000) && SIZEOF_SIZE_T != SIZEOF_INT diff --git a/src/version.c b/src/version.c index 212df7aa6..aa0af5318 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 145, +/**/ 144, /**/ 143, |