[Python-checkins] CVS: python/dist/src/Parser intrcheck.c,2.36,2.37

Tim Peters python-dev@python.org
2000年7月23日 14:18:11 -0700


Update of /cvsroot/python/python/dist/src/Parser
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4368/python/dist/src/Parser
Modified Files:
	intrcheck.c 
Log Message:
Removed all instances of RETSIGTYPE from the source code: signal
handlers "return void", according to ANSI C.
Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro.
Left RETSIGTYPE in the config stuff, because it's not clear to
me that others aren't relying on it (e.g., extension modules).
Index: intrcheck.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/intrcheck.c,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -r2.36 -r2.37
*** intrcheck.c	2000年07月23日 18:10:18	2.36
--- intrcheck.c	2000年07月23日 21:18:09	2.37
***************
*** 150,154 ****
 }
 
! static RETSIGTYPE
 intcatcher(int sig)
 {
--- 150,154 ----
 }
 
! static void
 intcatcher(int sig)
 {
***************
*** 169,176 ****
 	signal(SIGINT, intcatcher);
 	Py_AddPendingCall(checksignals_witharg, NULL);
- 	Py_RETURN_FROM_SIGNAL_HANDLER(0);
 }
 
! static RETSIGTYPE (*old_siginthandler)(int) = SIG_DFL;
 
 void
--- 169,175 ----
 	signal(SIGINT, intcatcher);
 	Py_AddPendingCall(checksignals_witharg, NULL);
 }
 
! static void (*old_siginthandler)(int) = SIG_DFL;
 
 void

AltStyle によって変換されたページ (->オリジナル) /