Home
last modified time | relevance | path

Searched refs:nlines (Results 1 – 25 of 70) sorted by relevance

123

/netbsd/src/lib/libcurses/
Dripoffline.c42 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 …]
Dresize.c45 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 = 1; in wresize()
[all …]
Dinsdelln.c56 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 = win->scr_b + 1 - win->cury; in winsdelln()
[all …]
Dnewwin.c47 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() argument
107 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE); in newwin()
115 newpad(int nlines, int ncols) in newpad() argument
118 if (nlines < 1 || ncols < 1) in newpad()
[all …]
Dscroll.c62 scrl(int nlines) in scrl() argument
65 return wscrl(stdscr, nlines); in scrl()
97 wscrl(WINDOW *win, int nlines) in wscrl() argument
101 __CTRACE(__CTRACE_WINDOW, "wscrl: (%p) lines=%d\n", win, nlines); in wscrl()
108 if (!nlines) in wscrl()
114 winsdelln(win, 0 - nlines); in wscrl()
Dtstp.c256 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/
Dshuffle.c109 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/
Dsanity_test.c97 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/tests/lib/libc/stdlib/
Dh_sort.c91 size_t nlines; in main() local
174 nlines = 1; in main()
178 nlines++; in main()
185 error = reallocarr(&linepos, nlines, sizeof(linepos[0])); in main()
194 assert(i == nlines); in main()
199 error = reallocarr(&permutation, nlines, sizeof(permutation[0])); in main()
202 for (i = 0; i < nlines; i++) in main()
209 (*sortfn)(permutation, nlines, sizeof(permutation[0]), &cmp, in main()
216 for (i = 0; i < nlines; i++) { in main()
/netbsd/src/external/bsd/less/dist/
Dforwback.c218 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/gpl3/gdb/dist/sim/m32c/
Dtrace.c128 int nlines; member
170 f->nlines = 1; in load_file_and_line()
173 f->nlines++; in load_file_and_line()
174 f->lines = (char **) malloc (f->nlines * sizeof (char *)); in load_file_and_line()
176 f->nlines = 1; in load_file_and_line()
180 f->lines[f->nlines] = f->data + i + 1; in load_file_and_line()
181 while (*f->lines[f->nlines] == ' ' in load_file_and_line()
182 || *f->lines[f->nlines] == '\t') in load_file_and_line()
183 f->lines[f->nlines]++; in load_file_and_line()
184 f->nlines++; in load_file_and_line()
[all …]
Dopc2c.c53 int nlines; member
287 for (i = 0; i < op->nlines; i++) in dump_lines()
584 op->nlines = 0; in main()
628 op->nlines++; in main()
631 (char **) realloc (op->lines, op->nlines * sizeof (char *)); in main()
633 op->lines = (char **) malloc (op->nlines * sizeof (char *)); in main()
634 op->lines[op->nlines - 1] = strdup (line); in main()
652 if (opcodes[i]->nlines == 0) in main()
654 opcodes[i]->nlines = opcodes[i + 1]->nlines; in main()
/netbsd/src/external/gpl3/gdb/dist/sim/rx/
Dtrace.c141 int nlines; member
183 f->nlines = 1; in load_file_and_line()
186 f->nlines++; in load_file_and_line()
187 f->lines = (char **) malloc (f->nlines * sizeof (char *)); in load_file_and_line()
189 f->nlines = 1; in load_file_and_line()
193 f->lines[f->nlines] = f->data + i + 1; in load_file_and_line()
194 while (*f->lines[f->nlines] == ' ' in load_file_and_line()
195 || *f->lines[f->nlines] == '\t') in load_file_and_line()
196 f->lines[f->nlines]++; in load_file_and_line()
197 f->nlines++; in load_file_and_line()
[all …]
/netbsd/src/external/gpl3/gdb/dist/sim/rl78/
Dtrace.c137 int nlines; member
179 f->nlines = 1; in load_file_and_line()
182 f->nlines ++; in load_file_and_line()
183 f->lines = (char **) xmalloc (f->nlines * sizeof (char *)); in load_file_and_line()
185 f->nlines = 1; in load_file_and_line()
189 f->lines[f->nlines] = f->data + i + 1; in load_file_and_line()
190 while (*f->lines[f->nlines] == ' ' in load_file_and_line()
191 || *f->lines[f->nlines] == '\t') in load_file_and_line()
192 f->lines[f->nlines] ++; in load_file_and_line()
193 f->nlines ++; in load_file_and_line()
[all …]
/netbsd/src/external/bsd/nvi/dist/vi/
Dv_delete.c43 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()
Dv_scroll.c78 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/games/boggle/boggle/
Dhelp.c50 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/
Dpager.c51 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/
Dtag.c41 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/
Dtset.c57 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/gdb/dist/opcodes/
Dopc2c.c98 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/dist/opcodes/
Dopc2c.c98 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/gdb/dist/gdb/tui/
Dtui-source.c55 int nlines = height - box_size (); in set_contents() local
59 if (!g_source_cache.get_source_lines (s, line_no, line_no + nlines, in set_contents()
90 m_content.resize (nlines); in set_contents()
91 while (cur_line < nlines) in set_contents()
/netbsd/src/distrib/utils/more/
Dprim.c360 int c, nlines; local
385 for (nlines = 1; nlines < n; nlines++)
390 nlines - 1);
/netbsd/src/usr.bin/msgs/
Dmsgs.c137 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()

123