mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
NumVersion stuff has changed
This commit is contained in:
parent
d1f06313f6
commit
5674e4ec17
2 changed files with 8 additions and 47 deletions
|
|
@ -79,8 +79,6 @@ SndCallBackUPP = SndCallBackProcPtr
|
|||
SndCompletionProcPtr = FakeType('(SndCompletionProcPtr)0') # XXX
|
||||
SndCompletionUPP = SndCompletionProcPtr
|
||||
|
||||
NumVersion = OpaqueByValueType('NumVersion', 'NumVer')
|
||||
|
||||
##InOutBuf128 = FixedInputOutputBufferType(128)
|
||||
StateBlock = StructInputOutputBufferType('StateBlock')
|
||||
|
||||
|
|
@ -119,23 +117,6 @@ SndCmd_Convert(PyObject *v, SndCommand *pc)
|
|||
return PyArg_Parse(v, "h", &pc->cmd);
|
||||
}
|
||||
|
||||
/* Create a NumVersion object (a quintuple of integers) */
|
||||
static PyObject *
|
||||
NumVer_New(NumVersion nv)
|
||||
{
|
||||
return Py_BuildValue("iiiii",
|
||||
nv.majorRev,
|
||||
#ifdef THINK_C
|
||||
nv.minorRev,
|
||||
nv.bugFixRev,
|
||||
#else
|
||||
(nv.minorAndBugRev>>4) & 0xf,
|
||||
nv.minorAndBugRev & 0xf,
|
||||
#endif
|
||||
nv.stage,
|
||||
nv.nonRelRev);
|
||||
}
|
||||
|
||||
static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue