Lines Matching defs:wp
45 chtype *wcp, *ep, *wp, wc;
50 wp = wcp + x;
53 if (ISCBIT(*wp)) {
54 for (; wp >= wcp; --wp)
55 if (!ISCBIT(*wp))
57 if (wp < wcp)
60 wc = RBYTE(*wp);
61 ep = wp + _curs_scrwidth[TYPE(wc)];
67 if ((x = (int)(wp - wcp)) < win->_firstch[y])
76 for (; wp < ep; ++wp)
77 *wp = win->_bkgd;
93 chtype *wp, *wcp, *ecp, wc;
101 wp = wcp + x;
102 if (!ISMBIT(*wp))
108 /* make wp points to the start column of a mb-character */
109 if (ISCBIT(*wp)) {
110 for (; wp >= wcp; --wp)
111 if (!ISCBIT(*wp))
113 if (wp < wcp) {
114 for (wp = wcp + x + 1; wp < ecp; ++wp)
115 if (!ISCBIT(*wp))
117 if (wp >= ecp)
123 /* make sure that wp points to a whole character */
124 wc = RBYTE(*wp);
125 if (wp + _curs_scrwidth[TYPE(wc)] > ecp) {
126 for (wp -= 1; wp >= wcp; --wp)
127 if (!ISCBIT(*wp))
129 if (wp < wcp)
136 win->_curx = (short)(wp-wcp);