version 1.4, 1997/02/25 00:04:37 |
version 1.5, 2001/11/19 19:02:18 |
|
|
* Stick w1 behind w2. |
* Stick w1 behind w2. |
*/ |
*/ |
wwadd(w1, w2) |
wwadd(w1, w2) |
register struct ww *w1; |
struct ww *w1; |
struct ww *w2; |
struct ww *w2; |
{ |
{ |
register i; |
int i; |
register struct ww *w; |
struct ww *w; |
|
|
w1->ww_order = w2->ww_order + 1; |
w1->ww_order = w2->ww_order + 1; |
w1->ww_back = w2; |
w1->ww_back = w2; |
|
|
for (w = w1->ww_forw; w != &wwhead; w = w->ww_forw) |
for (w = w1->ww_forw; w != &wwhead; w = w->ww_forw) |
w->ww_order++; |
w->ww_order++; |
for (i = w1->ww_i.t; i < w1->ww_i.b; i++) { |
for (i = w1->ww_i.t; i < w1->ww_i.b; i++) { |
register j; |
int j; |
register unsigned char *smap = wwsmap[i]; |
unsigned char *smap = wwsmap[i]; |
register char *win = w1->ww_win[i]; |
char *win = w1->ww_win[i]; |
union ww_char *ns = wwns[i]; |
union ww_char *ns = wwns[i]; |
union ww_char *buf = w1->ww_buf[i]; |
union ww_char *buf = w1->ww_buf[i]; |
int nvis = 0; |
int nvis = 0; |