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
68789ef2
Commit
68789ef2
authored
Aug 03, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdmodule.c: 2 minor changes by Sjoerd.
parent
69f4235a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
Modules/cdmodule.c
Modules/cdmodule.c
+13
-3
No files found.
Modules/cdmodule.c
View file @
68789ef2
...
...
@@ -334,7 +334,7 @@ CD_readda(self, args)
n
=
CDreadda
(
self
->
ob_cdplayer
,
(
CDFRAME
*
)
getstringvalue
(
result
),
numframes
);
if
(
n
==
-
1
)
{
DECREF
(
result
);
err_errno
(
IOError
);
/* XXX - ??? (seems to work) */
err_errno
(
IOError
);
return
NULL
;
}
if
(
n
<
numframes
)
...
...
@@ -685,6 +685,11 @@ CD_removecallback(self, args)
if
(
!
getargs
(
args
,
"i"
,
&
type
))
return
NULL
;
if
(
type
<
0
||
type
>=
NCALLBACKS
)
{
err_setstr
(
RuntimeError
,
"bad type"
);
return
NULL
;
}
CDremovecallback
(
self
->
ob_cdparser
,
(
CDDATATYPES
)
type
);
XDECREF
(
self
->
ob_cdcallbacks
[
type
].
ob_cdcallback
);
...
...
@@ -714,7 +719,7 @@ CD_resetparser(self, args)
}
static
object
*
CD_
set
callback
(
self
,
args
)
CD_
add
callback
(
self
,
args
)
cdparserobject
*
self
;
object
*
args
;
{
...
...
@@ -732,7 +737,11 @@ CD_setcallback(self, args)
return
NULL
;
}
#ifdef IRIX_405
CDaddcallback
(
self
->
ob_cdparser
,
(
CDDATATYPES
)
type
,
CD_callback
,
(
void
*
)
self
);
#else
CDsetcallback
(
self
->
ob_cdparser
,
(
CDDATATYPES
)
type
,
CD_callback
,
(
void
*
)
self
);
#endif
XDECREF
(
self
->
ob_cdcallbacks
[
type
].
ob_cdcallback
);
INCREF
(
funcobject
);
self
->
ob_cdcallbacks
[
type
].
ob_cdcallback
=
funcobject
;
...
...
@@ -745,11 +754,12 @@ CD_setcallback(self, args)
}
static
struct
methodlist
cdparser_methods
[]
=
{
{
"addcallback"
,
CD_addcallback
},
{
"deleteparser"
,
CD_deleteparser
},
{
"parseframe"
,
CD_parseframe
},
{
"removecallback"
,
CD_removecallback
},
{
"resetparser"
,
CD_resetparser
},
{
"setcallback"
,
CD_
setcallback
},
{
"setcallback"
,
CD_
addcallback
},
/* backward compatibility */
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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