From 956801fcc2ac75fd4041f61619451d2935fa2598 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Aug 2003 14:11:40 +0000 Subject: * Use maps and sets in the FState data type. This ensures normalisation of slices and derivations w.r.t. order of paths, slice elements, etc. --- src/fstate.hh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/fstate.hh') diff --git a/src/fstate.hh b/src/fstate.hh index e4f69cb232df..a7935be5250e 100644 --- a/src/fstate.hh +++ b/src/fstate.hh @@ -14,28 +14,25 @@ typedef list FSIds; struct SliceElem { - string path; FSId id; - Strings refs; + StringSet refs; }; -typedef list SliceElems; +typedef map SliceElems; struct Slice { - Strings roots; + StringSet roots; SliceElems elems; }; -typedef pair DeriveOutput; -typedef pair StringPair; -typedef list DeriveOutputs; -typedef list StringPairs; +typedef map DeriveOutputs; +typedef map StringPairs; struct Derive { DeriveOutputs outputs; - FSIds inputs; + FSIdSet inputs; string platform; string builder; Strings args; -- cgit 1.4.1