Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 319c67b

Browse files
committed
The interruptRoutine attribute is gone under Carbon. Luckily it appears that nothing used it.
1 parent 736b51d commit 319c67b

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Mac/Modules/snd/Sndmodule.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ SndCmd_Convert(PyObject *v, SndCommand *pc)
3737

3838
static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */
3939
static pascal void SPB_completion(SPBPtr my_spb); /* Forward */
40+
#if !TARGET_API_MAC_CARBON
4041
static pascal void SPB_interrupt(SPBPtr my_spb); /* Forward */
42+
#endif
4143

4244
static PyObject *Snd_Error;
4345

@@ -449,7 +451,7 @@ static int SPBObj_setattr(self, name, value)
449451
self->ob_completion = value;
450452
Py_INCREF(value);
451453
rv = 1;
452-
#if !TARGET_API_MAC_CARBON_NOTYET
454+
#if !TARGET_API_MAC_CARBON
453455
} else if (strcmp(name, "interruptRoutine") == 0) {
454456
self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
455457
self->ob_interrupt = value;
@@ -1513,6 +1515,7 @@ SPB_completion(SPBPtr my_spb)
15131515
}
15141516
}
15151517

1518+
#if !TARGET_API_MAC_CARBON
15161519
static pascal void
15171520
SPB_interrupt(SPBPtr my_spb)
15181521
{
@@ -1525,6 +1528,7 @@ SPB_interrupt(SPBPtr my_spb)
15251528
SetA5(A5);
15261529
}
15271530
}
1531+
#endif
15281532

15291533

15301534
void initSnd()

Mac/Modules/snd/sndsupport.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def cleanup(self, name):
117117
118118
static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */
119119
static pascal void SPB_completion(SPBPtr my_spb); /* Forward */
120+
#if !TARGET_API_MAC_CARBON
120121
static pascal void SPB_interrupt(SPBPtr my_spb); /* Forward */
122+
#endif
121123
"""
122124

123125

@@ -186,6 +188,7 @@ def cleanup(self, name):
186188
}
187189
}
188190
191+
#if !TARGET_API_MAC_CARBON
189192
static pascal void
190193
SPB_interrupt(SPBPtr my_spb)
191194
{
@@ -198,6 +201,7 @@ def cleanup(self, name):
198201
SetA5(A5);
199202
}
200203
}
204+
#endif
201205
"""
202206

203207

@@ -309,7 +313,7 @@ def outputSetattrBody(self):
309313
self->ob_completion = value;
310314
Py_INCREF(value);
311315
rv = 1;
312-
#if !TARGET_API_MAC_CARBON_NOTYET
316+
#if !TARGET_API_MAC_CARBON
313317
} else if (strcmp(name, "interruptRoutine") == 0) {
314318
self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
315319
self->ob_interrupt = value;

0 commit comments

Comments
 (0)