diff options
Diffstat (limited to 'Modules/termios.c')
-rw-r--r-- | Modules/termios.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/Modules/termios.c b/Modules/termios.c index aab6b8a..80d41de 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -46,9 +46,7 @@ indexing in the cc array must be done using the symbolic constants defined\n\ in the TERMIOS module."; static PyObject * -termios_tcgetattr(self, args) - PyObject *self; - PyObject *args; +termios_tcgetattr(PyObject *self, PyObject *args) { int fd; struct termios mode; @@ -126,9 +124,7 @@ queued output, or TERMIOS.TCSAFLUSH to change after transmitting all\n\ queued output and discarding all queued input. "; static PyObject * -termios_tcsetattr(self, args) - PyObject *self; - PyObject *args; +termios_tcsetattr(PyObject *self, PyObject *args) { int fd, when; struct termios mode; @@ -195,9 +191,7 @@ A zero duration sends a break for 0.25-0.5 seconds; a nonzero duration \n\ has a system dependent meaning. "; static PyObject * -termios_tcsendbreak(self, args) - PyObject *self; - PyObject *args; +termios_tcsendbreak(PyObject *self, PyObject *args) { int fd, duration; @@ -219,9 +213,7 @@ tcdrain(fd) -> None\n\ Wait until all output written to file descriptor fd has been transmitted. "; static PyObject * -termios_tcdrain(self, args) - PyObject *self; - PyObject *args; +termios_tcdrain(PyObject *self, PyObject *args) { int fd; @@ -246,9 +238,7 @@ queue, TERMIOS.TCOFLUSH for the output queue, or TERMIOS.TCIOFLUSH for\n\ both queues. "; static PyObject * -termios_tcflush(self, args) - PyObject *self; - PyObject *args; +termios_tcflush(PyObject *self, PyObject *args) { int fd, queue; @@ -273,9 +263,7 @@ TERMIOS.TCOON to restart output, TERMIOS.TCIOFF to suspend input,\n\ or TERMIOS.TCION to restart input. "; static PyObject * -termios_tcflow(self, args) - PyObject *self; - PyObject *args; +termios_tcflow(PyObject *self, PyObject *args) { int fd, action; |