[Python-checkins] CVS: python/dist/src/Python ceval.c,2.186,2.187

Thomas Wouters python-dev@python.org
2000年7月25日 05:56:40 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv23253/Python
Modified Files:
	ceval.c 
Log Message:
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.186
retrieving revision 2.187
diff -C2 -r2.186 -r2.187
*** ceval.c	2000年07月22日 18:47:25	2.186
--- ceval.c	2000年07月25日 12:56:38	2.187
***************
*** 211,216 ****
 #define NPENDINGCALLS 32
 static struct {
! 	int (*func)(ANY *);
! 	ANY *arg;
 } pendingcalls[NPENDINGCALLS];
 static volatile int pendingfirst = 0;
--- 211,216 ----
 #define NPENDINGCALLS 32
 static struct {
! 	int (*func)(void *);
! 	void *arg;
 } pendingcalls[NPENDINGCALLS];
 static volatile int pendingfirst = 0;
***************
*** 219,223 ****
 
 int
! Py_AddPendingCall(int (*func)(ANY *), ANY *arg)
 {
 	static int busy = 0;
--- 219,223 ----
 
 int
! Py_AddPendingCall(int (*func)(void *), void *arg)
 {
 	static int busy = 0;
***************
*** 256,261 ****
 	for (;;) {
 		int i;
! 		int (*func)(ANY *);
! 		ANY *arg;
 		i = pendingfirst;
 		if (i == pendinglast)
--- 256,261 ----
 	for (;;) {
 		int i;
! 		int (*func)(void *);
! 		void *arg;
 		i = pendingfirst;
 		if (i == pendinglast)

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