[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
- Previous message: [Python-checkins] CVS: python/dist/src/Modules dlmodule.c,2.11,2.12 signalmodule.c,2.51,2.52 socketmodule.c,1.122,1.123 timemodule.c,2.96,2.97
- Next message: [Python-checkins] CVS: python/nondist/peps pep-0200.txt,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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)
- Previous message: [Python-checkins] CVS: python/dist/src/Modules dlmodule.c,2.11,2.12 signalmodule.c,2.51,2.52 socketmodule.c,1.122,1.123 timemodule.c,2.96,2.97
- Next message: [Python-checkins] CVS: python/nondist/peps pep-0200.txt,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]