4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Warnings when compiling the Python interface. (Ajit Thakkar)
12 Solution: Use ANSI function declarations.
13 Files: src/if_python.c
16 *** ../vim-6.2.073/src/if_python.c Sun Jul 27 14:32:03 2003
17 --- src/if_python.c Wed Aug 13 20:32:14 2003
23 ! end_dynamic_python()
31 ! end_dynamic_python(void)
38 for (i = 0; python_funcname_table[i].ptr; ++i)
40 ! if (!(*python_funcname_table[i].ptr = GetProcAddress(hinstPython,
41 ! python_funcname_table[i].name)))
43 FreeLibrary(hinstPython);
47 for (i = 0; python_funcname_table[i].ptr; ++i)
49 ! if ((*python_funcname_table[i].ptr = GetProcAddress(hinstPython,
50 ! python_funcname_table[i].name)) == NULL)
52 FreeLibrary(hinstPython);
56 /* suspend a thread of the python interpreter
57 - other threads are allowed to run */
59 ! static void Python_SaveThread() {
60 ! saved_python_thread = PyEval_SaveThread();
63 /* restore a thread of the python interpreter
64 - waits for other threads to block */
66 ! static void Python_RestoreThread() {
67 ! PyEval_RestoreThread( saved_python_thread );
68 ! saved_python_thread = NULL;
71 /* obtain a lock on the Vim data structures */
73 ! static void Python_Lock_Vim() {
76 /* release a lock on the Vim data structures */
78 ! static void Python_Release_Vim() {
83 /* suspend a thread of the python interpreter
84 - other threads are allowed to run */
86 ! static void Python_SaveThread(void)
88 ! saved_python_thread = PyEval_SaveThread();
91 /* restore a thread of the python interpreter
92 - waits for other threads to block */
94 ! static void Python_RestoreThread(void)
96 ! PyEval_RestoreThread( saved_python_thread );
97 ! saved_python_thread = NULL;
100 /* obtain a lock on the Vim data structures */
102 ! static void Python_Lock_Vim(void)
106 /* release a lock on the Vim data structures */
108 ! static void Python_Release_Vim(void)
113 *** ../vim-6.2.073/src/version.c Tue Sep 9 22:18:18 2003
114 --- src/version.c Tue Sep 9 22:29:19 2003
118 { /* Add new patch number below this line */
124 TALL KNIGHT: When you have found the shrubbery, then you must cut down the
125 mightiest tree in the forest ... with a herring.
126 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
128 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
129 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
130 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
131 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///