Lines Matching defs:num_lines
118 newwin(int num_lines, int num_columns, int begy, int begx)
124 T((T_CALLED("newwin(%d,%d,%d,%d)"), num_lines, num_columns, begy, begx));
126 if (begy < 0 || begx < 0 || num_lines < 0 || num_columns < 0)
129 if (num_lines == 0)
130 num_lines = SP->_lines_avail - begy;
134 if ((win = _nc_makenew(num_lines, num_columns, begy, begx, 0)) == 0)
137 for (i = 0; i < num_lines; i++) {
153 derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx)
159 T((T_CALLED("derwin(%p,%d,%d,%d,%d)"), orig, num_lines, num_columns,
165 if (begy < 0 || begx < 0 || orig == 0 || num_lines < 0 || num_columns < 0)
167 if (begy + num_lines > orig->_maxy + 1
171 if (num_lines == 0)
172 num_lines = orig->_maxy + 1 - begy;
180 if ((win = _nc_makenew(num_lines, num_columns, orig->_begy + begy,
189 for (i = 0; i < num_lines; i++)
214 _nc_makenew(int num_lines, int num_columns, int begy, int begx, int flags)
221 T((T_CALLED("_nc_makenew(%d,%d,%d,%d)"), num_lines, num_columns, begy, begx));
226 if (!dimension_limit(num_lines) || !dimension_limit(num_columns))
234 if ((win->_line = typeCalloc(struct ldat, ((unsigned) num_lines))) == 0) {
243 win->_maxy = num_lines - 1;
253 win->_clear = is_pad ? FALSE : (num_lines == screen_lines
268 win->_regbottom = num_lines - 1;
277 for (i = 0; i < num_lines; i++) {
306 if (begx == 0 && num_lines == screen_lines && begy == 0)
309 if (begy + num_lines == screen_lines)