=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/wwupdate.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/window/Attic/wwupdate.c 1997/02/25 00:05:13 1.3 +++ src/usr.bin/window/Attic/wwupdate.c 2001/11/19 19:02:18 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: wwupdate.c,v 1.3 1997/02/25 00:05:13 downsj Exp $ */ +/* $OpenBSD: wwupdate.c,v 1.4 2001/11/19 19:02:18 mpech Exp $ */ /* $NetBSD: wwupdate.c,v 1.3 1995/09/28 10:36:00 tls Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)wwupdate.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: wwupdate.c,v 1.3 1997/02/25 00:05:13 downsj Exp $"; +static char rcsid[] = "$OpenBSD: wwupdate.c,v 1.4 2001/11/19 19:02:18 mpech Exp $"; #endif #endif /* not lint */ @@ -51,7 +51,7 @@ wwupdate1(top, bot) { int i; - register j; + int j; char *touched; struct ww_update *upd; char check_clreos = 0; @@ -59,8 +59,8 @@ wwnupdate++; { - register char *t1 = wwtouched + top, *t2 = wwtouched + bot; - register n; + char *t1 = wwtouched + top, *t2 = wwtouched + bot; + int n; while (!*t1++) if (t1 == t2) @@ -95,10 +95,10 @@ for (i = scan_top, touched = &wwtouched[i], upd = &wwupd[i]; i < scan_bot; i++, touched++, upd++) { - register gain = 0; - register best_gain = 0; - register best_col; - register union ww_char *ns, *os; + int gain = 0; + int best_gain = 0; + int best_col; + union ww_char *ns, *os; if (wwinterrupt()) return; @@ -134,11 +134,11 @@ upd->gain = gain; } if (check_clreos) { - register struct ww_update *u; - register gain = 0; - register best_gain = 0; + struct ww_update *u; + int gain = 0; + int best_gain = 0; int best_row; - register simple_gain = 0; + int simple_gain = 0; char didit = 0; /* @@ -150,7 +150,7 @@ * undefined when u->best_gain is 0 so we can't use it. */ for (j = scan_bot - 1, u = wwupd + j; j >= top; j--, u--) { - register g = gain + u->best_gain; + int g = gain + u->best_gain; if (g > best_gain) { best_gain = g; @@ -180,7 +180,7 @@ wwnupdclreosline += wwnrow - i; u = wwupd + i; while (i < scan_bot) { - register union ww_char *os = &wwos[i][j]; + union ww_char *os = &wwos[i][j]; for (j = wwncol - j; --j >= 0;) os++->c_w = ' '; @@ -194,7 +194,7 @@ simple: for (i = top, touched = &wwtouched[i], upd = &wwupd[i]; i < bot; i++, touched++, upd++) { - register union ww_char *os, *ns; + union ww_char *os, *ns; char didit; if (!*touched) @@ -212,10 +212,10 @@ ns = wwns[i]; os = wwos[i]; for (j = 0; j < wwncol;) { - register char *p, *q; + char *p, *q; char m; int c; - register n; + int n; char buf[512]; /* > wwncol */ union ww_char lastc;