Home
last modified time | relevance | path

Searched refs:thisline (Results 1 – 2 of 2) sorted by relevance

/coreutils/src/
Dcomm.c263 struct linebuffer *thisline[2]; in compare_files() local
298 thisline[i] = readlinebuffer_delim (all_line[i][alt[i][0]], streams[i], in compare_files()
304 while (thisline[0] || thisline[1]) in compare_files()
311 if (!thisline[0]) in compare_files()
313 else if (!thisline[1]) in compare_files()
318 order = xmemcoll (thisline[0]->buffer, thisline[0]->length - 1, in compare_files()
319 thisline[1]->buffer, thisline[1]->length - 1); in compare_files()
322 size_t len = min (thisline[0]->length, thisline[1]->length) - 1; in compare_files()
323 order = memcmp (thisline[0]->buffer, thisline[1]->buffer, len); in compare_files()
325 order = ((thisline[0]->length > thisline[1]->length) in compare_files()
[all …]
Duniq.c324 struct linebuffer *thisline, *prevline; in check_file() local
333 thisline = &lb1; in check_file()
336 initbuffer (thisline); in check_file()
366 if (readlinebuffer_delim (thisline, stdin, delimiter) == 0) in check_file()
369 thisfield = find_field (thisline); in check_file()
370 thislen = thisline->length - 1 - (thisfield - thisline->buffer); in check_file()
383 if (fwrite (thisline->buffer, sizeof (char), thisline->length, in check_file()
384 stdout) != thisline->length) in check_file()
387 SWAP_LINES (prevline, thisline); in check_file()
413 if (readlinebuffer_delim (thisline, stdin, delimiter) == 0) in check_file()
[all …]