Lines Matching refs:orig
93 subwin(WINDOW *orig, int num_lines, int num_cols, int begy, int begx) in subwin() argument
107 fprintf(outf, "SUBWIN(%0.2o, %d, %d, %d, %d)\n", orig, nl, nc, by, bx); in subwin()
109 if (by < orig->_begy || bx < orig->_begx || in subwin()
110 by + nl > orig->_maxy + orig->_begy || in subwin()
111 bx + nc > orig->_maxx + orig->_begx) in subwin()
114 nl = orig->_maxy + orig->_begy - by; in subwin()
116 nc = orig->_maxx + orig->_begx - bx; in subwin()
119 win->_nextp = orig->_nextp; in subwin()
120 orig->_nextp = win; in subwin()
121 win->_orig = orig; in subwin()
122 _set_subwin_(orig, win); in subwin()
131 _set_subwin_(WINDOW *orig, WINDOW *win) in _set_subwin_() argument
135 j = win->_begy - orig->_begy; in _set_subwin_()
136 k = win->_begx - orig->_begx; in _set_subwin_()
141 win->_firstch = &orig->_firstch[j]; in _set_subwin_()
142 win->_lastch = &orig->_lastch[j]; in _set_subwin_()
144 win->_y[i] = &orig->_y[j][k]; in _set_subwin_()