Lines Matching defs:nlines

47 static WINDOW *__makenew(SCREEN *screen, int nlines, int ncols, int by,
49 static WINDOW *__subwin(WINDOW *orig, int nlines, int ncols, int by, int bx,
58 derwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx)
74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
104 newwin(int nlines, int ncols, int by, int bx)
107 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE);
115 newpad(int nlines, int ncols)
118 if (nlines < 1 || ncols < 1)
120 return __newwin(_cursesi_screen, nlines, ncols, 0, 0, TRUE, FALSE);
124 __newwin(SCREEN *screen, int nlines, int ncols, int by, int bx, int ispad,
142 maxy = nlines > 0 ? nlines : LINES - by - ry + nlines;
159 win->reqy = nlines;
185 subwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
188 return __subwin(orig, nlines, ncols, by, bx, FALSE);
192 __subwin(WINDOW *orig, int nlines, int ncols, int by, int bx, int ispad)
200 orig, nlines, ncols, by, bx, ispad);
206 maxy = nlines > 0 ? nlines : orig->maxy + orig->begy - by + nlines;
217 win->reqy = nlines;
260 __makenew(SCREEN *screen, int nlines, int ncols, int by, int bx, int sub,
270 nlines, ncols, by, bx);
271 if (nlines <= 0 || ncols <= 0)
282 if ((win->alines = malloc(nlines * sizeof(__LINE *))) == NULL) {
286 if ((win->lspace = calloc(nlines, sizeof(__LINE))) == NULL) {
299 calloc(ncols * nlines, sizeof(__LDATA))) == NULL) {
329 for (lp = win->lspace, i = 0; i < nlines; i++, lp++) {
349 win->maxy = nlines;
351 win->reqy = nlines;