projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed to new line data structures (__LDATA and __LINE) and
[unix-history]
/
usr
/
src
/
lib
/
libcurses
/
insertln.c
diff --git
a/usr/src/lib/libcurses/insertln.c
b/usr/src/lib/libcurses/insertln.c
index
c065fea
..
684d4e7
100644
(file)
--- a/
usr/src/lib/libcurses/insertln.c
+++ b/
usr/src/lib/libcurses/insertln.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)insertln.c 5.1
0
(Berkeley) %G%";
+static char sccsid[] = "@(#)insertln.c 5.1
1
(Berkeley) %G%";
#endif /* not lint */
#include <curses.h>
#endif /* not lint */
#include <curses.h>
@@
-23,7
+23,7
@@
winsertln(win)
register int y, i;
register char *end;
register int y, i;
register char *end;
- register LINE *temp;
+ register
__
LINE *temp;
#ifdef DEBUG
__TRACE("insertln: (%0.2o)\n", win);
#ifdef DEBUG
__TRACE("insertln: (%0.2o)\n", win);
@@
-37,16
+37,17
@@
winsertln(win)
win->lines[y] = win->lines[y - 1];
else
bcopy(win->lines[y - 1]->line,
win->lines[y] = win->lines[y - 1];
else
bcopy(win->lines[y - 1]->line,
- win->lines[y]->line, win->maxx);
+ win->lines[y]->line, win->maxx
* __LDATASIZE
);
touchline(win, y, 0, win->maxx - 1);
}
if (win->orig == NULL)
win->lines[y] = temp;
else
temp = win->lines[y];
touchline(win, y, 0, win->maxx - 1);
}
if (win->orig == NULL)
win->lines[y] = temp;
else
temp = win->lines[y];
- (void)memset(temp->line, ' ', &temp->line[win->maxx] - temp->line);
- for(i = 0; i < win->maxx; i++)
- temp->standout[i] &= ~__STANDOUT;
+ for(i = 0; i < win->maxx; i++) {
+ temp->line[i].ch = ' ';
+ temp->line[i].attr = 0;
+ }
touchline(win, y, 0, win->maxx - 1);
if (win->orig == NULL)
__id_subwins(win);
touchline(win, y, 0, win->maxx - 1);
if (win->orig == NULL)
__id_subwins(win);