top: miscellaneous changes to whitespace/comments only
[ ok, there's also 1 newly added #undef included too ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
dd47a9744f
commit
cdf8eac99e
10
top/top.c
10
top/top.c
@ -31,6 +31,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <term.h> // foul sob, defines all sorts of stuff...
|
#include <term.h> // foul sob, defines all sorts of stuff...
|
||||||
|
#undef raw
|
||||||
#undef tab
|
#undef tab
|
||||||
#undef TTY
|
#undef TTY
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
@ -258,7 +259,7 @@ SCB_STRS(LXC, lxcname)
|
|||||||
SCB_NUMx(NCE, nice)
|
SCB_NUMx(NCE, nice)
|
||||||
static int SCB_NAME(NMA) (const proc_t **P, const proc_t **Q) {
|
static int SCB_NAME(NMA) (const proc_t **P, const proc_t **Q) {
|
||||||
/* this is a terrible cost to pay for sorting on numa nodes, but it's
|
/* this is a terrible cost to pay for sorting on numa nodes, but it's
|
||||||
necessary if we're to avoid ABI breakage via changes to the proc_t */
|
necessary if we're to avoid ABI breakage via changes to the proc_t */
|
||||||
int p = numa_node_of_cpu((*P)->processor);
|
int p = numa_node_of_cpu((*P)->processor);
|
||||||
int q = numa_node_of_cpu((*Q)->processor);
|
int q = numa_node_of_cpu((*Q)->processor);
|
||||||
return Frame_srtflg * ( q - p );
|
return Frame_srtflg * ( q - p );
|
||||||
@ -884,7 +885,7 @@ static int show_pmt (const char *str) {
|
|||||||
* "some text <_delimiter_> some more text <_delimiter_>...\n"
|
* "some text <_delimiter_> some more text <_delimiter_>...\n"
|
||||||
* Where <_delimiter_> is a two byte combination consisting of a
|
* Where <_delimiter_> is a two byte combination consisting of a
|
||||||
* tilde followed by an ascii digit in the range of 1 - 8.
|
* tilde followed by an ascii digit in the range of 1 - 8.
|
||||||
* examples: ~1, ~5, ~8, etc.
|
* examples: ~1, ~5, ~8, etc.
|
||||||
* The tilde is effectively stripped and the next digit
|
* The tilde is effectively stripped and the next digit
|
||||||
* converted to an index which is then used to select an
|
* converted to an index which is then used to select an
|
||||||
* 'attribute' from a capabilities table. That attribute
|
* 'attribute' from a capabilities table. That attribute
|
||||||
@ -2249,7 +2250,8 @@ static void display_fields (int focus, int extend) {
|
|||||||
char sbuf[xSUFX*4]; // 4 = max multi-byte
|
char sbuf[xSUFX*4]; // 4 = max multi-byte
|
||||||
int xcol, xfld;
|
int xcol, xfld;
|
||||||
|
|
||||||
// prep sacrificial suffix (allowing for beginning '= ') ...
|
/* prep sacrificial suffix (allowing for beginning '= ')
|
||||||
|
note: width passed to 'utf8_embody' may go negative, but he'll be just fine */
|
||||||
snprintf(sbuf, sizeof(sbuf), "= %.*s", utf8_embody(N_fld(f), smax - xEQUS), N_fld(f));
|
snprintf(sbuf, sizeof(sbuf), "= %.*s", utf8_embody(N_fld(f), smax - xEQUS), N_fld(f));
|
||||||
|
|
||||||
// obtain translated deltas (if any) ...
|
// obtain translated deltas (if any) ...
|
||||||
@ -3192,7 +3194,7 @@ static void insp_mkrow_utf8 (int col, int row) {
|
|||||||
unsigned char uch = tline[fr++];
|
unsigned char uch = tline[fr++];
|
||||||
switch (UTF8_tab[(int)uch]) {
|
switch (UTF8_tab[(int)uch]) {
|
||||||
case 1:
|
case 1:
|
||||||
if (uch == '\n') break;
|
if (uch == '\n') break;
|
||||||
else if (uch < 32) mkCTL
|
else if (uch < 32) mkCTL
|
||||||
else if (uch == 127) mkNUL
|
else if (uch == 127) mkNUL
|
||||||
else { buf1[0] = uch; doPUT(buf1) }
|
else { buf1[0] = uch; doPUT(buf1) }
|
||||||
|
Loading…
Reference in New Issue
Block a user