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

Diff for /src/usr.bin/window/Attic/wwgets.c between version 1.1 and 1.2

version 1.1, 1995/10/18 08:46:58 version 1.2, 1996/02/23 14:10:51
Line 1 
Line 1 
 /*      $NetBSD: wwgets.c,v 1.5 1995/09/29 00:44:10 cgd Exp $   */  /*      $NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $       */
   
 /*  /*
  * Copyright (c) 1983, 1993   * Copyright (c) 1983, 1993
Line 40 
Line 40 
 #if 0  #if 0
 static char sccsid[] = "@(#)wwgets.c    8.1 (Berkeley) 6/6/93";  static char sccsid[] = "@(#)wwgets.c    8.1 (Berkeley) 6/6/93";
 #else  #else
 static char rcsid[] = "$NetBSD: wwgets.c,v 1.5 1995/09/29 00:44:10 cgd Exp $";  static char rcsid[] = "$NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 54 
Line 54 
 register struct ww *w;  register struct ww *w;
 {  {
         register char *p = buf;          register char *p = buf;
         register char c;          register int c;
         char uc = w->ww_unctrl;          int uc = ISSET(w->ww_wflags, WWW_UNCTRL);
         static void rub();          static void rub();
   
         w->ww_unctrl = 0;          CLR(w->ww_wflags, WWW_UNCTRL);
         for (;;) {          for (;;) {
                 wwcurtowin(w);                  wwcurtowin(w);
                 while ((c = wwgetc()) < 0)                  while ((c = wwgetc()) < 0)
Line 102 
Line 102 
                 }                  }
         }          }
         *p = 0;          *p = 0;
         w->ww_unctrl = uc;          SET(w->ww_wflags, uc);
 }  }
   
 static void  static void

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2