4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The Python interface doesn't compile with Python 2.3 when
13 Solution: Use dll_PyObject_Malloc and dll_PyObject_Free. (Paul Moore)
14 Files: src/if_python.c
17 *** ../vim-6.2.047/src/if_python.c Fri Jul 25 22:28:06 2003
18 --- src/if_python.c Sat Jul 26 20:05:39 2003
22 # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
23 # define PyType_IsSubtype dll_PyType_IsSubtype
25 + # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
26 + # define PyObject_Malloc dll_PyObject_Malloc
27 + # define PyObject_Free dll_PyObject_Free
31 * Pointers for dynamic link
35 # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
36 static int (*dll_PyType_IsSubtype)(PyTypeObject *, PyTypeObject *);
38 + # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
39 + static void* (*dll_PyObject_Malloc)(size_t);
40 + static void (*dll_PyObject_Free)(void*);
43 static HINSTANCE hinstPython = 0; /* Instance of python.dll */
48 {"_Py_NoneStruct", (PYTHON_PROC*)&dll__Py_NoneStruct},
49 # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02020000
50 {"PyType_IsSubtype", (PYTHON_PROC*)&dll_PyType_IsSubtype},
52 + # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02030000
53 + {"PyObject_Malloc", (PYTHON_PROC*)&dll_PyObject_Malloc},
54 + {"PyObject_Free", (PYTHON_PROC*)&dll_PyObject_Free},
58 *** ../vim-6.2.047/src/version.c Sun Jul 27 14:29:34 2003
59 --- src/version.c Sun Jul 27 14:31:02 2003
63 { /* Add new patch number below this line */
69 It is too bad that the speed of light hasn't kept pace with the
70 changes in CPU speed and network bandwidth. -- <wietse@porcupine.org>
72 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
73 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
74 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
75 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///