Lines Matching refs:ok

141 	const bool ok = optimizer.Run(binary.data(), binary.size(), &binary, optimizer_options);
143 if (!ok)
425 bool ok = true;
426 while (ok)
429 if (ok) ok = fread(&chunksize, 1, 4, file) == 4;
430 if (ok) ok = fread(&hash, 1, 4, file) == 4;
431 if (ok) cacheInsert(hash, offset);
432 if (ok) ok = fseek(file, offset + chunksize, SEEK_SET) == 0;
473 deBool ok = true;
485 ok = file != 0;
487 if (ok) ok = fseek(file, node->data, SEEK_SET) == 0;
488 if (ok) ok = fread(&temp, 1, 4, file) == 4; // Chunk size (skip)
489 if (ok) ok = fread(&temp, 1, 4, file) == 4; // Stored hash
490 if (ok) ok = temp == hash; // Double check
491 if (ok) ok = fread(&format, 1, 4, file) == 4;
492 if (ok) ok = fread(&length, 1, 4, file) == 4;
493 if (ok) ok = length > 0; // Quick check
494 if (ok) bin = new deUint8[length];
495 if (ok) ok = fread(bin, 1, length, file) == (size_t)length;
496 if (ok) ok = fread(&sourcelength, 1, 4, file) == 4;
497 if (ok && sourcelength > 0)
500 ok = fread(source, 1, sourcelength, file) == (size_t)sourcelength;
504 if (!ok || diff)
543 deBool ok = (file != 0);
550 if (ok) ok = fseek(file, node->data, SEEK_SET) == 0;
551 if (ok) ok = fread(&temp, 1, 4, file) == 4; // Chunk size (skip)
552 if (ok) ok = fread(&temp, 1, 4, file) == 4; // Stored hash
553 if (ok) ok = temp == hash; // Double check
554 if (ok) ok = fread(&temp, 1, 4, file) == 4;
555 if (ok) ok = fread(&cachedLength, 1, 4, file) == 4;
556 if (ok) ok = cachedLength > 0; // Quick check
557 if (ok) fseek(file, cachedLength, SEEK_CUR); // skip binary
558 if (ok) ok = fread(&sourcelength, 1, 4, file) == 4;
560 if (ok && sourcelength > 0)
564 ok = fread(source, 1, sourcelength, file) == (size_t)sourcelength;
570 if (ok && !diff)