diff options
author | Peter Schneider-Kamp <nowonder@nowonder.de> | 2000-07-10 12:29:26 (GMT) |
---|---|---|
committer | Peter Schneider-Kamp <nowonder@nowonder.de> | 2000-07-10 12:29:26 (GMT) |
commit | 41c36ffe83d22e84cc072130b3914d66d9d722f0 (patch) | |
tree | 2a0a77b79885543be54b4440c1e445d943e56a5a /Modules/selectmodule.c | |
parent | 416d413527ed7e9a1a5fe98f94487f6ee4315d2e (diff) | |
download | cpython-41c36ffe83d22e84cc072130b3914d66d9d722f0.zip cpython-41c36ffe83d22e84cc072130b3914d66d9d722f0.tar.gz cpython-41c36ffe83d22e84cc072130b3914d66d9d722f0.tar.bz2 |
ANSI-fication
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r-- | Modules/selectmodule.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 3430077..7a6dbc8 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -58,8 +58,7 @@ typedef struct { } pylist; static void -reap_obj(fd2obj) - pylist fd2obj[FD_SETSIZE + 3]; +reap_obj(pylist fd2obj[FD_SETSIZE + 3]) { int i; for (i = 0; i < FD_SETSIZE + 3 && fd2obj[i].sentinel >= 0; i++) { @@ -74,10 +73,7 @@ reap_obj(fd2obj) returns a number >= 0 */ static int -list2set(list, set, fd2obj) - PyObject *list; - fd_set *set; - pylist fd2obj[FD_SETSIZE + 3]; +list2set(PyObject *list, fd_set *set, pylist fd2obj[FD_SETSIZE + 3]) { int i; int max = -1; @@ -155,9 +151,7 @@ list2set(list, set, fd2obj) /* returns NULL and sets the Python exception if an error occurred */ static PyObject * -set2list(set, fd2obj) - fd_set *set; - pylist fd2obj[FD_SETSIZE + 3]; +set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 3]) { int i, j, count=0; PyObject *list, *o; @@ -199,9 +193,7 @@ set2list(set, fd2obj) static PyObject * -select_select(self, args) - PyObject *self; - PyObject *args; +select_select(PyObject *self, PyObject *args) { #ifdef MS_WINDOWS /* This would be an awful lot of stack space on Windows! */ |