top: eliminate that 'TOG4_NOTRUNC' compile conditional <=== port of newlib 08d0f377

______________________________ original newlib message
----------------------------------- ( minus git hash )

When 2 abreast cpu display was introduced, the minimum
screen width was 160 columns so as to avoid (minimize)
truncation. Later that was reduced to 80 columns while
keeping the original minimum as a compile conditional.

In preparation for (virtually) eliminating these width
restrictions in a future patch this #define's history.

Reference(s):
. May, 2020 - introduced #define TOG4_NOTRUNC
commit ........................................
. May, 2020 - introduce 2 abreast display
commit ........................................

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2022-09-12 00:00:00 -05:00
committed by Craig Small
parent 6fb0844f12
commit f1862cde1c
4 changed files with 4 additions and 13 deletions

View File

@@ -277,11 +277,7 @@ static char Double_sp[] = " ";
static char Double_sp[] = " ~1 ~6 ";
#define DOUBLE_space (sizeof(Double_sp) - 5) // 1 for null, 4 unprintable
#endif
#ifdef TOG4_NOTRUNC
#define DOUBLE_limit (int)( 160 + DOUBLE_space )
#else
#define DOUBLE_limit (int)( 80 )
#endif
#define DOUBLE_limit (int)( 80 )
/*###### Sort callbacks ################################################*/
@@ -5841,11 +5837,8 @@ static void keys_summary (int ch) {
break;
case '4':
w->rc.double_up = !w->rc.double_up;
if (w->rc.double_up && Screen_cols < DOUBLE_limit) {
show_msg(N_txt(XTRA_size2up_txt));
if (w->rc.double_up && Screen_cols < DOUBLE_limit)
w->rc.double_up = 0;
break;
}
if (w->rc.double_up)
OFFw(w, (View_CPUSUM | View_CPUNOD));
break;