Lines Matching defs:orig
95 subwin(WINDOW *orig, int num_lines, int num_cols, int begy, int begx)
109 fprintf(outf, "SUBWIN(%0.2o, %d, %d, %d, %d)\n", orig, nl, nc, by, bx);
111 if (by < orig->_begy || bx < orig->_begx ||
112 by + nl > orig->_maxy + orig->_begy ||
113 bx + nc > orig->_maxx + orig->_begx)
116 nl = orig->_maxy + orig->_begy - by;
118 nc = orig->_maxx + orig->_begx - bx;
121 win->_nextp = orig->_nextp;
122 orig->_nextp = win;
123 win->_orig = orig;
124 _set_subwin_(orig, win);
133 _set_subwin_(WINDOW *orig, WINDOW *win)
137 j = win->_begy - orig->_begy;
138 k = win->_begx - orig->_begx;
143 win->_firstch = &orig->_firstch[j];
144 win->_lastch = &orig->_lastch[j];
146 win->_y[i] = &orig->_y[j][k];