diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-12 10:31:54 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-12 10:31:54 (GMT) |
commit | 6c7e326eaaa2d814e0d299054f78e5bd187489ab (patch) | |
tree | 5343213d9e164e76a47517111dd41b46f7fd4877 /Mac/Modules/snd/sndsupport.py | |
parent | 6bf45c67523a8e81963ce645979ac85f4f75ef33 (diff) | |
download | cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.zip cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.gz cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.bz2 |
Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
Diffstat (limited to 'Mac/Modules/snd/sndsupport.py')
-rw-r--r-- | Mac/Modules/snd/sndsupport.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Mac/Modules/snd/sndsupport.py b/Mac/Modules/snd/sndsupport.py index 073f612..105fc66 100644 --- a/Mac/Modules/snd/sndsupport.py +++ b/Mac/Modules/snd/sndsupport.py @@ -96,15 +96,6 @@ SMStatus = StructOutputBufferType('SMStatus') CompressionInfo = StructOutputBufferType('CompressionInfo') includestuff = includestuff + """ -#if !TARGET_API_MAC_CARBON -/* Create a SndCommand object (an (int, int, int) tuple) */ -static PyObject * -SndCmd_New(SndCommand *pc) -{ - return Py_BuildValue("hhl", pc->cmd, pc->param1, pc->param2); -} -#endif - /* Convert a SndCommand argument */ static int SndCmd_Convert(PyObject *v, SndCommand *pc) @@ -123,9 +114,6 @@ SndCmd_Convert(PyObject *v, SndCommand *pc) static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */ static pascal void SPB_completion(SPBPtr my_spb); /* Forward */ -#if !TARGET_API_MAC_CARBON -static pascal void SPB_interrupt(SPBPtr my_spb); /* Forward */ -#endif """ @@ -192,20 +180,6 @@ SPB_completion(SPBPtr my_spb) } } -#if !TARGET_API_MAC_CARBON -static pascal void -SPB_interrupt(SPBPtr my_spb) -{ - SPBObject *p = (SPBObject *)(my_spb->userLong); - - if (p && p->ob_interrupt) { - long A5 = SetA5(p->ob_A5); - p->ob_thiscallback = p->ob_interrupt; /* Hope we cannot get two at the same time */ - Py_AddPendingCall(SPB_CallCallBack, (void *)p); - SetA5(A5); - } -} -#endif """ |