From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Subject: Re: [9fans] python Date: Sat, 23 Dec 2006 16:50:57 -0500 From: Bad-Santa@plan9.bell-labs.com To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: f965f7f6-ead1-11e9-9d60-3106f5b1d025 On Sat Dec 23 15:29:19 EST 2006, rsc@swtch.com wrote: > > Python 2.4.3. port from Moroo Jun is also old. > > Compiler stops at rendezvous() > > The prototype for rendezvous changed, > but the semantics did not. You can just > cast the old call so that it compiles and > it will continue to work. > > Russ This is the diff: diff /n/dump/2005/1027/sys/src/cmd/python/Plan9/plan9module.c /sys/src/cmd/python/Plan9/plan9module.c 881c881,882 < ulong tag, val; --- > uvlong tag, val; > void *p; 883c884 < if(!PyArg_ParseTuple(args, "ll:rendezvous", &tag, &val)) --- > if(!PyArg_ParseTuple(args, "LL:rendezvous", &tag, &val)) 886c887 < val = rendezvous(tag, val); --- > p = rendezvous((void*)tag, (void*)val); 888c889 < if(val == ~0) --- > if(p == (void*)-1) 890c891 < return PyInt_FromLong(val); --- > return PyLong_FromLongLong((uvlong)p);