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
bcmp -> memcmp, probably more portable.
[unix-history]
/
usr
/
src
/
lib
/
libcurses
/
refresh.c
diff --git
a/usr/src/lib/libcurses/refresh.c
b/usr/src/lib/libcurses/refresh.c
index
914a77c
..
67bdbff
100644
(file)
--- a/
usr/src/lib/libcurses/refresh.c
+++ b/
usr/src/lib/libcurses/refresh.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)refresh.c 5.2
8
(Berkeley) %G%";
+static char sccsid[] = "@(#)refresh.c 5.2
9
(Berkeley) %G%";
#endif /* not lint */
#include <curses.h>
#endif /* not lint */
#include <curses.h>
@@
-206,9
+206,9
@@
makech(win, wy)
}
}
while (wx <= lch) {
}
}
while (wx <= lch) {
- if (!force &&
b
cmp(nsp, csp, sizeof(__LDATA)) == 0) {
+ if (!force &&
mem
cmp(nsp, csp, sizeof(__LDATA)) == 0) {
if (wx <= lch) {
if (wx <= lch) {
- while (
b
cmp(nsp, csp, sizeof(__LDATA)) == 0 &&
+ while (
mem
cmp(nsp, csp, sizeof(__LDATA)) == 0 &&
wx <= lch) {
nsp++;
if (!curwin)
wx <= lch) {
nsp++;
if (!curwin)
@@
-227,7
+227,7
@@
makech(win, wy)
#endif
ly = y;
lx = wx + win->begx;
#endif
ly = y;
lx = wx + win->begx;
- while ((force ||
b
cmp(nsp, csp, sizeof(__LDATA)) != 0)
+ while ((force ||
mem
cmp(nsp, csp, sizeof(__LDATA)) != 0)
&& wx <= lch) {
#ifdef notdef
/* XXX
&& wx <= lch) {
#ifdef notdef
/* XXX
@@
-420,7
+420,7
@@
quickch(win)
__FORCEPAINT ||
(win->lines[curw]->hash !=
curscr->lines[curs]->hash ||
__FORCEPAINT ||
(win->lines[curw]->hash !=
curscr->lines[curs]->hash ||
-
b
cmp(win->lines[curw]->line,
+
mem
cmp(win->lines[curw]->line,
curscr->lines[curs]->line,
win->maxx * __LDATASIZE) != 0))
break;
curscr->lines[curs]->line,
win->maxx * __LDATASIZE) != 0))
break;
@@
-439,7
+439,7
@@
quickch(win)
for (top = 0; top < win->maxy; top++)
if (win->lines[top]->flags & __FORCEPAINT ||
win->lines[top]->hash != curscr->lines[top]->hash
for (top = 0; top < win->maxy; top++)
if (win->lines[top]->flags & __FORCEPAINT ||
win->lines[top]->hash != curscr->lines[top]->hash
- ||
b
cmp(win->lines[top]->line,
+ ||
mem
cmp(win->lines[top]->line,
curscr->lines[top]->line,
win->maxx * __LDATASIZE) != 0)
break;
curscr->lines[top]->line,
win->maxx * __LDATASIZE) != 0)
break;
@@
-453,7
+453,7
@@
quickch(win)
for (bot = win->maxy - 1; bot >= 0; bot--)
if (win->lines[bot]->flags & __FORCEPAINT ||
win->lines[bot]->hash != curscr->lines[bot]->hash
for (bot = win->maxy - 1; bot >= 0; bot--)
if (win->lines[bot]->flags & __FORCEPAINT ||
win->lines[bot]->hash != curscr->lines[bot]->hash
- ||
b
cmp(win->lines[bot]->line,
+ ||
mem
cmp(win->lines[bot]->line,
curscr->lines[bot]->line,
win->maxx * __LDATASIZE) != 0)
break;
curscr->lines[bot]->line,
win->maxx * __LDATASIZE) != 0)
break;
@@
-566,7
+566,7
@@
quickch(win)
win->lines[target]->flags &= ~__ISDIRTY;
} else if ((n > 0 && target >= top && target < top + n) ||
(n < 0 && target <= bot && target > bot + n)) {
win->lines[target]->flags &= ~__ISDIRTY;
} else if ((n > 0 && target >= top && target < top + n) ||
(n < 0 && target <= bot && target > bot + n)) {
- if (clp->hash != blank_hash ||
b
cmp(clp->line,
+ if (clp->hash != blank_hash ||
mem
cmp(clp->line,
buf, win->maxx * __LDATASIZE) !=0) {
(void)bcopy(buf, clp->line,
win->maxx * __LDATASIZE);
buf, win->maxx * __LDATASIZE) !=0) {
(void)bcopy(buf, clp->line,
win->maxx * __LDATASIZE);