diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-13 20:57:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-13 20:57:50 +0200 |
commit | 5f87b23229b1d5cc5bad4a263e513e72a91fe8ae (patch) | |
tree | fff36f9d16eb79d5580016a9689097a3a574e679 /src/if_python3.c | |
parent | b62bcd1e05a00bdacde11c52762cd48f6f0325f0 (diff) | |
download | vim-git-5f87b23229b1d5cc5bad4a263e513e72a91fe8ae.tar.gz |
updated for version 7.3.1186v7.3.1186
Problem: Python 3: test 87 may crash.
Solution: Use _PyArg_Parse_SizeT instead of PyArg_Parse. (Jun Takimoto)
Diffstat (limited to 'src/if_python3.c')
-rw-r--r-- | src/if_python3.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/if_python3.c b/src/if_python3.c index a4f96407a..d53d601fc 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -425,13 +425,8 @@ static struct {"PySys_SetArgv", (PYTHON_PROC*)&py3_PySys_SetArgv}, {"Py_SetPythonHome", (PYTHON_PROC*)&py3_Py_SetPythonHome}, {"Py_Initialize", (PYTHON_PROC*)&py3_Py_Initialize}, -# ifndef PY_SSIZE_T_CLEAN - {"PyArg_ParseTuple", (PYTHON_PROC*)&py3_PyArg_ParseTuple}, - {"Py_BuildValue", (PYTHON_PROC*)&py3_Py_BuildValue}, -# else {"_PyArg_ParseTuple_SizeT", (PYTHON_PROC*)&py3_PyArg_ParseTuple}, {"_Py_BuildValue_SizeT", (PYTHON_PROC*)&py3_Py_BuildValue}, -# endif {"PyMem_Free", (PYTHON_PROC*)&py3_PyMem_Free}, {"PyMem_Malloc", (PYTHON_PROC*)&py3_PyMem_Malloc}, {"PyList_New", (PYTHON_PROC*)&py3_PyList_New}, @@ -488,7 +483,7 @@ static struct {"PyEval_InitThreads", (PYTHON_PROC*)&py3_PyEval_InitThreads}, {"PyEval_RestoreThread", (PYTHON_PROC*)&py3_PyEval_RestoreThread}, {"PyEval_SaveThread", (PYTHON_PROC*)&py3_PyEval_SaveThread}, - {"PyArg_Parse", (PYTHON_PROC*)&py3_PyArg_Parse}, + {"_PyArg_Parse_SizeT", (PYTHON_PROC*)&py3_PyArg_Parse}, {"Py_IsInitialized", (PYTHON_PROC*)&py3_Py_IsInitialized}, {"_PyObject_NextNotImplemented", (PYTHON_PROC*)&py3__PyObject_NextNotImplemented}, {"_Py_NoneStruct", (PYTHON_PROC*)&py3__Py_NoneStruct}, |