Lines Matching defs:vvp
639 * kept in a video structure. The "vvp" is
646 ucopy(struct video *vvp, struct video *pvp)
648 vvp->v_flag &= ~VFCHG; /* Changes done. */
649 pvp->v_flag = vvp->v_flag; /* Update model. */
650 pvp->v_hash = vvp->v_hash;
651 pvp->v_cost = vvp->v_cost;
652 pvp->v_color = vvp->v_color;
653 bcopy(vvp->v_text, pvp->v_text, ncol);
691 * but erase to end of line). The "vvp" points at the video
698 uline(int row, struct video *vvp, struct video *pvp)
707 if (vvp->v_color != pvp->v_color) { /* Wrong color, do a */
713 ttcolor(vvp->v_color);
715 cp1 = &vvp->v_text[magic_cookie_glitch > 0 ? magic_cookie_glitch : 0];
721 cp2 = &vvp->v_text[ncol - (magic_cookie_glitch >= 0 ?
724 cp1 = &vvp->v_text[0];
725 cp2 = &vvp->v_text[ncol];
734 cp1 = &vvp->v_text[0]; /* Compute left match. */
736 while (cp1 != &vvp->v_text[ncol] && cp1[0] == cp2[0]) {
740 if (cp1 == &vvp->v_text[ncol]) /* All equal. */
743 cp3 = &vvp->v_text[ncol]; /* Compute right match. */
752 if (nbflag == FALSE && vvp->v_color == CTEXT) {
760 ttmove(row, (int) (cp1 - &vvp->v_text[0]));
762 if (vvp->v_color != CTEXT && magic_cookie_glitch > 0) {
763 if (cp1 < &vvp->v_text[magic_cookie_glitch])
764 cp1 = &vvp->v_text[magic_cookie_glitch];
765 if (cp5 > &vvp->v_text[ncol - magic_cookie_glitch])
766 cp5 = &vvp->v_text[ncol - magic_cookie_glitch];
769 ttcolor(vvp->v_color);