mirror of https://github.com/xzeldon/htop.git
Wrap inline structure definitions
This commit is contained in:
parent
45869513bf
commit
0d64ca9262
10
Action.c
10
Action.c
|
@ -425,7 +425,10 @@ static Htop_Reaction actionTogglePauseProcessUpdate(State* st) {
|
||||||
return HTOP_REFRESH | HTOP_REDRAW_BAR;
|
return HTOP_REFRESH | HTOP_REDRAW_BAR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct { const char* key; const char* info; } helpLeft[] = {
|
static const struct {
|
||||||
|
const char* key;
|
||||||
|
const char* info;
|
||||||
|
} helpLeft[] = {
|
||||||
{ .key = " Arrows: ", .info = "scroll process list" },
|
{ .key = " Arrows: ", .info = "scroll process list" },
|
||||||
{ .key = " Digits: ", .info = "incremental PID search" },
|
{ .key = " Digits: ", .info = "incremental PID search" },
|
||||||
{ .key = " F3 /: ", .info = "incremental name search" },
|
{ .key = " F3 /: ", .info = "incremental name search" },
|
||||||
|
@ -444,7 +447,10 @@ static const struct { const char* key; const char* info; } helpLeft[] = {
|
||||||
{ .key = NULL, .info = NULL }
|
{ .key = NULL, .info = NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct { const char* key; const char* info; } helpRight[] = {
|
static const struct {
|
||||||
|
const char* key;
|
||||||
|
const char* info;
|
||||||
|
} helpRight[] = {
|
||||||
{ .key = " Space: ", .info = "tag process" },
|
{ .key = " Space: ", .info = "tag process" },
|
||||||
{ .key = " c: ", .info = "tag process and its children" },
|
{ .key = " c: ", .info = "tag process and its children" },
|
||||||
{ .key = " U: ", .info = "untag all processes" },
|
{ .key = " U: ", .info = "untag all processes" },
|
||||||
|
|
|
@ -21,12 +21,13 @@ Panel* IOPriorityPanel_new(IOPriority currPrio) {
|
||||||
|
|
||||||
Panel_setHeader(this, "IO Priority:");
|
Panel_setHeader(this, "IO Priority:");
|
||||||
Panel_add(this, (Object*) ListItem_new("None (based on nice)", IOPriority_None));
|
Panel_add(this, (Object*) ListItem_new("None (based on nice)", IOPriority_None));
|
||||||
|
|
||||||
if (currPrio == IOPriority_None) {
|
if (currPrio == IOPriority_None) {
|
||||||
Panel_setSelected(this, 0);
|
Panel_setSelected(this, 0);
|
||||||
}
|
}
|
||||||
|
static const struct {
|
||||||
static const struct { int klass; const char* name; } classes[] = {
|
int klass;
|
||||||
|
const char* name;
|
||||||
|
} classes[] = {
|
||||||
{ .klass = IOPRIO_CLASS_RT, .name = "Realtime" },
|
{ .klass = IOPRIO_CLASS_RT, .name = "Realtime" },
|
||||||
{ .klass = IOPRIO_CLASS_BE, .name = "Best-effort" },
|
{ .klass = IOPRIO_CLASS_BE, .name = "Best-effort" },
|
||||||
{ .klass = 0, .name = NULL }
|
{ .klass = 0, .name = NULL }
|
||||||
|
|
Loading…
Reference in New Issue