2005-01-13 Michael Snyder <msnyder@redhat.com>

* ser-tcp.c: Whitespace tweaks.
	* ser-unix.c: Whitespace tweaks.
	* serial.h: Whitespace tweaks.
This commit is contained in:
Michael Snyder
2005-01-14 01:59:20 +00:00
parent 41ccc9f609
commit 2c1ab59266
4 changed files with 38 additions and 33 deletions

View File

@ -20,6 +20,9 @@
2005-01-13 Michael Snyder <msnyder@redhat.com>
* ser-tcp.c: Whitespace tweaks.
* ser-unix.c: Whitespace tweaks.
* serial.h: Whitespace tweaks.
* scm-valprint.c: Whitespace tweaks.
* rs6000-tdep.c: Whitespace tweaks.
* rs6000-nat.c: Whitespace tweaks.

View File

@ -129,7 +129,7 @@ net_open (struct serial *scb, const char *name)
do
{
/* While we wait for the connect to complete
/* While we wait for the connect to complete,
poll the UI so it can update or the user can
interrupt. */
if (deprecated_ui_loop_hook)

View File

@ -565,11 +565,12 @@ do_hardwire_readchar (struct serial *scb, int timeout)
if (timeout > 0)
timeout++;
/* We have to be able to keep the GUI alive here, so we break the original
timeout into steps of 1 second, running the "keep the GUI alive" hook
each time through the loop.
Also, timeout = 0 means to poll, so we just set the delta to 0, so we
will only go through the loop once. */
/* We have to be able to keep the GUI alive here, so we break the
original timeout into steps of 1 second, running the "keep the
GUI alive" hook each time through the loop.
Also, timeout = 0 means to poll, so we just set the delta to 0,
so we will only go through the loop once. */
delta = (timeout == 0 ? 0 : 1);
while (1)
@ -944,12 +945,12 @@ do_unix_readchar (struct serial *scb, int timeout)
int status;
int delta;
/* We have to be able to keep the GUI alive here, so we break the original
timeout into steps of 1 second, running the "keep the GUI alive" hook
each time through the loop.
/* We have to be able to keep the GUI alive here, so we break the
original timeout into steps of 1 second, running the "keep the
GUI alive" hook each time through the loop.
Also, timeout = 0 means to poll, so we just set the delta to 0, so we
will only go through the loop once. */
Also, timeout = 0 means to poll, so we just set the delta to 0,
so we will only go through the loop once. */
delta = (timeout == 0 ? 0 : 1);
while (1)

View File

@ -63,8 +63,8 @@ enum serial_rc {
SERIAL_ERROR = -1, /* General error. */
SERIAL_TIMEOUT = -2, /* Timeout or data-not-ready during read.
Unfortunately, through
deprecated_ui_loop_hook(), this can also be
a QUIT indication. */
deprecated_ui_loop_hook (), this can also
be a QUIT indication. */
SERIAL_EOF = -3 /* General end-of-file or remote target
connection closed, indication. Includes
things like the line dropping dead. */
@ -79,7 +79,8 @@ extern int serial_write (struct serial *scb, const char *str, int len);
/* Write a printf style string onto the serial port. */
extern void serial_printf (struct serial *desc, const char *,...) ATTR_FORMAT (printf, 2, 3);
extern void serial_printf (struct serial *desc,
const char *,...) ATTR_FORMAT (printf, 2, 3);
/* Allow pending output to drain. */