[BACK]Return to wwdelchar.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / window

Diff for /src/usr.bin/window/Attic/wwdelchar.c between version 1.4 and 1.5

version 1.4, 1997/02/25 00:04:46 version 1.5, 2001/11/19 19:02:18
Line 49 
Line 49 
 #include "tt.h"  #include "tt.h"
   
 wwdelchar(w, row, col)  wwdelchar(w, row, col)
 register struct ww *w;  struct ww *w;
 {  {
         register i;          int i;
         int nvis;          int nvis;
   
         /*          /*
          * First, shift the line.           * First, shift the line.
          */           */
         {          {
                 register union ww_char *p, *q;                  union ww_char *p, *q;
   
                 p = &w->ww_buf[row][col];                  p = &w->ww_buf[row][col];
                 q = p + 1;                  q = p + 1;
Line 81 
Line 81 
          * Now find out how much is actually changed, and fix wwns.           * Now find out how much is actually changed, and fix wwns.
          */           */
         {          {
                 register union ww_char *buf;                  union ww_char *buf;
                 register char *win;                  char *win;
                 register union ww_char *ns;                  union ww_char *ns;
                 register unsigned char *smap;                  unsigned char *smap;
                 char touched;                  char touched;
   
                 nvis = 0;                  nvis = 0;
Line 118 
Line 118 
          * Can/Should we use delete character?           * Can/Should we use delete character?
          */           */
         if (tt.tt_delchar != 0 && nvis > (wwncol - col) / 2) {          if (tt.tt_delchar != 0 && nvis > (wwncol - col) / 2) {
                 register union ww_char *p, *q;                  union ww_char *p, *q;
   
                 xxdelchar(row, col);                  xxdelchar(row, col);
                 p = &wwos[row][col];                  p = &wwos[row][col];

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5