Home
last modified time | relevance | path

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

12345678910>>...81

/netbsd-src/external/gpl2/texinfo/dist/util/
H A Dinfosrch30 push @lines,$_;
34 for(@lines){
36 print "$target\n $lines[($cnt-1)]\n<$cnt> $lines[$cnt]\n $lines[($cnt+1)]\n";
40 if($lines[($cnt-6)]){
41 print " $lines[($cnt-6)]\n";
43 if($lines[($cnt-5)]){
44 print " $lines[($cnt-5)]\n";
46 if($lines[($cnt-4)]){
47 print " $lines[($cnt-4)]\n";
49 if($lines[($cnt-3)]){
[all …]
H A Dfixref.gawk62 n = split($0, lines, "\n")
64 if (lines[i] ~ ("^" heading)) {
65 sub(heading, "", lines[i])
66 sub(/^[ \t]*/, "", lines[i])
67 lname = lines[i]
69 } else if (lines[i] ~ /@node/) {
70 sub(/@node[ \t]*/, "", lines[i])
71 sub(/[ \t]*,.*$/, "", lines[i])
72 name = lines[i]
101 n = split($0, lines, "\n")
[all …]
H A Dinstall-info.c851 parse_input (const struct line_data *lines, int nlines, in parse_input() argument
876 && !strncmp ("INFO-DIR-SECTION ", lines[i].start, prefix_length)) in parse_input()
880 next->name = copy_string (lines[i].start + prefix_length, in parse_input()
881 lines[i].size - prefix_length); in parse_input()
896 if (!strncmp ("START-INFO-DIR-ENTRY", lines[i].start, lines[i].size) in parse_input()
897 && sizeof ("START-INFO-DIR-ENTRY") - 1 == lines[i].size) in parse_input()
916 start_of_this_entry = lines[i + 1].start; in parse_input()
920 if ((!strncmp ("* ", lines[i].start, 2) in parse_input()
921 && lines[i].start > start_of_this_entry) in parse_input()
923 lines[i].start, lines[i].size) in parse_input()
[all …]
/netbsd-src/external/mpl/bind/dist/bin/tests/system/host/
H A Dtests.sh26 lines=$(wc -l <host.err${n})
27 test $lines -eq 0 || ret=1
28 lines=$(grep -c "Address:" host.out${n})
29 test $lines -eq 1 || ret=1
30 lines=$(grep -c a-only.example.net host.out${n})
31 test $lines -eq 1 || ret=1
40 lines=$(wc -l <host.err${n})
41 test $lines -eq 0 || ret=1
42 lines=$(grep -c "Address:" host.out${n})
43 test $lines -eq 1 || ret=1
[all …]
/netbsd-src/external/gpl3/gcc/dist/contrib/
H A Dcheck-MAINTAINERS.py66 def check_group(name, lines): argument
69 for line in lines:
74 lines = [line + '\n' for line in lines]
75 sorted_lines = sorted(lines, key=sort_by_surname)
76 if lines != sorted_lines:
78 diff = ndiff(lines, sorted_lines)
85 lines = open(sys.argv[1]).read().splitlines() variable
88 lines = list(dropwhile(lambda x: x.strip() != needle, lines)) variable
89 lines = lines[2:] variable
91 chunk = list(takewhile(is_empty, lines))
[all …]
/netbsd-src/usr.bin/tail/
H A Dread.c140 } *lines; in displaylines() local
147 if ((lines = malloc(off * sizeof(*lines))) == NULL) in displaylines()
150 memset(lines, 0, sizeof(*lines) * off); in displaylines()
165 if (lines[recno].blen < cnt) { in displaylines()
166 if ((n = realloc(lines[recno].l, in displaylines()
169 lines[recno].l = n; in displaylines()
170 lines[recno].blen = cnt + 256; in displaylines()
172 memmove(lines[recno].l, sp, lines[recno].len = cnt); in displaylines()
182 free(lines); in displaylines()
187 lines[recno].l = sp; in displaylines()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/info/
H A Dnodemenu.c93 int lines = 1; in format_node_info() local
97 lines++; in format_node_info()
99 sprintf (line_buffer + len, "%d", lines); in format_node_info()
137 char **lines = (char **)NULL; in get_visited_nodes() local
160 (line, lines_index, lines, lines_slots, 20, char *); in get_visited_nodes()
166 if (lines) in get_visited_nodes()
171 qsort (lines, lines_index, sizeof (char *), compare_strings); in get_visited_nodes()
178 if (FILENAME_CMP (lines[i], lines[i + 1]) == 0) in get_visited_nodes()
180 free (lines[i]); in get_visited_nodes()
181 lines[i] = (char *)NULL; in get_visited_nodes()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dget_window_size.c63 get_window_size(int fd, int *lines, int *columns) in get_window_size() argument
73 if (lines) in get_window_size()
74 *lines = ws.ws_row; in get_window_size()
86 if (lines) in get_window_size()
87 *lines = ts.ws_lines; in get_window_size()
98 if (lines) in get_window_size()
99 *lines = dst[1]; in get_window_size()
112 if (lines) in get_window_size()
113 *lines = 1 + sb_info.srWindow.Bottom - sb_info.srWindow.Top; in get_window_size()
127 if (lines) { in get_window_size()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/sl/
H A Dtest_sl.c42 } lines[] = { variable
72 for (i = 0; i < sizeof(lines)/sizeof(lines[0]); i++) { in main()
75 char *buf = strdup(lines[i].line); in main()
79 if (!lines[i].ok) in main()
82 } else if (!lines[i].ok) in main()
84 if (rargc != lines[i].argc) in main()
86 rargc, lines[i].argc, i); in main()
88 if (strcmp(rargv[j], lines[i].argv[j]) != 0) in main()
90 rargv[j], lines[i].argv[j], i); in main()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-c++-kde/admin/
H A Dam_edit373 $lines = "$condition\@KDE_USE_FINAL_TRUE\@DEP_FILES = $workfiles\n";
376 $lines .= "$condition\@KDE_USE_FINAL_FALSE\@DEP_FILES = $workfiles\n";
380 $lines = $condition . "DEP_FILES = $workfiles\n";
382 substituteLine($lookup, $lines);
412 my $lines = "";
426 $lines .= "$add: " . $target_adds{$add} . "\n";
429 if ($lines) {
430 appendLines($lines);
792 my $lines = "$cleantarget-final:\n";
793 $lines .= "\t-rm -f " . join(' ', @final_names) . "\n" if (@final_names);
[all …]
/netbsd-src/external/bsd/nvi/docs/
H A Dhelp21 J - join two lines (use i<Enter><escape> to split a line)
30 ^E scroll down by lines
34 ^J move down by lines
36 ^M move down by lines (to first non-blank)
37 ^N move down by lines
38 ^P move up by lines
44 ^Y page up by lines
59 + move down by lines (to first non-blank)
61 - move up by lines (to first non-blank)
67 < shift lines left to motion
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lint/
H A Dcommon_lint.py8 def VerifyLineLength(filename, lines, max_length): argument
23 for line in lines:
31 def VerifyTabs(filename, lines): argument
45 for line in lines:
52 def VerifyTrailingWhitespace(filename, lines): argument
66 for line in lines:
74 def RunOnFile(filename, lines): argument
95 lines = file.readlines()
96 lint.extend(linter.RunOnFile(filename, lines))
/netbsd-src/tests/usr.bin/xlint/lint1/
H A Dcheck-expect.lua38 local lines = {}
43 for line in f:lines() do
44 table.insert(lines, line)
48 return lines
52 local function save_lines(fname, lines)
54 for _, line in ipairs(lines) do
71 local lines = load_lines(fname)
72 if lines == nil then return nil, nil end
89 for phys_lineno, line in ipairs(lines) do
127 local lines
[all...]
/netbsd-src/usr.bin/shuffle/
H A Dshuffle.c110 char **lines = emalloc(sizeof(char *) * maxlines); 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()
126 lines = erealloc(lines, (sizeof(char *) * maxlines)); in get_lines()
129 lines[nlines] = NULL; in get_lines()
131 *linesp = lines; in get_lines()
164 char **lines = NULL; in main() local
196 get_lines(fname, &lines, &nlines); in main()
198 lines = argv; in main()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/doc/
H A Dtexi2html498 @lines = (); # whole document
577 push(@lines, $in_html);
638 @lines = (); # ignore all lines before top (title page garbage)
649 push(@lines, $SPLITTAG) if $split_num++;
694 push(@lines, &html_debug("\n", __LINE__));
698 push(@lines, &html_debug("\n", __LINE__));
700 push(@lines, &debug("<$format_map{$tag}>\n", __LINE__));
707 push(@lines, &debug("<TABLE BORDER>\n", __LINE__));
710 push(@lines, &debug("<DL COMPACT>\n", __LINE__));
713 push(@lines, &html_debug("\n", __LINE__));
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/
H A Dtexi2html498 @lines = (); # whole document
577 push(@lines, $in_html);
638 @lines = (); # ignore all lines before top (title page garbage)
649 push(@lines, $SPLITTAG) if $split_num++;
694 push(@lines, &html_debug("\n", __LINE__));
698 push(@lines, &html_debug("\n", __LINE__));
700 push(@lines, &debug("<$format_map{$tag}>\n", __LINE__));
707 push(@lines, &debug("<TABLE BORDER>\n", __LINE__));
710 push(@lines, &debug("<DL COMPACT>\n", __LINE__));
713 push(@lines, &html_debug("\n", __LINE__));
[all …]
/netbsd-src/external/bsd/kyua-cli/dist/utils/text/
H A Doperations_test.cpp57 const std::vector< std::string > lines = text::split(expected, '\n'); in refill_test() local
60 ATF_REQUIRE(lines == text::refill(input, width)); in refill_test()
187 std::vector< std::string > lines; in ATF_TEST_CASE_BODY() local
188 ATF_REQUIRE_EQ("", text::join(lines, " ")); in ATF_TEST_CASE_BODY()
195 std::vector< std::string > lines; in ATF_TEST_CASE_BODY() local
196 lines.push_back("first line"); in ATF_TEST_CASE_BODY()
197 ATF_REQUIRE_EQ("first line", text::join(lines, "*")); in ATF_TEST_CASE_BODY()
204 std::vector< std::string > lines; in ATF_TEST_CASE_BODY() local
205 lines.push_back("first abc"); in ATF_TEST_CASE_BODY()
206 lines.push_back("second"); in ATF_TEST_CASE_BODY()
[all …]
/netbsd-src/usr.bin/sortinfo/
H A Dsortinfo.c52 char **lines; member
70 slist[nsections].lines = ecalloc(slist[nsections].maxlines, in addsection()
71 sizeof(*slist[nsections].lines)); in addsection()
80 s->lines = erealloc(s->lines, s->maxlines * sizeof(*s->lines)); in addline()
82 s->lines[s->nlines++] = line; in addline()
108 printf("%s", s->lines[i]); in printsection()
160 qsort(s->lines, s->nlines, sizeof(*s->lines), strptrcmp); in main()
/netbsd-src/external/bsd/mdocml/dist/
H A Dchars.c45 static struct ln lines[] = { variable
445 for (i = 0; i < sizeof(lines)/sizeof(lines[0]); i++) { in mchars_alloc()
446 slot = ohash_qlookup(&mchars, lines[i].roffcode); in mchars_alloc()
448 ohash_insert(&mchars, slot, lines + i); in mchars_alloc()
502 for (i = 0; i < sizeof(lines)/sizeof(lines[0]); i++) in mchars_uc2str()
503 if (uc == lines[i].unicode) in mchars_uc2str()
504 return lines[i].ascii; in mchars_uc2str()
/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-format/
H A Dclang-format.py78 lines = ['-lines', vim.eval('l:lines')]
83 lines = []
86 lines += ['-lines', '%s:%s' % (op[3] + 1, op[4])]
87 if lines == []:
90 lines = ['-lines', '%s:%s' % (vim.current.range.start + 1,
113 if lines != ['-lines', 'all']:
114 command += lines
141 lines = content.decode(encoding).split('\n')[:-1]
142 sequence = difflib.SequenceMatcher(None, buf, lines)
145 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D15-test_gendhparam.t143 my @lines;
145 @lines = run(app(['openssl', 'genpkey', '-genparam',
150 @lines = run(app(['openssl', 'genpkey', '-genparam',
154 ok(compareline(\@lines, \@expected), $msg);
160 my @lines = @$ref_lines;
163 if (@lines == 0 and $expected[0] eq 'ERROR') {
167 foreach (@lines) {
172 if ( !grep { index($_, $ex) >= 0 } @lines) {
/netbsd-src/external/gpl3/gdb/dist/readline/readline/doc/
H A Dtexi2html2941 @lines = (); # whole document
3121 push(@lines, $TOPEND);
3150 push(@lines, &l2h_ToLatex(&string_until($tag) . " "));
3172 @lines = (); # ignore all lines before top (title page garbage)
3178 push(@lines, $TOPEND);
3190 push @lines, &html_debug("<A NAME='$node'></A>\n", __LINE__) :
3191 push @lines, &html_debug("<A NAME=\"$node\"></A>\n", __LINE__);
3228 push(@lines, &html_debug('', __LINE__));
3232 push(@lines, &html_debug('', __LINE__));
3238 push(@lines, &debug("<$format_map{$tag}>" .
[all …]
/netbsd-src/external/bsd/atf/dist/atf-c/detail/
H A Dsanity_test.c98 char *lines[3]; in do_test() local
112 while (nlines < 3 && (lines[nlines] = in do_test()
130 ATF_REQUIRE(atf_utils_grep_string("Invariant", lines[0])); in do_test()
134 ATF_REQUIRE(atf_utils_grep_string("Precondition", lines[0])); in do_test()
138 ATF_REQUIRE(atf_utils_grep_string("Postcondition", lines[0])); in do_test()
142 ATF_REQUIRE(atf_utils_grep_string("Invariant", lines[0])); in do_test()
146 ATF_REQUIRE(atf_utils_grep_string(__FILE__, lines[0])); in do_test()
147 ATF_REQUIRE(atf_utils_grep_string(PACKAGE_BUGREPORT, lines[2])); in do_test()
152 free(lines[nlines]); in do_test()
/netbsd-src/games/cgram/
H A Dcgram.c172 static struct stringarray lines; variable
185 return (int)lines.v[cursor_y].len; in cur_max_x()
198 return lines.v[cursor_y].s[cursor_x - 1]; in char_left_of_cursor()
208 return lines.v[cursor_y].s[cursor_x]; in char_at_cursor()
221 stringarray_add(&lines, &line); in getquote()
235 stringarray_dup(&sollines, &lines); in getquote()
237 extent_y = (int)lines.num; in getquote()
239 extent_x = imax(extent_x, (int)lines.v[i].len); in getquote()
285 for (char *p = lines.v[y].s; *p != '\0'; p++) { in encode()
302 for (int y = 0; y < (int)lines.num; y++) { in substitute()
[all …]
/netbsd-src/external/mpl/bind/dist/bin/tests/system/dlzexternal/
H A Dtests.sh51 lines=$(echo "$out" | grep "$digout" | wc -l)
52 [ $lines -eq 1 ] || {
115 lines=$(cat dig.out.example.ns1.test$n | wc -l)
116 [ ${lines:-0} -eq 4 ] || ret=1
118 lines=$(cat dig.out.alternate.ns1.test$n | wc -l)
119 [ ${lines:-0} -eq 5 ] || ret=1
162 lines=$(grep "dlz_findzonedb.*test\.example\.com.*example.nil" ns1/named.run | wc -l)
163 [ $lines -eq 1 ] || ret=1
164 lines=$(grep "dlz_findzonedb.*test\.example\.com.*alternate.nil" ns1/named.run | wc -l)
165 [ $lines -eq 1 ] || ret=1
[all …]

12345678910>>...81