Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
319c67b6
Commit
319c67b6
authored
Jan 12, 2001
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The interruptRoutine attribute is gone under Carbon. Luckily it appears that nothing used it.
parent
736b51df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Mac/Modules/snd/Sndmodule.c
Mac/Modules/snd/Sndmodule.c
+5
-1
Mac/Modules/snd/sndsupport.py
Mac/Modules/snd/sndsupport.py
+5
-1
No files found.
Mac/Modules/snd/Sndmodule.c
View file @
319c67b6
...
...
@@ -37,7 +37,9 @@ 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
static
PyObject
*
Snd_Error
;
...
...
@@ -449,7 +451,7 @@ static int SPBObj_setattr(self, name, value)
self
->
ob_completion
=
value
;
Py_INCREF
(
value
);
rv
=
1
;
#if !TARGET_API_MAC_CARBON
_NOTYET
#if !TARGET_API_MAC_CARBON
}
else
if
(
strcmp
(
name
,
"interruptRoutine"
)
==
0
)
{
self
->
ob_spb
.
completionRoutine
=
NewSIInterruptProc
(
SPB_interrupt
);
self
->
ob_interrupt
=
value
;
...
...
@@ -1513,6 +1515,7 @@ SPB_completion(SPBPtr my_spb)
}
}
#if !TARGET_API_MAC_CARBON
static
pascal
void
SPB_interrupt
(
SPBPtr
my_spb
)
{
...
...
@@ -1525,6 +1528,7 @@ SPB_interrupt(SPBPtr my_spb)
SetA5
(
A5
);
}
}
#endif
void
initSnd
()
...
...
Mac/Modules/snd/sndsupport.py
View file @
319c67b6
...
...
@@ -117,7 +117,9 @@ 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
"""
...
...
@@ -186,6 +188,7 @@ SPB_completion(SPBPtr my_spb)
}
}
#if !TARGET_API_MAC_CARBON
static pascal void
SPB_interrupt(SPBPtr my_spb)
{
...
...
@@ -198,6 +201,7 @@ SPB_interrupt(SPBPtr my_spb)
SetA5(A5);
}
}
#endif
"""
...
...
@@ -309,7 +313,7 @@ class SpbObjectDefinition(ObjectDefinition):
self->ob_completion = value;
Py_INCREF(value);
rv = 1;
#if !TARGET_API_MAC_CARBON
_NOTYET
#if !TARGET_API_MAC_CARBON
} else if (strcmp(name, "interruptRoutine") == 0) {
self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
self->ob_interrupt = value;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment