top: tweak whitespace in some #defines for consistency
Please, do not look at the actual changes made by this commit. Trust me they will vastly improve performance. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
7e24816538
commit
548c6a05ba
@ -1005,7 +1005,7 @@ static void show_special (int interact, const char *glob) {
|
|||||||
|
|
||||||
// handle multiple lines passed in a bunch
|
// handle multiple lines passed in a bunch
|
||||||
while ((lin_end = strchr(glob, '\n'))) {
|
while ((lin_end = strchr(glob, '\n'))) {
|
||||||
#define myMIN(a,b) (((a) < (b)) ? (a) : (b))
|
#define myMIN(a,b) (((a) < (b)) ? (a) : (b))
|
||||||
size_t lessor = myMIN((size_t)(lin_end - glob), sizeof(lin) -3);
|
size_t lessor = myMIN((size_t)(lin_end - glob), sizeof(lin) -3);
|
||||||
|
|
||||||
// create a local copy we can extend and otherwise abuse
|
// create a local copy we can extend and otherwise abuse
|
||||||
@ -1046,7 +1046,7 @@ static void show_special (int interact, const char *glob) {
|
|||||||
else PUFF("%s%s\n", row, Caps_endline);
|
else PUFF("%s%s\n", row, Caps_endline);
|
||||||
glob = ++lin_end; // point to next line (maybe)
|
glob = ++lin_end; // point to next line (maybe)
|
||||||
|
|
||||||
#undef myMIN
|
#undef myMIN
|
||||||
} // end: while 'lines'
|
} // end: while 'lines'
|
||||||
|
|
||||||
/* If there's anything left in the glob (by virtue of no trailing '\n'),
|
/* If there's anything left in the glob (by virtue of no trailing '\n'),
|
||||||
@ -2110,8 +2110,8 @@ static void adj_geometry (void) {
|
|||||||
|
|
||||||
#if !defined(TOG4_MEM_FIX) && !defined(TOG4_MEM_1UP)
|
#if !defined(TOG4_MEM_FIX) && !defined(TOG4_MEM_1UP)
|
||||||
if (num > 2) {
|
if (num > 2) {
|
||||||
#define cpuGRAPH ( GRAPH_prefix_abv + Graph_cpus->length + GRAPH_suffix )
|
#define cpuGRAPH ( GRAPH_prefix_abv + Graph_cpus->length + GRAPH_suffix )
|
||||||
#define nxtGRAPH ( cpuGRAPH + ADJOIN_space )
|
#define nxtGRAPH ( cpuGRAPH + ADJOIN_space )
|
||||||
int len = cpuGRAPH;
|
int len = cpuGRAPH;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (len + nxtGRAPH > GRAPH_length_max) break;
|
if (len + nxtGRAPH > GRAPH_length_max) break;
|
||||||
@ -2119,8 +2119,8 @@ static void adj_geometry (void) {
|
|||||||
}
|
}
|
||||||
len -= (GRAPH_prefix_abv + ADJOIN_space);
|
len -= (GRAPH_prefix_abv + ADJOIN_space);
|
||||||
Graph_mems->length = len;
|
Graph_mems->length = len;
|
||||||
#undef cpuGRAPH
|
#undef cpuGRAPH
|
||||||
#undef nxtGRAPH
|
#undef nxtGRAPH
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user