rem: }
context: static proc_t **summary_show (void){   static proc_t **p_table = NULL;   static CPUS_t *smpcpu = NULL;   int p_flags = PROC_FILLMEM | PROC_FILLSTAT | PROC_FILLSTATUS;   WIN_t *w;   // let's try to minimize the cost of this frame (cross your fingers)   w = Curwin;   do {      if (!Mode_altscr || CHKw(w, VISIBLE_tsk)) {         if ( CHKw(w, Show_CMDLIN)         && win_fldviz(w, P_CMD) ) p_flags |= PROC_FILLCOM;         if (win_fldviz(w, P_USR)) p_flags |= PROC_FILLUSR;         if (win_fldviz(w, P_GRP)) p_flags |= PROC_FILLGRP;      }      if (Mode_altscr) w = w->next;   } while (w != Curwin);   // whoa first time, gotta' prime the pump...   if (!p_table) {      p_table = procs_refresh(NULL, p_flags);      putp(Cap_clr_scr);      sleep(1);   } else      putp(Batch ? "\n\n" : Cap_home);   p_table = procs_refresh(p_table, p_flags);   /*    ** Display Uptime and Loadavg */   if (CHKw(Curwin, View_LOADAV)) {      if (!Mode_altscr)         show_special(fmtmk(LOADAV_line, Myname, sprint_uptime()));      else         show_special(fmtmk(CHKw(Curwin, VISIBLE_tsk)            ? LOADAV_line_alt            : LOADAV_line            , Curwin->grpname, sprint_uptime()));      Msg_row += 1;   }   /*    ** Display Task and Cpu(s) States */   if (CHKw(Curwin, View_STATES)) {      show_special(fmtmk(STATES_line1         , Frame_maxtask, Frame_running, Frame_sleepin         , Frame_stopped, Frame_zombied));      Msg_row += 1;   }   smpcpu = cpus_refresh(smpcpu);   if (CHKw(Curwin, View_CPUSUM)) {      // display just the 1st /proc/stat line      summaryhlp(&smpcpu[Cpu_tot], "Cpu(s):");   } else {      int i;      char tmp[SMLBUFSIZ];      // display each cpu's states separately      for (i = 0; i < Cpu_tot; i++) {         snprintf(tmp, sizeof(tmp), " Cpu%-2d:", Mode_irixps ? i : Cpu_map[i]);         summaryhlp(&smpcpu[i], tmp);      }   }   /*    ** Display Memory and Swap stats */   meminfo();   if (CHKw(Curwin, View_MEMORY)) {      show_special(fmtmk(MEMORY_line1         , kb_main_total, kb_main_used, kb_main_free, kb_main_buffers));      show_special(fmtmk(MEMORY_line2         , kb_swap_total, kb_swap_used, kb_swap_free, kb_main_cached));      Msg_row += 2;   }   SETw(Curwin, NEWFRAM_cwo);   return p_table;}