From 809fe0d67eb39f9ec08bca65735241803bc923f3 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 8 Oct 2011 17:05:19 +0000 Subject: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@25 d3078510-dda0-49f1-841c-895ef4b7ec81 --- inc/slices.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc') 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); -- cgit v1.2.3