mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
gdb: fix formatting of serial::async_state's enumerators
The comments related to these enumerators are placed under the corresponding enumerator. This is quite unusual and confusing. Change it to have the comments above, as usual. gdb/ChangeLog: * ser-base.c: Adjust comments formatting. Change-Id: If2ea143a7d5217efa5ac088102ddb1933fbcb16a
This commit is contained in:
parent
394e9bf642
commit
bd356ec6c0
@ -1,3 +1,7 @@
|
|||||||
|
2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* ser-base.c: Adjust comments formatting.
|
||||||
|
|
||||||
2020-09-27 Tom Tromey <tom@tromey.com>
|
2020-09-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
PR tui/25342:
|
PR tui/25342:
|
||||||
|
@ -43,17 +43,18 @@ static handler_func fd_event;
|
|||||||
|
|
||||||
/* Value of scb->async_state: */
|
/* Value of scb->async_state: */
|
||||||
enum {
|
enum {
|
||||||
/* >= 0 (TIMER_SCHEDULED) */
|
/* When >= 0, this contains the ID of the currently scheduled timer event.
|
||||||
/* The ID of the currently scheduled timer event. This state is
|
This state is rarely encountered. Timer events are one-off so as soon as
|
||||||
rarely encountered. Timer events are one-off so as soon as the
|
the event is delivered the state is changed to NOTHING_SCHEDULED. */
|
||||||
event is delivered the state is changed to NOTHING_SCHEDULED. */
|
|
||||||
FD_SCHEDULED = -1,
|
|
||||||
/* The fd_event() handler is scheduled. It is called when ever the
|
/* The fd_event() handler is scheduled. It is called when ever the
|
||||||
file descriptor becomes ready. */
|
file descriptor becomes ready. */
|
||||||
NOTHING_SCHEDULED = -2
|
FD_SCHEDULED = -1,
|
||||||
|
|
||||||
/* Either no task is scheduled (just going into ASYNC mode) or a
|
/* Either no task is scheduled (just going into ASYNC mode) or a
|
||||||
timer event has just gone off and the current state has been
|
timer event has just gone off and the current state has been
|
||||||
forced into nothing scheduled. */
|
forced into nothing scheduled. */
|
||||||
|
NOTHING_SCHEDULED = -2
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Identify and schedule the next ASYNC task based on scb->async_state
|
/* Identify and schedule the next ASYNC task based on scb->async_state
|
||||||
|
Loading…
Reference in New Issue
Block a user