mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.
This commit is contained in:
parent
bf680266da
commit
334fb8985b
11 changed files with 44 additions and 63 deletions
|
@ -210,15 +210,15 @@ PyEval_RestoreThread(PyThreadState *tstate)
|
|||
|
||||
#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 @@ Py_MakePendingCalls(void)
|
|||
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue