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

Tim Peters python-dev@python.org
Sun, 23 Jul 2000 11:10:20 -0700


Update of /cvsroot/python/python/dist/src/Parser
In directory slayer.i.sourceforge.net:/tmp/cvs-serv28920/python/dist/src/Parser

Modified Files:
	intrcheck.c 
Log Message:
Recent ANSIfication introduced a couple instances of
    #if RETSIGTYPE != void
That isn't C, and MSVC properly refuses to compile it.
Introduced new Py_RETURN_FROM_SIGNAL_HANDLER macro in pyport.h
to expand to the correct thing based on RETSIGTYPE.  However,
only void is ANSI!  Do we still have platforms that return int?
The Unix config mess appears to #define RETSIGTYPE by magic
without being asked to, so I assume it's "a problem" across
Unices still.


Index: intrcheck.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/intrcheck.c,v
retrieving revision 2.35
retrieving revision 2.36
diff -C2 -r2.35 -r2.36
*** intrcheck.c	2000/07/22 23:33:22	2.35
--- intrcheck.c	2000/07/23 18:10:18	2.36
***************
*** 169,175 ****
  	signal(SIGINT, intcatcher);
  	Py_AddPendingCall(checksignals_witharg, NULL);
! #if RETSIGTYPE != void
! 	return 0;
! #endif
  }
  
--- 169,173 ----
  	signal(SIGINT, intcatcher);
  	Py_AddPendingCall(checksignals_witharg, NULL);
! 	Py_RETURN_FROM_SIGNAL_HANDLER(0);
  }