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
1b05f8a1
Commit
1b05f8a1
authored
Oct 24, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These are true PyCFunctions, after adding the second argument to oss_self, no need to cast.
parent
c30370a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Modules/ossaudiodev.c
Modules/ossaudiodev.c
+5
-5
No files found.
Modules/ossaudiodev.c
View file @
1b05f8a1
...
...
@@ -470,7 +470,7 @@ oss_close(oss_audio_t *self, PyObject *unused)
}
static
PyObject
*
oss_self
(
PyObject
*
self
)
oss_self
(
PyObject
*
self
,
PyObject
*
unused
)
{
Py_INCREF
(
self
);
return
self
;
...
...
@@ -800,8 +800,8 @@ static PyMethodDef oss_methods[] = {
{
"flush"
,
(
PyCFunction
)
oss_sync
,
METH_VARARGS
},
/* Support for the context manager protocol */
{
"__enter__"
,
(
PyCFunction
)
oss_self
,
METH_NOARGS
},
{
"__exit__"
,
(
PyCFunction
)
oss_exit
,
METH_VARARGS
},
{
"__enter__"
,
oss_self
,
METH_NOARGS
},
{
"__exit__"
,
oss_exit
,
METH_VARARGS
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
@@ -812,8 +812,8 @@ static PyMethodDef oss_mixer_methods[] = {
{
"fileno"
,
(
PyCFunction
)
oss_mixer_fileno
,
METH_NOARGS
},
/* Support for the context manager protocol */
{
"__enter__"
,
(
PyCFunction
)
oss_self
,
METH_NOARGS
},
{
"__exit__"
,
(
PyCFunction
)
oss_exit
,
METH_VARARGS
},
{
"__enter__"
,
oss_self
,
METH_NOARGS
},
{
"__exit__"
,
oss_exit
,
METH_VARARGS
},
/* Simple ioctl wrappers */
{
"controls"
,
(
PyCFunction
)
oss_mixer_controls
,
METH_VARARGS
},
...
...
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