| /netbsd-src/lib/libcurses/ |
| H A D | ripoffline.c | 42 int nlines; member 62 ripoffs[nrips].nlines = line < 0 ? -1 : 1; in ripoffline() 79 if (line < 1 && rip->nlines < 0) in __rippedlines() 80 n += -rip->nlines; in __rippedlines() 81 else if (line > 0 && rip->nlines > 0) in __rippedlines() 82 n += rip->nlines; in __rippedlines() 96 int i, nlines, rbot, rtop; in __ripoffscreen() local 105 if (srip->nlines == 0) in __ripoffscreen() 107 nlines = srip->nlines < 0 ? -srip->nlines : srip->nlines; in __ripoffscreen() 108 w = __newwin(screen, nlines, 0, in __ripoffscreen() [all …]
|
| H A D | resize.c | 45 static int __resizeterm(WINDOW *win, int nlines, int ncols); 46 static int __resizewin(WINDOW *win, int nlines, int ncols); 55 int nlines = req_nlines; in wresize() local 62 win, nlines, ncols); in wresize() 67 if (win->begy + nlines > win->orig->begy + win->orig->maxy) in wresize() 68 nlines = 0; in wresize() 69 if (nlines <= 0) in wresize() 70 nlines += win->orig->begy + win->orig->maxy - win->begy; in wresize() 71 if (nlines < 1) in wresize() 72 nlines in wresize() 135 is_term_resized(int nlines,int ncols) is_term_resized() argument 149 resizeterm(int nlines,int ncols) resizeterm() argument 181 resize_term(int nlines,int ncols) resize_term() argument 225 __resizeterm(WINDOW * win,int nlines,int ncols) __resizeterm() argument 249 __resizewin(WINDOW * win,int nlines,int ncols) __resizewin() argument [all...] |
| H A D | insdelln.c | 56 insdelln(int nlines) in insdelln() argument 59 return winsdelln(stdscr, nlines); in insdelln() 69 winsdelln(WINDOW *win, int nlines) in winsdelln() argument 79 "winsdelln: (%p) cury=%d lines=%d\n", win, win->cury, nlines); in winsdelln() 84 if (!nlines) in winsdelln() 92 if (nlines > 0) { in winsdelln() 96 if (nlines > win->maxy - win->cury) in winsdelln() 97 nlines = win->maxy - win->cury; in winsdelln() 101 if (nlines > win->scr_b + 1 - win->cury) in winsdelln() 102 nlines in winsdelln() [all...] |
| H A D | newwin.c | 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) in derwin() argument 61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx, in derwin() 71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx) in subpad() argument 74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx, in subpad() 104 newwin(int nlines, int ncols, int by, int bx) in newwin() 107 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE); 115 newpad(int nlines, int ncols) in newpad() 118 if (nlines < in newpad() 101 newwin(int nlines,int ncols,int by,int bx) newwin() argument 112 newpad(int nlines,int ncols) newpad() argument 121 __newwin(SCREEN * screen,int nlines,int ncols,int by,int bx,int ispad,int isstdscr) __newwin() argument 182 subwin(WINDOW * orig,int nlines,int ncols,int by,int bx) subwin() argument 189 __subwin(WINDOW * orig,int nlines,int ncols,int by,int bx,int ispad) __subwin() argument 256 __makenew(SCREEN * screen,int nlines,int ncols,int by,int bx,int sub,int ispad) __makenew() argument [all...] |
| H A D | scroll.c | 62 scrl(int nlines) in scrl() argument 65 return wscrl(stdscr, nlines); in scrl() 97 wscrl(WINDOW *win, int nlines) in wscrl() 101 __CTRACE(__CTRACE_WINDOW, "wscrl: (%p) lines=%d\n", win, nlines); in wscrl() 108 if (!nlines) in wscrl() 114 winsdelln(win, 0 - nlines); 86 wscrl(WINDOW * win,int nlines) wscrl() argument
|
| H A D | tstp.c | 256 int nlines, ncols; in __restartwin() local 289 nlines = LINES; in __restartwin() 291 if (curscr->maxy != nlines || curscr->maxx != ncols) in __restartwin() 292 wresize(curscr, nlines, ncols); in __restartwin() 293 if (stdscr->maxy != nlines || stdscr->maxx != ncols) in __restartwin() 294 wresize(stdscr, nlines, ncols); in __restartwin()
|
| /netbsd-src/usr.bin/shuffle/ |
| H A D | shuffle.c | 109 size_t size, nlines = 0, maxlines = 128; in get_lines() local 121 lines[nlines] = emalloc(size + 1); in get_lines() 122 (void)memcpy(lines[nlines], line, size); in get_lines() 123 lines[nlines++][size] = '\0'; in get_lines() 124 if (nlines >= maxlines) { in get_lines() 129 lines[nlines] = NULL; in get_lines() 132 *nlinesp = nlines; in get_lines() 165 size_t nlines = 0, pick = 0, i; in main() local 177 nlines = get_number(optarg, ch); in main() 196 get_lines(fname, &lines, &nlines); in main() [all …]
|
| /netbsd-src/external/bsd/atf/dist/atf-c/detail/ |
| H A D | sanity_test.c | 97 int nlines; in do_test() local 111 nlines = 0; in do_test() 112 while (nlines < 3 && (lines[nlines] = in do_test() 114 nlines++; in do_test() 115 ATF_REQUIRE(nlines == 0 || nlines == 3); in do_test() 150 while (nlines > 0) { in do_test() 151 nlines--; in do_test() 152 free(lines[nlines]); in do_test()
|
| /netbsd-src/external/bsd/less/dist/ |
| H A D | forwback.c | 218 int nlines = 0; in forw() local 325 nlines++; in forw() 385 if (nlines == 0 && !ignore_eoi) in forw() 403 int nlines = 0; in back() local 436 nlines++; in back() 444 if (nlines == 0) in back() 543 int nlines; in get_one_screen() local 546 for (nlines = 0; nlines < sc_height; nlines++) in get_one_screen() 551 return (nlines < sc_height); in get_one_screen()
|
| /netbsd-src/external/bsd/nvi/dist/vi/ |
| H A D | v_delete.c | 43 db_recno_t nlines; in v_delete() local 64 if (db_last(sp, &nlines)) in v_delete() 66 if (nlines == 0) { in v_delete() 79 if (db_get(sp, nlines, DBG_FATAL, NULL, &len)) in v_delete() 81 vp->m_final.lno = nlines; in v_delete()
|
| H A D | v_scroll.c | 78 db_recno_t nlines; in v_lgoto() local 87 if (db_last(sp, &nlines)) in v_lgoto() 89 if (nlines == 0) in v_lgoto() 97 if (db_last(sp, &nlines)) in v_lgoto() 99 vp->m_stop.lno = nlines ? nlines : 1; in v_lgoto()
|
| /netbsd-src/usr.bin/sortinfo/ |
| H A D | sortinfo.c | 53 size_t nlines; member 68 slist[nsections].nlines = 0; in addsection() 78 if (s->nlines == s->maxlines) { in addline() 82 s->lines[s->nlines++] = line; in addline() 107 for (i = 0; i < s->nlines; i++) in printsection() 160 qsort(s->lines, s->nlines, sizeof(*s->lines), strptrcmp); in main()
|
| /netbsd-src/external/gpl2/rcs/dist/src/ |
| H A D | rcssyn.c | 569 long line1, nlines, t; local 616 nlines = 0; 619 LONG_MAX/10 < nlines || 620 (t = nlines * 10, (nlines = t + (c - '0')) < t) 627 if (c || !nlines) { 630 if (line1+nlines < line1) 644 dc->dafter = line1 + nlines; 653 dc->nlines = nlines;
|
| /netbsd-src/external/gpl2/gmake/dist/ |
| H A D | commands.c | 272 unsigned int nlines, idx; in chop_commands() local 285 nlines = 5; in chop_commands() 309 if (idx == nlines) in chop_commands() 311 nlines += 2; in chop_commands() 313 nlines * sizeof (char *)); in chop_commands() 321 if (idx != nlines) in chop_commands() 323 nlines = idx; in chop_commands() 325 nlines * sizeof (char *)); in chop_commands() 328 cmds->ncommand_lines = nlines; in chop_commands() 332 cmds->lines_flags = (char *) xmalloc (nlines); in chop_commands() [all …]
|
| /netbsd-src/games/boggle/boggle/ |
| H A D | help.c | 50 extern int nlines; 72 for (i = 0; i < nlines - 3; i++) { in help() 85 wmove(win, nlines - 1, 0); in help() 96 wmove(win, nlines - 1, 0); in help()
|
| /netbsd-src/sys/arch/ia64/stand/common/ |
| H A D | pager.c | 51 int nlines; in pager_open() local 54 nlines = 24; /* sensible default */ in pager_open() 56 nlines = strtol(cp, &lp, 0); in pager_open() 59 p_maxlines = nlines - 1; in pager_open()
|
| /netbsd-src/external/bsd/mdocml/dist/ |
| H A D | tag.c | 41 size_t nlines; member 173 entry->maxlines = entry->nlines = 0; in tag_put() 199 entry->nlines = 0; in tag_put() 204 if (entry->maxlines == entry->nlines) { in tag_put() 209 entry->lines[entry->nlines++] = line; in tag_put() 236 for (i = 0; i < entry->nlines; i++) in tag_write()
|
| /netbsd-src/usr.bin/tset/ |
| H A D | tset.c | 57 int nlines, ncolumns; /* window size */ variable 157 nlines = lines; in main() 163 nlines = win.ws_row; in main() 166 nlines > 0 && columns > 0) { in main() 167 win.ws_row = nlines; in main()
|
| /netbsd-src/external/gpl3/binutils/dist/opcodes/ |
| H A D | opc2c.c | 98 int nlines; member 341 for (i = 0; i < op->nlines; i++) in dump_lines() 645 op->nlines = 0; in main() 704 op->nlines++; in main() 707 (char **) realloc (op->lines, op->nlines * sizeof (char *)); in main() 709 op->lines = (char **) malloc (op->nlines * sizeof (char *)); in main() 710 op->lines[op->nlines - 1] = strdup (line); in main() 727 if (opcodes[i]->nlines == 0) in main() 729 opcodes[i]->nlines = opcodes[i + 1]->nlines; in main()
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | opc2c.c | 98 int nlines; member 341 for (i = 0; i < op->nlines; i++) in dump_lines() 645 op->nlines = 0; in main() 704 op->nlines++; in main() 707 (char **) realloc (op->lines, op->nlines * sizeof (char *)); in main() 709 op->lines = (char **) malloc (op->nlines * sizeof (char *)); in main() 710 op->lines[op->nlines - 1] = strdup (line); in main() 727 if (opcodes[i]->nlines == 0) in main() 729 opcodes[i]->nlines = opcodes[i + 1]->nlines; in main()
|
| /netbsd-src/external/gpl2/grep/dist/src/ |
| H A D | grep.c | 720 int nlines, n; in grepbuf() local 725 nlines = 0; in grepbuf() 737 nlines++; in grepbuf() 744 return nlines; in grepbuf() 750 nlines += n; in grepbuf() 753 return nlines; in grepbuf() 760 nlines += n; in grepbuf() 763 return nlines; in grepbuf() 772 int nlines, i; in grep() local 800 nlines = 0; in grep() [all …]
|
| /netbsd-src/external/gpl2/texinfo/dist/util/ |
| H A D | texindex.c | 96 long nlines; variable 118 void writelines (char **linearray, int nlines, FILE *ostream); 778 nlines = total / 50; in sort_in_core() 779 if (!nlines) in sort_in_core() 780 nlines = 2; in sort_in_core() 781 linearray = (char **) xmalloc (nlines * sizeof (char *)); in sort_in_core() 893 if (line == linearray + nlines) in parsefile() 896 linearray = xrealloc (linearray, sizeof (char *) * (nlines *= 4)); in parsefile() 1124 writelines (char **linearray, int nlines, FILE *ostream) in writelines() argument 1126 char **stop_line = linearray + nlines; in writelines()
|
| /netbsd-src/distrib/utils/more/ |
| H A D | prim.c | 360 int c, nlines; local 385 for (nlines = 1; nlines < n; nlines++) 390 nlines - 1);
|
| /netbsd-src/usr.bin/msgs/ |
| H A D | msgs.c | 137 int nlines; variable 507 nlines = 2; in main() 510 nlines++; in main() 514 nlines++; in main() 519 nlines++; in main() 521 while (nlines < 6 in main() 525 nlines++; in main() 586 prmesg(nlines + lct + (seensubj? 1 : 0)); in main()
|
| /netbsd-src/external/gpl2/groff/dist/src/devices/grotty/ |
| H A D | tty.cpp | 201 int nlines; member in tty_printer 293 nlines = 66; in tty_printer() 294 lines = new glyph *[nlines]; in tty_printer() 295 for (int i = 0; i < nlines; i++) in tty_printer() 398 if (vpos > nlines) { in add_char() 401 memcpy(lines, old_lines, nlines * sizeof(glyph *)); in add_char() 402 for (int i = nlines; i <= vpos; i++) in add_char() 405 nlines = vpos + 1; in add_char() 628 for (last_line = nlines; last_line > 0; last_line--) in end_page()
|