Commit 41c36ffe authored by Peter Schneider-Kamp's avatar Peter Schneider-Kamp

ANSI-fication

parent 416d4135
...@@ -58,8 +58,7 @@ typedef struct { ...@@ -58,8 +58,7 @@ typedef struct {
} pylist; } pylist;
static void static void
reap_obj(fd2obj) reap_obj(pylist fd2obj[FD_SETSIZE + 3])
pylist fd2obj[FD_SETSIZE + 3];
{ {
int i; int i;
for (i = 0; i < FD_SETSIZE + 3 && fd2obj[i].sentinel >= 0; i++) { for (i = 0; i < FD_SETSIZE + 3 && fd2obj[i].sentinel >= 0; i++) {
...@@ -74,10 +73,7 @@ reap_obj(fd2obj) ...@@ -74,10 +73,7 @@ reap_obj(fd2obj)
returns a number >= 0 returns a number >= 0
*/ */
static int static int
list2set(list, set, fd2obj) list2set(PyObject *list, fd_set *set, pylist fd2obj[FD_SETSIZE + 3])
PyObject *list;
fd_set *set;
pylist fd2obj[FD_SETSIZE + 3];
{ {
int i; int i;
int max = -1; int max = -1;
...@@ -155,9 +151,7 @@ list2set(list, set, fd2obj) ...@@ -155,9 +151,7 @@ list2set(list, set, fd2obj)
/* returns NULL and sets the Python exception if an error occurred */ /* returns NULL and sets the Python exception if an error occurred */
static PyObject * static PyObject *
set2list(set, fd2obj) set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 3])
fd_set *set;
pylist fd2obj[FD_SETSIZE + 3];
{ {
int i, j, count=0; int i, j, count=0;
PyObject *list, *o; PyObject *list, *o;
...@@ -199,9 +193,7 @@ set2list(set, fd2obj) ...@@ -199,9 +193,7 @@ set2list(set, fd2obj)
static PyObject * static PyObject *
select_select(self, args) select_select(PyObject *self, PyObject *args)
PyObject *self;
PyObject *args;
{ {
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
/* This would be an awful lot of stack space on Windows! */ /* This would be an awful lot of stack space on Windows! */
......
...@@ -18,9 +18,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ...@@ -18,9 +18,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#include <fcntl.h> #include <fcntl.h>
static PyObject * static PyObject *
sgi_nap(self, args) sgi_nap(PyObject *self, PyObject *args)
PyObject *self;
PyObject *args;
{ {
long ticks; long ticks;
if (!PyArg_Parse(args, "l", &ticks)) if (!PyArg_Parse(args, "l", &ticks))
...@@ -35,9 +33,7 @@ sgi_nap(self, args) ...@@ -35,9 +33,7 @@ sgi_nap(self, args)
extern char *_getpty(int *, int, mode_t, int); extern char *_getpty(int *, int, mode_t, int);
static PyObject * static PyObject *
sgi__getpty(self, args) sgi__getpty(PyObject *self, PyObject *args)
PyObject *self;
PyObject *args;
{ {
int oflag; int oflag;
int mode; int mode;
......
This diff is collapsed.
...@@ -53,9 +53,7 @@ static PyObject *S_ident_o = NULL; /* identifier, held by openlog() */ ...@@ -53,9 +53,7 @@ static PyObject *S_ident_o = NULL; /* identifier, held by openlog() */
static PyObject * static PyObject *
syslog_openlog(self, args) syslog_openlog(PyObject * self, PyObject * args)
PyObject * self;
PyObject * args;
{ {
long logopt = 0; long logopt = 0;
long facility = LOG_USER; long facility = LOG_USER;
...@@ -80,9 +78,7 @@ syslog_openlog(self, args) ...@@ -80,9 +78,7 @@ syslog_openlog(self, args)
static PyObject * static PyObject *
syslog_syslog(self, args) syslog_syslog(PyObject * self, PyObject * args)
PyObject * self;
PyObject * args;
{ {
char *message; char *message;
int priority = LOG_INFO; int priority = LOG_INFO;
...@@ -101,9 +97,7 @@ syslog_syslog(self, args) ...@@ -101,9 +97,7 @@ syslog_syslog(self, args)
} }
static PyObject * static PyObject *
syslog_closelog(self, args) syslog_closelog(PyObject *self, PyObject *args)
PyObject * self;
PyObject * args;
{ {
if (!PyArg_ParseTuple(args, ":closelog")) if (!PyArg_ParseTuple(args, ":closelog"))
return NULL; return NULL;
...@@ -115,9 +109,7 @@ syslog_closelog(self, args) ...@@ -115,9 +109,7 @@ syslog_closelog(self, args)
} }
static PyObject * static PyObject *
syslog_setlogmask(self, args) syslog_setlogmask(PyObject *self, PyObject *args)
PyObject * self;
PyObject * args;
{ {
long maskpri, omaskpri; long maskpri, omaskpri;
...@@ -128,9 +120,7 @@ syslog_setlogmask(self, args) ...@@ -128,9 +120,7 @@ syslog_setlogmask(self, args)
} }
static PyObject * static PyObject *
syslog_log_mask(self, args) syslog_log_mask(PyObject *self, PyObject *args)
PyObject * self;
PyObject * args;
{ {
long mask; long mask;
long pri; long pri;
...@@ -141,9 +131,7 @@ syslog_log_mask(self, args) ...@@ -141,9 +131,7 @@ syslog_log_mask(self, args)
} }
static PyObject * static PyObject *
syslog_log_upto(self, args) syslog_log_upto(PyObject *self, PyObject *args)
PyObject * self;
PyObject * args;
{ {
long mask; long mask;
long pri; long pri;
...@@ -168,10 +156,7 @@ static PyMethodDef syslog_methods[] = { ...@@ -168,10 +156,7 @@ static PyMethodDef syslog_methods[] = {
/* helper function for initialization function */ /* helper function for initialization function */
static void static void
ins(d, s, x) ins(PyObject *d, char *s, long x)
PyObject *d;
char *s;
long x;
{ {
PyObject *v = PyInt_FromLong(x); PyObject *v = PyInt_FromLong(x);
if (v) { if (v) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment