@@ -30,17 +30,17 @@ int Py_AddPendingCall(int (*func)(ANY *), ANY *arg);
3030#include <io.h>
3131
3232void
33- PyOS_InitInterrupts ()
33+ PyOS_InitInterrupts (void )
3434{
3535}
3636
3737void
38- PyOS_FiniInterrupts ()
38+ PyOS_FiniInterrupts (void )
3939{
4040}
4141
4242int
43- PyOS_InterruptOccurred ()
43+ PyOS_InterruptOccurred (void )
4444{
4545 _wyield ();
4646}
@@ -66,18 +66,18 @@ PyOS_InterruptOccurred()
6666#include <go32.h>
6767
6868void
69- PyOS_InitInterrupts ()
69+ PyOS_InitInterrupts (void )
7070{
7171 _go32_want_ctrl_break (1 /* TRUE */ );
7272}
7373
7474void
75- PyOS_FiniInterrupts ()
75+ PyOS_FiniInterrupts (void )
7676{
7777}
7878
7979int
80- PyOS_InterruptOccurred ()
80+ PyOS_InterruptOccurred (void )
8181{
8282 return _go32_was_ctrl_break_hit ();
8383}
@@ -87,17 +87,17 @@ PyOS_InterruptOccurred()
8787/* This might work for MS-DOS (untested though): */
8888
8989void
90- PyOS_InitInterrupts ()
90+ PyOS_InitInterrupts (void )
9191{
9292}
9393
9494void
95- PyOS_FiniInterrupts ()
95+ PyOS_FiniInterrupts (void )
9696{
9797}
9898
9999int
100- PyOS_InterruptOccurred ()
100+ PyOS_InterruptOccurred (void )
101101{
102102 int interrupted = 0 ;
103103 while (kbhit ()) {
@@ -136,21 +136,21 @@ PyOS_InterruptOccurred()
136136static int interrupted ;
137137
138138void
139- PyErr_SetInterrupt ()
139+ PyErr_SetInterrupt (void )
140140{
141141 interrupted = 1 ;
142142}
143143
144- extern int PyErr_CheckSignals ();
144+ extern int PyErr_CheckSignals (void );
145+
146+ static int
147+ checksignals_witharg (void * arg )
148+ {
149+ return PyErr_CheckSignals ();
150+ }
145151
146- /* ARGSUSED */
147152static RETSIGTYPE
148- #if defined(_M_IX86 ) && !defined(__QNX__ )
149- intcatcher (int sig ) /* So the C compiler shuts up */
150- #else /* _M_IX86 */
151- intcatcher (sig )
152- int sig ; /* Not used by required by interface */
153- #endif /* _M_IX86 */
153+ intcatcher (int sig )
154154{
155155 extern void Py_Exit (int );
156156 static char message [] =
@@ -167,13 +167,13 @@ intcatcher(sig)
167167 break ;
168168 }
169169 signal (SIGINT , intcatcher );
170- Py_AddPendingCall (PyErr_CheckSignals , NULL );
170+ Py_AddPendingCall (checksignals_witharg , NULL );
171171}
172172
173- static RETSIGTYPE (* old_siginthandler )() = SIG_DFL ;
173+ static RETSIGTYPE (* old_siginthandler )(int ) = SIG_DFL ;
174174
175175void
176- PyOS_InitInterrupts ()
176+ PyOS_InitInterrupts (void )
177177{
178178 if ((old_siginthandler = signal (SIGINT , SIG_IGN )) != SIG_IGN )
179179 signal (SIGINT , intcatcher );
@@ -189,13 +189,13 @@ PyOS_InitInterrupts()
189189}
190190
191191void
192- PyOS_FiniInterrupts ()
192+ PyOS_FiniInterrupts (void )
193193{
194194 signal (SIGINT , old_siginthandler );
195195}
196196
197197int
198- PyOS_InterruptOccurred ()
198+ PyOS_InterruptOccurred (void )
199199{
200200 if (!interrupted )
201201 return 0 ;
@@ -206,6 +206,6 @@ PyOS_InterruptOccurred()
206206#endif /* !OK */
207207
208208void
209- PyOS_AfterFork ()
209+ PyOS_AfterFork (void )
210210{
211211}
0 commit comments