fix a few Alpha troubles

This commit is contained in:
albert 2002-10-12 20:32:24 +00:00
parent f0a056bab8
commit ca1b842d0e
2 changed files with 11 additions and 11 deletions

4
top.c
View File

@ -1012,9 +1012,9 @@ static void configs_read (void)
if (WINNAMSIZ <= strlen(Winstk[i]->winname) if (WINNAMSIZ <= strlen(Winstk[i]->winname)
|| strlen(DEF_FIELDS) != strlen(Winstk[i]->fieldscur)) || strlen(DEF_FIELDS) != strlen(Winstk[i]->fieldscur))
std_err(fmtmk(err_rc, RCfile)); std_err(fmtmk(err_rc, RCfile));
fscanf(fp, "\twinflags=%d, sortindx=%d, maxtasks=%d \n" fscanf(fp, "\twinflags=%d, sortindx=%u, maxtasks=%d \n"
, &Winstk[i]->winflags , &Winstk[i]->winflags
, (int *)&Winstk[i]->sortindx , &Winstk[i]->sortindx
, &Winstk[i]->maxtasks); , &Winstk[i]->maxtasks);
fscanf(fp, "\tsummclr=%d, msgsclr=%d, headclr=%d, taskclr=%d \n" fscanf(fp, "\tsummclr=%d, msgsclr=%d, headclr=%d, taskclr=%d \n"
, &Winstk[i]->summclr , &Winstk[i]->summclr

18
top.h
View File

@ -123,7 +123,7 @@
/*###### Some Typedef's and Enum's #####################################*/ /*###### Some Typedef's and Enum's #####################################*/
/* This typedef just ensures consistent 'process flags' handling */ /* This typedef just ensures consistent 'process flags' handling */
typedef unsigned char PFLG_t; typedef unsigned PFLG_t;
/* These typedefs attempt to ensure consistent 'ticks' handling */ /* These typedefs attempt to ensure consistent 'ticks' handling */
typedef unsigned long long TICS_t; typedef unsigned long long TICS_t;
@ -248,14 +248,10 @@ enum pflag {
typedef struct win { typedef struct win {
struct win *next, /* next window in window stack */ struct win *next, /* next window in window stack */
*prev; /* prior window in window stack */ *prev; /* prior window in window stack */
char *captab [CAPTABMAX]; /* captab needed by show_special */
int winnum, /* window's num (array pos + 1) */ int winnum, /* window's num (array pos + 1) */
winlines; /* task window's rows (volatile) */ winlines; /* task window's rows (volatile) */
int winflags; /* 'view', 'show' and 'sort' mode flags */ int winflags; /* 'view', 'show' and 'sort' mode flags */
char grpname [GRPNAMSIZ], /* window number:name, printable */
winname [WINNAMSIZ], /* window name, user changeable */
fieldscur [PFLAGSSIZ], /* fields displayed and ordered */
columnhdr [SMLBUFSIZ], /* column headings for procflags */
colusrnam [USRNAMSIZ]; /* if selected by the 'u' command */
PFLG_t procflags [PFLAGSSIZ], /* fieldscur subset, as enum */ PFLG_t procflags [PFLAGSSIZ], /* fieldscur subset, as enum */
sortindx; /* sort field, as a procflag */ sortindx; /* sort field, as a procflag */
int maxpflgs, /* number of procflags (upcase fieldscur) */ int maxpflgs, /* number of procflags (upcase fieldscur) */
@ -265,15 +261,19 @@ typedef struct win {
msgsclr, /* " in msgs/pmts */ msgsclr, /* " in msgs/pmts */
headclr, /* " in cols head */ headclr, /* " in cols head */
taskclr; /* " in task display */ taskclr; /* " in task display */
int len_rownorm, /* lengths of the corresponding terminfo */
len_rowhigh; /* strings to save mkcol() a strlen call */
char capclr_sum [CLRBUFSIZ], /* terminfo strings built from */ char capclr_sum [CLRBUFSIZ], /* terminfo strings built from */
capclr_msg [CLRBUFSIZ], /* above clrs (& rebuilt too), */ capclr_msg [CLRBUFSIZ], /* above clrs (& rebuilt too), */
capclr_pmt [CLRBUFSIZ], /* but NO recurring costs !!! */ capclr_pmt [CLRBUFSIZ], /* but NO recurring costs !!! */
capclr_hdr [CLRBUFSIZ], /* note: sum, msg and pmt strs */ capclr_hdr [CLRBUFSIZ], /* note: sum, msg and pmt strs */
capclr_rowhigh [CLRBUFSIZ], /* are only used when this */ capclr_rowhigh [CLRBUFSIZ], /* are only used when this */
capclr_rownorm [CLRBUFSIZ]; /* window is the 'Curwin'! */ capclr_rownorm [CLRBUFSIZ]; /* window is the 'Curwin'! */
int len_rownorm, /* lengths of the corresponding terminfo */ char grpname [GRPNAMSIZ], /* window number:name, printable */
len_rowhigh; /* strings to save mkcol() a strlen call */ winname [WINNAMSIZ], /* window name, user changeable */
char *captab [CAPTABMAX]; /* captab needed by show_special */ fieldscur [PFLAGSSIZ], /* fields displayed and ordered */
columnhdr [SMLBUFSIZ], /* column headings for procflags */
colusrnam [USRNAMSIZ]; /* if selected by the 'u' command */
} WIN_t; } WIN_t;
/* ////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////// */