1: #ifndef lint
   2: static char sccsid[] = "@(#)wwdump.c	3.11 4/24/85";
   3: #endif
   4: 
   5: /*
   6:  * Copyright (c) 1983 Regents of the University of California,
   7:  * All rights reserved.  Redistribution permitted subject to
   8:  * the terms of the Berkeley Software License Agreement.
   9:  */
  10: 
  11: #include "ww.h"
  12: #include "tt.h"
  13: 
  14: static char cmap[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  15: 
  16: wwdumpwin(w)
  17: register struct ww *w;
  18: {
  19:     register i, j;
  20: 
  21:     tt.tt_nmodes = 0;
  22:     (*tt.tt_clear)();
  23:     for (i = w->ww_i.t; i < w->ww_i.b; i++) {
  24:         (*tt.tt_move)(i, w->ww_i.l);
  25:         for (j = w->ww_i.l; j < w->ww_i.r; j++)
  26:             (*tt.tt_putc)(w->ww_win[i][j] & WWM_GLS ? 'G' : ' ');
  27:     }
  28: }
  29: 
  30: wwdumpnvis(w)
  31: register struct ww *w;
  32: {
  33:     register i;
  34:     char buf[20];
  35: 
  36:     tt.tt_nmodes = 0;
  37:     (*tt.tt_clear)();
  38:     for (i = w->ww_i.t; i < w->ww_i.b; i++) {
  39:         (*tt.tt_move)(i, w->ww_i.l);
  40:         (void) sprintf(buf, "%d", w->ww_nvis[i]);
  41:         (*tt.tt_write)(buf, strlen(buf));
  42:     }
  43: }
  44: 
  45: wwdumpsmap()
  46: {
  47:     register i, j;
  48: 
  49:     tt.tt_nmodes = 0;
  50:     (*tt.tt_clear)();
  51:     for (i = 0; i < wwnrow; i++) {
  52:         (*tt.tt_move)(i, 0);
  53:         for (j = 0; j < wwncol; j++)
  54:             (*tt.tt_putc)(cmap[wwsmap[i][j]]);
  55:     }
  56: }
  57: 
  58: wwdumpns()
  59: {
  60:     register i, j;
  61: 
  62:     (*tt.tt_clear)();
  63:     for (i = 0; i < wwnrow; i++) {
  64:         (*tt.tt_move)(i, 0);
  65:         for (j = 0; j < wwncol; j++) {
  66:             tt.tt_nmodes = wwns[i][j].c_m & tt.tt_availmodes;
  67:             (*tt.tt_putc)(wwns[i][j].c_c);
  68:         }
  69:     }
  70: }
  71: 
  72: wwdumpos()
  73: {
  74:     register i, j;
  75: 
  76:     (*tt.tt_clear)();
  77:     for (i = 0; i < wwnrow; i++) {
  78:         (*tt.tt_move)(i, 0);
  79:         for (j = 0; j < wwncol; j++) {
  80:             tt.tt_nmodes = wwos[i][j].c_m & tt.tt_availmodes;
  81:             (*tt.tt_putc)(wwns[i][j].c_c);
  82:         }
  83:     }
  84: }

Defined functions

wwdumpns defined in line 58; used 1 times
wwdumpnvis defined in line 30; used 1 times
wwdumpos defined in line 72; used 1 times
wwdumpsmap defined in line 45; used 1 times
wwdumpwin defined in line 16; used 1 times

Defined variables

cmap defined in line 14; used 1 times
  • in line 54
sccsid defined in line 2; never used
Last modified: 1987-02-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2198
Valid CSS Valid XHTML 1.0 Strict