| /src/contrib/libdiff/test/ |
| H A D | expect019.diff | 9 +add_line_offset(off_t **line_offsets, size_t *nlines, off_t off) 13 + p = reallocarray(*line_offsets, *nlines + 1, sizeof(off_t)); 17 + (*line_offsets)[*nlines] = off; 18 + (*nlines)++; 23 +diff_blobs(off_t **line_offsets, size_t *nlines, 36 + if (line_offsets && *line_offsets && *nlines > 0) 37 + outoff = (*line_offsets)[*nlines - 1]; 56 + err = add_line_offset(line_offsets, nlines, outoff); 69 + err = add_line_offset(line_offsets, nlines, outoff); 82 + err = got_diffreg_output(line_offsets, nlines, result, f1, f2, [all …]
|
| H A D | test019.right.txt | 43 add_line_offset(off_t **line_offsets, size_t *nlines, off_t off) 47 p = reallocarray(*line_offsets, *nlines + 1, sizeof(off_t)); 51 (*line_offsets)[*nlines] = off; 52 (*nlines)++; 57 diff_blobs(off_t **line_offsets, size_t *nlines, 73 if (line_offsets && *line_offsets && *nlines > 0) 74 outoff = (*line_offsets)[*nlines - 1]; 147 err = add_line_offset(line_offsets, nlines, outoff); 160 err = add_line_offset(line_offsets, nlines, outoff); 174 err = got_diffreg_output(line_offsets, nlines, result, f1, f2, [all …]
|
| H A D | test020.right.txt | 43 add_line_offset(off_t **line_offsets, size_t *nlines, off_t off) 47 p = reallocarray(*line_offsets, *nlines + 1, sizeof(off_t)); 51 (*line_offsets)[*nlines] = off; 52 (*nlines)++; 57 diff_blobs(off_t **line_offsets, size_t *nlines, 73 if (line_offsets && *line_offsets && *nlines > 0) 74 outoff = (*line_offsets)[*nlines - 1]; 147 err = add_line_offset(line_offsets, nlines, outoff); 160 err = add_line_offset(line_offsets, nlines, outoff); 174 err = got_diffreg_output(line_offsets, nlines, result, f1, f2, [all …]
|
| /src/contrib/atf/atf-c/detail/ |
| H A D | sanity_test.c | 94 int nlines; in do_test() local 108 nlines = 0; in do_test() 109 while (nlines < 3 && (lines[nlines] = in do_test() 111 nlines++; in do_test() 112 ATF_REQUIRE(nlines == 0 || nlines == 3); in do_test() 147 while (nlines > 0) { in do_test() 148 nlines--; in do_test() 149 free(lines[nlines]); in do_test()
|
| /src/contrib/nvi/vi/ |
| H A D | v_delete.c | 33 recno_t nlines; in v_delete() local 54 if (db_last(sp, &nlines)) in v_delete() 56 if (nlines == 0) { in v_delete() 69 if (db_get(sp, nlines, DBG_FATAL, NULL, &len)) in v_delete() 71 vp->m_final.lno = nlines; in v_delete()
|
| H A D | v_scroll.c | 68 recno_t nlines; in v_lgoto() local 77 if (db_last(sp, &nlines)) in v_lgoto() 79 if (nlines == 0) in v_lgoto() 87 if (db_last(sp, &nlines)) in v_lgoto() 89 vp->m_stop.lno = nlines ? nlines : 1; in v_lgoto()
|
| /src/contrib/less/ |
| H A D | forwback.c | 223 int nlines = 0; in forw() local 328 nlines++; in forw() 365 if (nlines == 0 && !ignore_eoi) in forw() 383 int nlines = 0; in back() local 418 nlines++; in back() 428 if (nlines == 0) in back() 527 int nlines; in get_one_screen() local 533 for (nlines = 0; nlines + shell_lines <= sc_height; nlines++) in get_one_screen()
|
| H A D | search.c | 1215 int nlines; in get_lastlinepos() local 1218 for (nlines = 0;; nlines++) in get_lastlinepos() 1223 if (nlines < sheight) in get_lastlinepos()
|
| /src/stand/libsa/ |
| H A D | pager.c | 45 int nlines; in pager_open() local 48 nlines = 24; /* sensible default */ in pager_open() 50 nlines = strtol(cp, &lp, 0); in pager_open() 53 p_maxlines = nlines - 1; in pager_open()
|
| /src/lib/libdpv/ |
| H A D | dialog_util.c | 345 unsigned int nlines = 1; in dialog_prompt_numlines() local 354 nlines++; in dialog_prompt_numlines() 358 nlines++; in dialog_prompt_numlines() 363 nlines++; in dialog_prompt_numlines() 366 nlines++; in dialog_prompt_numlines() 371 return (nlines); in dialog_prompt_numlines()
|
| H A D | dprompt.c | 394 int nlines = 0; in dprompt_add_files() local 458 nlines += dialog_prompt_numlines(name, nls); in dprompt_add_files() 658 while (nlines < fheight) { in dprompt_add_files() 660 nlines++; in dprompt_add_files()
|
| /src/usr.bin/msgs/ |
| H A D | msgs.c | 118 static int nlines; variable 481 nlines = 2; in main() 484 nlines++; in main() 488 nlines++; in main() 493 nlines++; in main() 495 while (nlines < 6 in main() 499 nlines++; in main() 567 prmesg(nlines + lct + (seensubj? 1 : 0)); in main()
|
| /src/contrib/bc/src/ |
| H A D | bc_lex.c | 105 size_t len, nlines, i; in bc_lex_string() local 114 nlines = 0; in bc_lex_string() 126 nlines += (c == '\n'); in bc_lex_string() 148 l->line += nlines; in bc_lex_string()
|
| H A D | lex.c | 65 size_t i, nlines = 0; in bc_lex_comment() local 92 nlines += (c == '\n'); in bc_lex_comment() 123 l->line += nlines; in bc_lex_comment()
|
| /src/usr.sbin/setfmac/ |
| H A D | setfmac.c | 235 size_t nlines = 0, linesize; in add_specs() local 247 nlines++; in add_specs() 254 spec->entries = calloc(nlines, sizeof(*spec->entries)); in add_specs() 257 spec->nentries = nlines; in add_specs() 258 while (nlines > 0) { in add_specs() 272 add_spec_line(file, is_sebsd, &spec->entries[--nlines], line); in add_specs()
|
| /src/contrib/nvi/ex/ |
| H A D | ex_read.c | 50 recno_t nlines; in ex_read() local 265 rval = ex_readfp(sp, name, fp, &cmdp->addr1, &nlines, 0); in ex_read() 278 if (nlines) in ex_read() 281 sp->lno = cmdp->addr1.lno + nlines; in ex_read()
|
| H A D | ex_cscope.c | 676 int ch, i, isolder = 0, nlines; in parse() local 692 if (sscanf(buf, CSCOPE_NLINES_FMT, &nlines, dummy) == 2) in parse() 699 while (nlines--) { in parse()
|
| /src/contrib/tzcode/ |
| H A D | tzselect.ksh | 512 nlines = split(distance_table, line, /\n/) 513 for (nr = 1; nr <= nlines; nr++) { 530 nlines = split(distance_table, line, /\n/) 531 for (nr = 1; nr <= nlines; nr++) {
|
| /src/usr.bin/mail/ |
| H A D | cmd1.c | 288 int nlines, *ip; in type1() local 298 nlines = 0; in type1() 301 nlines += message[*ip - 1].m_lines; in type1() 303 if (page || nlines > (*cp ? atoi(cp) : realscreenheight)) { in type1()
|
| /src/crypto/krb5/src/util/profile/ |
| H A D | t_profile.c | 56 write_file(const char *name, int nlines, ...) in write_file() argument 65 va_start(ap, nlines); in write_file() 66 for (i = 0; i < nlines; i++) in write_file()
|
| /src/contrib/libedit/ |
| H A D | readline.c | 1284 history_truncate_file (const char *filename, int nlines) in history_truncate_file() argument 1353 if (--nlines == 0) { in history_truncate_file() 1362 if (nlines <= 0 || count == 0) in history_truncate_file() 1380 if (ret || nlines > 0) in history_truncate_file()
|
| /src/contrib/netbsd-tests/lib/libcurses/slave/ |
| H A D | curses_commands.c | 619 int nlines; in cmd_insdelln() local 624 if (sscanf(args[0], "%d", &nlines) == 0) { in cmd_insdelln() 631 report_return(insdelln(nlines)); in cmd_insdelln() 700 int nlines; in cmd_scrl() local 705 if (sscanf(args[0], "%d", &nlines) == 0) { in cmd_scrl() 712 report_return(scrl(nlines)); in cmd_scrl()
|
| /src/contrib/ncurses/form/ |
| H A D | frm_driver.c | 2010 VSC_Generic(FORM *form, int nlines) in VSC_Generic() argument 2014 int rows_to_go = (nlines > 0 ? nlines : -nlines); in VSC_Generic() 2016 if (nlines > 0) in VSC_Generic()
|
| /src/contrib/ncurses/ |
| H A D | configure | 26981 NCursesPanel(int nlines, 26994 NCursesUserPanel (int nlines, 26999 : NCursesPanel (nlines, ncols, begin_y, begin_x)
|
| H A D | aclocal.m4 | 1931 NCursesPanel(int nlines, 1944 NCursesUserPanel (int nlines, 1949 : NCursesPanel (nlines, ncols, begin_y, begin_x)
|