[Python-checkins] CVS: python/dist/src/Modules sunaudiodev.c,1.19,1.20
Peter Schneider-Kamp
python-dev@python.org
2000年7月10日 10:25:39 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv9249
Modified Files:
sunaudiodev.c
Log Message:
ANSI-fication (fixed on parameter list I messed up in the patch)
Index: sunaudiodev.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/sunaudiodev.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** sunaudiodev.c 2000年06月30日 23:58:05 1.19
--- sunaudiodev.c 2000年07月10日 17:25:37 1.20
***************
*** 61,66 ****
static sadobject *
! newsadobject(arg)
! PyObject *arg;
{
sadobject *xp;
--- 61,65 ----
static sadobject *
! newsadobject(PyObject *args)
{
sadobject *xp;
***************
*** 73,77 ****
/* Check arg for r/w/rw */
! if (!PyArg_Parse(arg, "s", &mode))
return NULL;
if (strcmp(mode, "r") == 0)
--- 72,76 ----
/* Check arg for r/w/rw */
! if (!PyArg_Parse(args, "s", &mode))
return NULL;
if (strcmp(mode, "r") == 0)
***************
*** 134,139 ****
static void
! sad_dealloc(xp)
! sadobject *xp;
{
close(xp->x_fd);
--- 133,137 ----
static void
! sad_dealloc(sadobject *xp)
{
close(xp->x_fd);
***************
*** 142,148 ****
static PyObject *
! sad_read(self, args)
! sadobject *self;
! PyObject *args;
{
int size, count;
--- 140,144 ----
static PyObject *
! sad_read(sadobject *self, PyObject *args)
{
int size, count;
***************
*** 181,187 ****
static PyObject *
! sad_write(self, args)
! sadobject *self;
! PyObject *args;
{
char *cp;
--- 177,181 ----
static PyObject *
! sad_write(sadobject *self, PyObject *args)
{
char *cp;
***************
*** 207,213 ****
static PyObject *
! sad_getinfo(self, args)
! sadobject *self;
! PyObject *args;
{
sadstatusobject *rv;
--- 201,205 ----
static PyObject *
! sad_getinfo(sadobject *self, PyObject *args)
{
sadstatusobject *rv;
***************
*** 227,233 ****
static PyObject *
! sad_setinfo(self, arg)
! sadobject *self;
! sadstatusobject *arg;
{
if (!is_sadstatusobject(arg)) {
--- 219,223 ----
static PyObject *
! sad_setinfo(sadobject *self, sadstatusobject *arg)
{
if (!is_sadstatusobject(arg)) {
***************
*** 245,251 ****
static PyObject *
! sad_ibufcount(self, args)
! sadobject *self;
! PyObject *args;
{
audio_info_t ai;
--- 235,239 ----
static PyObject *
! sad_ibufcount(sadobject *self, PyObject *args)
{
audio_info_t ai;
***************
*** 261,267 ****
static PyObject *
! sad_obufcount(self, args)
! sadobject *self;
! PyObject *args;
{
audio_info_t ai;
--- 249,253 ----
static PyObject *
! sad_obufcount(sadobject *self, PyObject *args)
{
audio_info_t ai;
***************
*** 281,287 ****
static PyObject *
! sad_drain(self, args)
! sadobject *self;
! PyObject *args;
{
--- 267,271 ----
static PyObject *
! sad_drain(sadobject *self, PyObject *args)
{
***************
*** 298,304 ****
#ifdef SOLARIS
static PyObject *
! sad_getdev(self, args)
! sadobject *self;
! PyObject *args;
{
struct audio_device ad;
--- 282,286 ----
#ifdef SOLARIS
static PyObject *
! sad_getdev(sadobject *self, PyObject *args)
{
struct audio_device ad;
***************
*** 315,321 ****
static PyObject *
! sad_flush(self, args)
! sadobject *self;
! PyObject *args;
{
--- 297,301 ----
static PyObject *
! sad_flush(sadobject *self, PyObject *args)
{
***************
*** 331,337 ****
static PyObject *
! sad_close(self, args)
! sadobject *self;
! PyObject *args;
{
--- 311,315 ----
static PyObject *
! sad_close(sadobject *self, PyObject *args)
{
***************
*** 347,353 ****
static PyObject *
! sad_fileno(self, args)
! sadobject *self;
! PyObject *args;
{
if (!PyArg_Parse(args, ""))
--- 325,329 ----
static PyObject *
! sad_fileno(sadobject *self, PyObject *args)
{
if (!PyArg_Parse(args, ""))
***************
*** 377,383 ****
static PyObject *
! sad_getattr(xp, name)
! sadobject *xp;
! char *name;
{
if (xp->x_isctl)
--- 353,357 ----
static PyObject *
! sad_getattr(sadobject *xp, char *name)
{
if (xp->x_isctl)
***************
*** 396,401 ****
static void
! sads_dealloc(xp)
! sadstatusobject *xp;
{
PyMem_DEL(xp);
--- 370,374 ----
static void
! sads_dealloc(sadstatusobject *xp)
{
PyMem_DEL(xp);
***************
*** 447,453 ****
static PyObject *
! sads_getattr(xp, name)
! sadstatusobject *xp;
! char *name;
{
return PyMember_Get((char *)&xp->ai, sads_ml, name);
--- 420,424 ----
static PyObject *
! sads_getattr(sadstatusobject *xp, char *name)
{
return PyMember_Get((char *)&xp->ai, sads_ml, name);
***************
*** 455,462 ****
static int
! sads_setattr(xp, name, v)
! sadstatusobject *xp;
! char *name;
! PyObject *v;
{
--- 426,430 ----
static int
! sads_setattr(sadstatusobject *xp, char *name, PyObject *v)
{
***************
*** 504,510 ****
static PyObject *
! sadopen(self, args)
! PyObject *self;
! PyObject *args;
{
return (PyObject *)newsadobject(args);
--- 472,476 ----
static PyObject *
! sadopen(PyObject *self, PyObject *args)
{
return (PyObject *)newsadobject(args);