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