1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.3.145 (after 7.3.144)
11 Problem: Can't build with Python dynamically loading.
12 Solution: Add dll_PyType_Ready.
13 Files: src/if_python.c
16 *** ../vim-7.3.144/src/if_python.c 2011-03-26 13:56:41.000000000 +0100
17 --- src/if_python.c 2011-03-26 18:10:00.000000000 +0100
21 # define PySys_SetObject dll_PySys_SetObject
22 # define PySys_SetArgv dll_PySys_SetArgv
23 # define PyType_Type (*dll_PyType_Type)
24 + # define PyType_Ready (*dll_PyType_Ready)
25 # define Py_BuildValue dll_Py_BuildValue
26 # define Py_FindMethod dll_Py_FindMethod
27 # define Py_InitModule4 dll_Py_InitModule4
31 static int(*dll_PySys_SetObject)(char *, PyObject *);
32 static int(*dll_PySys_SetArgv)(int, char **);
33 static PyTypeObject* dll_PyType_Type;
34 + static int (*dll_PyType_Ready)(PyTypeObject *type);
35 static PyObject*(*dll_Py_BuildValue)(char *, ...);
36 static PyObject*(*dll_Py_FindMethod)(struct PyMethodDef[], PyObject *, char *);
37 static PyObject*(*dll_Py_InitModule4)(char *, struct PyMethodDef *, char *, PyObject *, int);
41 {"PySys_SetObject", (PYTHON_PROC*)&dll_PySys_SetObject},
42 {"PySys_SetArgv", (PYTHON_PROC*)&dll_PySys_SetArgv},
43 {"PyType_Type", (PYTHON_PROC*)&dll_PyType_Type},
44 + {"PyType_Ready", (PYTHON_PROC*)&dll_PyType_Ready},
45 {"Py_BuildValue", (PYTHON_PROC*)&dll_Py_BuildValue},
46 {"Py_FindMethod", (PYTHON_PROC*)&dll_Py_FindMethod},
47 # if (PY_VERSION_HEX >= 0x02050000) && SIZEOF_SIZE_T != SIZEOF_INT
48 *** ../vim-7.3.144/src/version.c 2011-03-26 13:56:41.000000000 +0100
49 --- src/version.c 2011-03-26 18:11:19.000000000 +0100
53 { /* Add new patch number below this line */
59 This message contains 78% recycled characters.
61 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
62 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
63 \\\ an exciting new programming language -- http://www.Zimbu.org ///
64 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///