diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-10-08 17:05:19 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-10-08 17:05:19 +0000 |
commit | 809fe0d67eb39f9ec08bca65735241803bc923f3 (patch) | |
tree | 2eccce3ae1fe8c431f845242bb64297309b2fb9e /inc | |
parent | 60d64987c7e97bae385efef62f73cdcd7d3b5257 (diff) | |
download | 2011-ddhardrescue-809fe0d67eb39f9ec08bca65735241803bc923f3.tar.gz 2011-ddhardrescue-809fe0d67eb39f9ec08bca65735241803bc923f3.tar.bz2 2011-ddhardrescue-809fe0d67eb39f9ec08bca65735241803bc923f3.zip |
Correction du bug de zoom (c'était juste le calcul de "pos" qui était foireux).
Création des méthodes sliceDelete et slicesDelete et utilisation à la fin du main.
git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@25 d3078510-dda0-49f1-841c-895ef4b7ec81
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/slices.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/slices.h b/inc/slices.h index 1ed7775..4360d86 100755 --- a/inc/slices.h +++ b/inc/slices.h @@ -27,6 +27,7 @@ typedef struct { } slices_t; slice_t *sliceNew(address_t begin, address_t end, sliceStatus_t status, slice_t *next); +void sliceDelete(slice_t *s); // Return the numbers of slices after split (3 in the general case, 2 or 1 in particular cases. -1 is memory error) int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, sliceStatus_t statusBefore, sliceStatus_t statusAt, sliceStatus_t statusAfter); @@ -35,6 +36,7 @@ int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, slice slices_t *slicesNewEmpty(); slices_t *slicesNewSingleton(address_t begin, address_t end, sliceStatus_t status); +void slicesDelete(slices_t *slices); void slicesAppend(slices_t *slices, slice_t *slice); |