optimize: use EOF flag instead of comparing phys pos
commita2789195cdb11975fb4394e76a214ddf17ee6253
authorPetr Tesarik <petr@tesarici.cz>
Mon, 22 Oct 2012 23:34:04 +0000 (23 01:34 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Mon, 22 Oct 2012 23:34:04 +0000 (23 01:34 +0200)
tree66198fdb46e339685e0cd3dee4342802584916bb
parent6d406ae818669f9bc87ac8f2f48d47f174f95970
optimize: use EOF flag instead of comparing phys pos

I can use the EOF flag to recognize blocks beyond physical file size,
because initially, only the terminal block has this flag, but it is
inherited whenever that block is split or its part is replaced.
Consequently the EOF flag is set for all blocks with phys_pos greater
or equal to physical file size, and clear for all others.
libhed/file.c