static char sccsid
[] = "@(#)wwlabel.c 3.13 %G%";
* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
* at 1 line above w and 'where' columns from it's left edge.
wwlabel(w
, f
, where
, l
, mode
)
register union ww_char
*buf
;
register union ww_char
*ns
;
if (row
< f
->ww_i
.t
|| row
>= f
->ww_i
.b
)
touched
= wwtouched
[row
];
jj
= MIN(w
->ww_i
.r
, f
->ww_i
.r
);
for (p
= unctrl(*l
++); j
< jj
&& *p
; j
++, p
++) {
/* can't label if not already framed */
if (smap
[j
] != f
->ww_index
)
ns
[j
].c_w
= (buf
[j
].c_w
= mode
| *p
)
wwtouched
[row
] = touched
;