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 /src/if_python.c | |
parent | 21377c8d5ff60a94c76e5fb3b32f462cc2880290 (diff) | |
download | vim-git-30fec7bc7fbc9c1b7d45b4616c5187fc63652eb2.tar.gz |
updated for version 7.3.145v7.3.145
Problem: Can't build with Python dynamically loading.
Solution: Add dll_PyType_Ready.
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 3 |
1 files changed, 3 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 |