top: make that 'cpu_prt' function a tad more efficient
This commit only eliminates two 'nop' instructions and one 'jmp' instruction. However, it makes that C source code look a little bit prettier than it looked before. [ and yes, some unnecessary parenthesis were used to ] [ force an alignment of some related lines. it costs ] [ us nothing in extra code yet helps in readability. ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
3e2cd9f87b
commit
01848d2adb
@ -5319,14 +5319,13 @@ static inline int cpu_prt (const char *str, int nobuf) {
|
|||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
p = scat(row, str);
|
p = scat(row, str);
|
||||||
if (nobuf || !Curwin->rc.double_up)
|
if (Curwin->rc.double_up
|
||||||
goto flush_it;
|
&& (!nobuf)
|
||||||
if (!tog) {
|
&& (!tog)) {
|
||||||
scat(p, Double_sp);
|
scat(p, Double_sp);
|
||||||
tog = 1;
|
tog = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
flush_it:
|
|
||||||
scat(p, "\n");
|
scat(p, "\n");
|
||||||
show_special(0, row);
|
show_special(0, row);
|
||||||
row[0] = '\0';
|
row[0] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user