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> 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. * scm-valprint.c: Whitespace tweaks.
* rs6000-tdep.c: Whitespace tweaks. * rs6000-tdep.c: Whitespace tweaks.
* rs6000-nat.c: Whitespace tweaks. * rs6000-nat.c: Whitespace tweaks.

View File

@ -129,7 +129,7 @@ net_open (struct serial *scb, const char *name)
do 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 poll the UI so it can update or the user can
interrupt. */ interrupt. */
if (deprecated_ui_loop_hook) if (deprecated_ui_loop_hook)

View File

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

View File

@ -63,8 +63,8 @@ enum serial_rc {
SERIAL_ERROR = -1, /* General error. */ SERIAL_ERROR = -1, /* General error. */
SERIAL_TIMEOUT = -2, /* Timeout or data-not-ready during read. SERIAL_TIMEOUT = -2, /* Timeout or data-not-ready during read.
Unfortunately, through Unfortunately, through
deprecated_ui_loop_hook(), this can also be deprecated_ui_loop_hook (), this can also
a QUIT indication. */ be a QUIT indication. */
SERIAL_EOF = -3 /* General end-of-file or remote target SERIAL_EOF = -3 /* General end-of-file or remote target
connection closed, indication. Includes connection closed, indication. Includes
things like the line dropping dead. */ 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. */ /* 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. */ /* Allow pending output to drain. */