Mark bad blocks with HED_BLOCK_BAD
commitc513b62e74b8d34c95c748b537b0525fb7de2a7b
authorPetr Tesarik <petr@tesarici.cz>
Fri, 28 Sep 2012 22:10:18 +0000 (29 00:10 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Fri, 28 Sep 2012 22:10:18 +0000 (29 00:10 +0200)
tree0569c442e2712b7f5b191bc09017c25f768a485a
parent76cd1212dc2cf2ca7a77313c41fa10f74fb51e71
Mark bad blocks with HED_BLOCK_BAD

Bad blocks should be marked with a new flag, because they are not
normal inner virtual blocks:

1. We don't want to retry reading the bad block again and again with each
   redraw of the hexdump pane.
2. Bad blocks must not be combined with a neighbouring virtual block.

The change to hed_block_is_inner_virtual() achieves both of these goals.

Note that bad blocks must also be detected using this flag, because
hed_prepare_read() now reports success for bad blocks.
libhed/file.c
libhed/file.h
src/ui/fileshow.c