Lines Matching refs:i
279 int i, j; in compare_files() local
282 for (i = 0; i < 2; i++) in compare_files()
286 initbuffer (&lba[i][j]); in compare_files()
287 all_line[i][j] = &lba[i][j]; in compare_files()
289 alt[i][0] = 0; in compare_files()
290 alt[i][1] = 0; in compare_files()
291 alt[i][2] = 0; in compare_files()
292 streams[i] = (STREQ (infiles[i], "-") ? stdin : fopen (infiles[i], "r")); in compare_files()
293 if (!streams[i]) in compare_files()
294 error (EXIT_FAILURE, errno, "%s", quotef (infiles[i])); in compare_files()
296 fadvise (streams[i], FADVISE_SEQUENTIAL); in compare_files()
298 thisline[i] = readlinebuffer_delim (all_line[i][alt[i][0]], streams[i], in compare_files()
300 if (ferror (streams[i])) in compare_files()
301 error (EXIT_FAILURE, errno, "%s", quotef (infiles[i])); in compare_files()
361 for (i = 0; i < 2; i++) in compare_files()
362 if (fill_up[i]) in compare_files()
365 alt[i][2] = alt[i][1]; in compare_files()
366 alt[i][1] = alt[i][0]; in compare_files()
367 alt[i][0] = (alt[i][0] + 1) & 0x03; in compare_files()
369 thisline[i] = readlinebuffer_delim (all_line[i][alt[i][0]], in compare_files()
370 streams[i], delim); in compare_files()
372 if (thisline[i]) in compare_files()
373 check_order (all_line[i][alt[i][1]], thisline[i], i + 1); in compare_files()
378 else if (all_line[i][alt[i][2]]->buffer) in compare_files()
379 check_order (all_line[i][alt[i][2]], in compare_files()
380 all_line[i][alt[i][1]], i + 1); in compare_files()
382 if (ferror (streams[i])) in compare_files()
383 error (EXIT_FAILURE, errno, "%s", quotef (infiles[i])); in compare_files()
385 fill_up[i] = false; in compare_files()
389 for (i = 0; i < 2; i++) in compare_files()
390 if (fclose (streams[i]) != 0) in compare_files()
391 error (EXIT_FAILURE, errno, "%s", quotef (infiles[i])); in compare_files()