]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.074
- initial import
[packages/vim.git] / 6.2.074
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.074
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 6.2.074
11 Problem:    Warnings when compiling the Python interface. (Ajit Thakkar)
12 Solution:   Use ANSI function declarations.
13 Files:      src/if_python.c
14
15
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
18 ***************
19 *** 242,248 ****
20    * Free python.dll
21    */
22       static void
23 ! end_dynamic_python()
24   {
25       if (hinstPython)
26       {
27 --- 242,248 ----
28    * Free python.dll
29    */
30       static void
31 ! end_dynamic_python(void)
32   {
33       if (hinstPython)
34       {
35 ***************
36 *** 273,280 ****
37   
38       for (i = 0; python_funcname_table[i].ptr; ++i)
39       {
40 !       if (!(*python_funcname_table[i].ptr = GetProcAddress(hinstPython,
41 !                       python_funcname_table[i].name)))
42         {
43             FreeLibrary(hinstPython);
44             hinstPython = 0;
45 --- 273,280 ----
46   
47       for (i = 0; python_funcname_table[i].ptr; ++i)
48       {
49 !       if ((*python_funcname_table[i].ptr = GetProcAddress(hinstPython,
50 !                       python_funcname_table[i].name)) == NULL)
51         {
52             FreeLibrary(hinstPython);
53             hinstPython = 0;
54 ***************
55 *** 365,390 ****
56   /* suspend a thread of the python interpreter
57      - other threads are allowed to run */
58   
59 ! static void Python_SaveThread() {
60 !       saved_python_thread = PyEval_SaveThread();
61   }
62   
63   /* restore a thread of the python interpreter
64      - waits for other threads to block */
65   
66 ! static void Python_RestoreThread() {
67 !       PyEval_RestoreThread( saved_python_thread );
68 !       saved_python_thread = NULL;
69   }
70   
71   /* obtain a lock on the Vim data structures */
72   
73 ! static void Python_Lock_Vim() {
74   }
75   
76   /* release a lock on the Vim data structures */
77   
78 ! static void Python_Release_Vim() {
79   }
80   
81       void
82 --- 365,394 ----
83   /* suspend a thread of the python interpreter
84      - other threads are allowed to run */
85   
86 ! static void Python_SaveThread(void)
87 ! {
88 !     saved_python_thread = PyEval_SaveThread();
89   }
90   
91   /* restore a thread of the python interpreter
92      - waits for other threads to block */
93   
94 ! static void Python_RestoreThread(void)
95 ! {
96 !     PyEval_RestoreThread( saved_python_thread );
97 !     saved_python_thread = NULL;
98   }
99   
100   /* obtain a lock on the Vim data structures */
101   
102 ! static void Python_Lock_Vim(void)
103 ! {
104   }
105   
106   /* release a lock on the Vim data structures */
107   
108 ! static void Python_Release_Vim(void)
109 ! {
110   }
111   
112       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
115 ***************
116 *** 632,633 ****
117 --- 632,635 ----
118   {   /* Add new patch number below this line */
119 + /**/
120 +     74,
121   /**/
122
123 -- 
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
127
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  ///
This page took 0.037672 seconds and 3 git commands to generate.