diff Python/ceval.c @ 13709:4e2aaf1e722a legacy-trunk

Use 'void' directly instead of the ANY #define, now that all code is ANSI C. Leave the actual #define in for API compatibility.
author Thomas Wouters <thomas@python.org>
date Tue, 25 Jul 2000 12:56:38 +0000
parents f79434ee41fa
children c4e321834250
line wrap: on
line diff
--- a/Python/ceval.c	Tue Jul 25 12:37:41 2000 +0000
+++ b/Python/ceval.c	Tue Jul 25 12:56:38 2000 +0000
@@ -210,15 +210,15 @@
 
 #define NPENDINGCALLS 32
 static struct {
-	int (*func)(ANY *);
-	ANY *arg;
+	int (*func)(void *);
+	void *arg;
 } pendingcalls[NPENDINGCALLS];
 static volatile int pendingfirst = 0;
 static volatile int pendinglast = 0;
 static volatile int things_to_do = 0;
 
 int
-Py_AddPendingCall(int (*func)(ANY *), ANY *arg)
+Py_AddPendingCall(int (*func)(void *), void *arg)
 {
 	static int busy = 0;
 	int i, j;
@@ -255,8 +255,8 @@
 	things_to_do = 0;
 	for (;;) {
 		int i;
-		int (*func)(ANY *);
-		ANY *arg;
+		int (*func)(void *);
+		void *arg;
 		i = pendingfirst;
 		if (i == pendinglast)
 			break; /* Queue empty */