Home | History | Annotate | Download | only in tool

Lines Matching defs:line

184 // PrintFileSum hashes |source| with |md| and prints a line to stdout in the
215 // Check reads lines from |source| where each line is in the format of the
217 // file named in the line.
246 char line[EVP_MAX_MD_SIZE * 2 + 2 /* spaces */ + PATH_MAX + 1 /* newline */ +
259 if (fgets(line, sizeof(line), file) == nullptr) {
267 size_t len = strlen(line);
270 if (line[len - 1] == '\n') {
276 const bool overlong = line[len - 1] != '\n' && !feof(file);
279 line[hex_size] != ' ' ||
280 line[hex_size + 1] != ' ' ||
284 fprintf(stderr, "%s: %u: improperly formatted line\n",
296 if (line[len - 1] == '\n') {
297 line[len - 1] = 0;
306 const std::string target_filename(&line[hex_size + 2]);
321 if (calculated_hex_digest != std::string(line, hex_size)) {
337 fprintf(stderr, "WARNING: %u line%s improperly formatted\n", bad_lines,