Home
last modified time | relevance | path

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

123456

/coreutils/src/
Djoin.c44 struct line *tmp = a; \
71 struct line struct
85 struct line **lines; argument
89 static struct line *prevline[2] = {nullptr, nullptr};
100 static struct line *spareline[2] = {nullptr, nullptr};
171 static struct line uni_blank;
259 extract_field (struct line *line, char *field, idx_t len) in extract_field() argument
261 if (line->nfields >= line->nfields_allocated) in extract_field()
262 line->fields = xpalloc (line->fields, &line->nfields_allocated, 1, in extract_field()
263 -1, sizeof *line->fields); in extract_field()
[all …]
Dcsplit.c82 struct line struct
88 struct line *next; /* Next in linked list. */ argument
102 struct line *line_start; /* Head of list of pointers to lines. */
103 struct line *curr_line; /* The line start record currently in use. */
110 static void save_line_to_file (const struct cstring *line);
280 clear_line_control (struct line *p) in clear_line_control()
289 static struct line *
292 struct line *p = xmalloc (sizeof *p); in new_line_control()
306 struct line *l; in keep_new_line()
392 for (struct line *l = buf->line_start; l;) in free_buffer()
[all …]
Ddcgen36 my @line;
42 and push @line, $_;
48 foreach (@line)
Dshuf.c138 next_line (char *line, char eolbyte) in next_line() argument
140 char *p = rawmemchr (line, eolbyte); in next_line()
178 struct linebuffer *line = nullptr; in read_input_reservoir_sampling() local
185 && (line = in read_input_reservoir_sampling()
201 if (line != nullptr) in read_input_reservoir_sampling()
218 line = (j < k) ? (&rsrv[j]) : (&dummy); in read_input_reservoir_sampling()
220 while (readlinebuffer_delim (line, in, eolbyte) != nullptr && n_lines++); in read_input_reservoir_sampling()
263 char **line; in read_input() local
287 *pline = line = xnmalloc (n_lines + 1, sizeof *line); in read_input()
289 line[0] = p = buf; in read_input()
[all …]
Dsort.c175 struct line struct
234 struct line *lo; /* Lines to merge from LO child node. */
235 struct line *hi; /* Lines to merge from HI child node. */
236 struct line *end_lo; /* End of available lines from LO. */
237 struct line *end_hi; /* End of available lines from HI. */
238 struct line **dest; /* Pointer to destination of merge. */
259 static struct line saved_line;
303 #define MIN_MERGE_BUFFER_SIZE (2 + sizeof (struct line))
1586 alloc += sizeof (struct line) - alloc % sizeof (struct line); in initbuf()
1603 static inline struct line *
[all …]
Dextract-magic134 while (defined (my $line = <FH>))
136 $line =~ /^[ \t]+case S_MAGIC_/
138 $line =~
Ddate.c343 char *line; in batch_convert() local
359 line = nullptr; in batch_convert()
364 ssize_t line_length = getline (&line, &buflen, in_stream); in batch_convert()
373 if (! parse_datetime2 (&when, line, nullptr, in batch_convert()
376 if (line[line_length - 1] == '\n') in batch_convert()
377 line[line_length - 1] = '\0'; in batch_convert()
378 error (0, 0, _("invalid date %s"), quote (line)); in batch_convert()
390 free (line); in batch_convert()
Duniq.c255 find_field (struct linebuffer const *line) in find_field() argument
258 char const *lp = line->buffer; in find_field()
259 size_t size = line->length - 1; in find_field()
272 return line->buffer + i; in find_field()
301 writeline (struct linebuffer const *line, in writeline() argument
312 if (fwrite (line->buffer, sizeof (char), line->length, stdout) in writeline()
313 != line->length) in writeline()
Ddircolors.c146 parse_line (char const *line, char **keyword, char **arg) in parse_line() argument
155 for (p = line; isspace (to_uchar (*p)); ++p) in parse_line()
271 char const *line; in dc_parse_stream() local
308 line = input_line; in dc_parse_stream()
314 line = next_G_line; in dc_parse_stream()
318 parse_line (line, &keywd, &arg); in dc_parse_stream()
Dnumfmt.c1319 next_field (char **line) in next_field() argument
1321 char *field_start = *line; in next_field()
1343 *line = field_end; in next_field()
1396 process_line (char *line, bool newline) in process_line() argument
1404 next = next_field (&line); in process_line()
1406 if (*line != '\0') in process_line()
1409 *line = '\0'; in process_line()
1416 ++line; in process_line()
1603 char *line = nullptr; in main() local
1607 while (header-- && getdelim (&line, &line_allocated, in main()
[all …]
/coreutils/scripts/git-hooks/
Dcommit-msg14 # Keywords allowed before the colon on the first line of a commit message:
33 # a commented diagnostic "# $ERR" line at the top.
59 my ($line) = @_;
61 $line =~ /^[Vv]ersion \d/
64 $line =~ /:/
65 or return 'missing colon on first line of log message';
67 $line =~ /\.$/
68 and return 'do not use a period "." at the end of the first line';
70 # The token(s) before the colon on the first line must be on our list
72 (my $pre_colon = $line) =~ s/:.*//;
[all …]
/coreutils/tests/csplit/
Dcsplit.sh61 csplit: warning: line number '1' is the same as preceding line number
87 csplit: 0: line number must be greater than zero
88 csplit: line number '1' is smaller than preceding line number, 2
89 csplit: warning: line number '3' is the same as preceding line number
90 csplit: '3': line number out of range
/coreutils/tests/rm/
Dfail-eperm.xpl89 my $line = <RM>;
119 $line
126 $line =~ s,^\Q$rm\E:,rm:,;
129 $line =~ /^$regex/
131 . " got $line"
/coreutils/tests/tail/
Doverlay-headers.sh66 echo line >> file1 || framework_failure_
67 echo line >> file2 || framework_failure_
68 echo line >> file1 || framework_failure_
69 echo line >> file2 || framework_failure_
Dfollow-stdin.sh38 echo line > in || framework_failure_
39 echo line > exp || framework_failure_
/coreutils/tests/fmt/
Dgoal-option.sh25 avoid line breaks after the first word of a sentence or before the last word
28 of line, ignoring any intervening parentheses or quotes. Like @TeX{},
29 @command{fmt} reads entire ''paragraphs'' before choosing line breaks; the
42 and tries to avoid line breaks after the first word of a sentence
45 in any of @samp{.?!}, followed by two spaces or end of line,
47 @command{fmt} reads entire ''paragraphs'' before choosing line
/coreutils/man/
Dcomm.x2 comm \- compare two sorted files line by line
/coreutils/tests/pr/
DnSml24-t-tFFFF18 13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
DnSml20-t-tFFFF23 13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
DnSml24-t-t-FF18 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be
DnSml20-t-t-FF23 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be
/coreutils/tests/od/
Dod-endian.sh30 while read line; do
31 printf '%s' "$line" | sed "s/./&\\$NL/g" | tac | paste -s -d ''
Dod.pl36 while (defined (my $line = <FH>))
38 $len += length $line;
/coreutils/tests/df/
Dtotal-verify.sh43 my $line = <>;
44 defined $line
/coreutils/tests/
Dfilefrag-extent-compare16 my @line = <>;
17 my $n_lines = @line;
21 my @A = split ' ', $line[0];
22 my @B = split ' ', $line[1];

123456