Home
last modified time | relevance | path

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

/freebsd/contrib/libdiff/test/
H A Dexpect019.diff17 + (*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);
96 + return diff_blobs(&a->line_offsets, &a->nlines, NULL,
103 +got_diff_blob(off_t **line_offsets, size_t *nlines,
169 + arg.nlines = *nlines;
172 + arg.nlines = 0;
[all …]
H A Dtest019.right.txt51 (*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);
205 return diff_blobs(&a->line_offsets, &a->nlines, NULL,
211 got_diff_blob(off_t **line_offsets, size_t *nlines,
808 arg.nlines = *nlines;
811 arg.nlines = 0;
[all …]
H A Dtest020.right.txt51 (*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);
205 return diff_blobs(&a->line_offsets, &a->nlines, NULL,
211 got_diff_blob(off_t **line_offsets, size_t *nlines,
839 arg.nlines = *nlines;
842 arg.nlines = 0;
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Dsanity_test.c94 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()
/freebsd/contrib/less/
H A Dforwback.c217 int nlines = 0; in forw() local
326 nlines++; in forw()
387 if (nlines == 0 && !ignore_eoi) in forw()
405 int nlines = 0; in back() local
438 nlines++; in back()
446 if (nlines == 0) in back()
545 int nlines; in get_one_screen() local
548 for (nlines = 0; nlines < sc_height; nlines++) in get_one_screen()
553 return (nlines < sc_height); in get_one_screen()
H A Dsearch.c1140 int nlines; in get_lastlinepos() local
1142 for (nlines = 0;; nlines++) in get_lastlinepos()
1147 if (nlines < sheight) in get_lastlinepos()
/freebsd/contrib/nvi/vi/
H A Dv_delete.c33 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 Dv_scroll.c68 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()
/freebsd/stand/libsa/
H A Dpager.c45 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()
/freebsd/lib/libdpv/
H A Ddialog_util.c345 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 Ddprompt.c394 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()
/freebsd/usr.bin/msgs/
H A Dmsgs.c118 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()
/freebsd/contrib/bc/src/
H A Dbc_lex.c105 size_t len, nlines, i; in bc_lex_string() local
114 nlines = 0; in bc_lex_string()
124 nlines += (c == '\n'); in bc_lex_string()
146 l->line += nlines; in bc_lex_string()
H A Dlex.c65 size_t i, nlines = 0; in bc_lex_comment() local
90 nlines += (c == '\n'); in bc_lex_comment()
119 l->line += nlines; in bc_lex_comment()
/freebsd/usr.sbin/setfmac/
H A Dsetfmac.c235 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()
/freebsd/contrib/nvi/ex/
H A Dex_read.c50 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 Dex_cscope.c676 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()
/freebsd/contrib/tzcode/
H A Dtzselect.ksh522 nlines = split(distance_table, line, /\n/)
523 for (nr = 1; nr <= nlines; nr++) {
541 nlines = split(distance_table, line, /\n/)
542 for (nr = 1; nr <= nlines; nr++) {
/freebsd/usr.bin/mail/
H A Dcmd1.c288 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()
/freebsd/contrib/libedit/
H A Dreadline.c1281 history_truncate_file (const char *filename, int nlines) in history_truncate_file() argument
1350 if (--nlines == 0) { in history_truncate_file()
1359 if (nlines <= 0 || count == 0) in history_truncate_file()
1377 if (ret || nlines > 0) in history_truncate_file()
/freebsd/contrib/netbsd-tests/lib/libcurses/slave/
H A Dcurses_commands.c619 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()
/freebsd/contrib/ncurses/form/
H A Dfrm_driver.c2006 VSC_Generic(FORM *form, int nlines) in VSC_Generic() argument
2010 int rows_to_go = (nlines > 0 ? nlines : -nlines); in VSC_Generic()
2012 if (nlines > 0) in VSC_Generic()
/freebsd/contrib/libucl/
H A DREADME.md341 In this example `key` will be interpreted as the following string: `some text\nsplitted to\nlines`.
/freebsd/contrib/ncurses/
H A Dconfigure25558 NCursesPanel(int nlines,
25571 NCursesUserPanel (int nlines,
25576 : NCursesPanel (nlines, ncols, begin_y, begin_x)
H A Daclocal.m41665 NCursesPanel(int nlines,
1678 NCursesUserPanel (int nlines,
1683 : NCursesPanel (nlines, ncols, begin_y, begin_x)